On Thu, Feb 21, 2002 at 10:54:57PM +0900, Shinya Hayakawa wrote: > > I'm interested in writing an Inline::OCaml inline module. > > It's nice. I like OCaml. > How is it implemented? > using OCaml's bytecode system?
OCaml may be used in three different flavours: 1) Compiled as a bytecode that is executed trough the Cathegorical Abstract Machine (CAM). The abstract machine is implemented in the "ocamlrun" executable and the compiler that compile in bytecode is "ocamlc". 2) Compiled as a native code executable using the "ocamlopt" compiler. 3) Interpreted through the toplevel main loop implemented in the "ocaml" executable. As first I'm trying to implement Inline::OCaml using the bytecode compilation that, I tested, is faster than the perl interpreter two or three times (obviously on basic computation, not on string operation or regexp matching ...) so it makes sense to use an internal part written in OCaml. Anyway I hope that switching to a native code Inline::OCaml implementation is straightforward because is enough to change a library in linking phase. Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy [EMAIL PROTECTED] | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney
