てきとう

てきとう

OCaml

どうでもいいはなし

Pythonスレに貼られていた煽りコピペ Pythonオワタ・・・orz 俺もう乗り換えるわRunning the snippets above, I got the following results:Python 2.5.1: 31.507s Ruby 1.9.0: 11.934sThe Ruby code: ソースは長いので略。*1 折角どっちも入っているのだから、と…

適当にHQ9+インタプリタ

type 'a result = Success of 'a | Failure of string let beers x = let rec bob n = match n with 1 -> print_string "1 bottle of beer on the wall, "; print_endline "1 bottle of beer."; print_string "Go to the store and buy some more, "; Printf…

OCaml始めてみた

Oz挫折(ぉ でOCaml。 Oz出来ないのは関数型弄ってないからだ、という短絡的な考えに基づいている。 OCamlはかなり関数型としてテキトーみたいだからHaskellとかよりは良いかな、と。 Lispでも良いけど、『()多過ぎ』という理由で一度やる気なくしてるんで、…