2009-04-08から1日間の記事一覧

Ruby Strikes Back, then Fails

from Ruby Strikes Back: http://oldmoe.blogspot.com/2009/04/ruby-strikes-back.html ConclusionRuby is faster the OCaml. Wrong! OCaml is a lot faster than Ruby. But thanks to hard work by some prominent Rubyists you can have a Ruby setup that…

recursive module で polymorphic recursion を書く

OCaml 3.12.0 より明示的に型を書くことで polymorphic recursion (多相再帰) が簡単に書けるようになりました: let rec len : 'a. 'a sep -> int = function | Nil -> 0 | Cons (_, sep) -> 1 + 2 * len sep let rec ... in ... で定義される値は、in の後…

let module は expansive ?

# let id = let module M = struct end in fun x -> x ;; val id : '_a -> '_a = <fun>なんでですか?あんまり考えてないってのもあるけど、ヤバイ例が思いつきません。Caml mantis でも、 What you propose is changing the value restriction to accept a local</fun>…

三菱UFJ証券、社員が5万人分の情報売却 業者に32万円で

妻の情報が漏れました。今日の夕刻、プレス発表前のにとりあえずの報告電話があったそうです。「お詫び状」を発送したそうですから、明日当たり、もう少し詳細が判るでしょう。 転売先でのデータ破棄を約束させているそうですが、そんな話信用するほど馬鹿じ…