2011-06-01から1ヶ月間の記事一覧

GlGtkへの道

フル機能のGUIにOpenGLを埋めたいということで、lablGtk上でOpenGLを使いたい。 lablGtkのサイトにThe GLArea widget is also supported in combination with LablGLと書いてあるのでさくっといけるのかと思いきや、Windowsではそんなことはない。 GlGtkが入…

LablGtkを使う

LablGtk http://lablgtk.forge.ocamlcore.org/インストール http://lablgtk.forge.ocamlcore.org/install-win32.txtlablgtk-2.14.0-win32.zipをダウンロード 中身をOCamlディレクトリにコピーする GTK+ GTK+のバイナリ入手 ftp://ftp.gnome.org/pub/gnome/bi…

入出力練習

http://mirror.ocamlcore.org/ocaml-tutorial.org/ja/file_manipulation.html http://mirror.ocamlcore.org/ocaml-tutorial.org/ja/if_statements,_loops_and_recursion.html を参考に練習。cat.ml let read_and_write in_ch out_ch= let rec loop ()= let l…

ocamloptするとやはり速くなる

とりあえず単純レイトレースなど http://www.ffconsultancy.com/ocaml/ray_tracer/index.htmlc++との比較 http://www.ffconsultancy.com/languages/ray_tracer/comparison.html

LablGLを使う

glut入手 http://www.xmission.com/~nate/glut.html glut-3.7.6-bin.zipをダウンロード glut32.dllをC:/i686-pic-mingw32/binどっかパスの通ったところにコピー。 LablGL入手 http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html lablgl1.04を入手する…

LablTk導入

tcl/tkのOCamlバインドであるLablTkは最初からOCaml配布物に含まれている。 が、tcl/tkの方がWindowsに含まれて居ないので入手する。 具体的には、tcl84.dll(とtk84.dll)が必要となる。 下記から http://www.activestate.com/activetcl/downloads 8.4系のイ…

OCamlことはじめ

言語の中身に入る前におさえておくこと。 型推論がどうとか、関数型プログラミングがどうとか言う前の問題について。http://caml.inria.fr/download.en.html から、 Self installer (3.11.0) for the port based on the MinGW toolchain をダウンロードして…