From: Jim Freeze Date: 2005-07-21T04:47:41+09:00 Subject: Re: [WAY OT] Re: Ruby/Rails as a starter language? * Rick Nooner [2005-07-21 03:57:35 +0900]: > It would be difficult to do. Ruby libraries expect a 'C' style > interface. While OCaml can also easily interface to 'C' style > libraries, it can't create them. > > Another approach would be to embed the OCaml runtime in Ruby > which would allow it to load compiled OCaml libraries. > Working out the call interface between OCaml functors > and Ruby methods would be interesting. Yeah, I like that idea. That would let one call any ocaml library compiled for their machine. > Before someone asks the question, OCaml has a runtime > because it is a garbage collected langauge so a small kernel > needs to be available when an OCaml program is running. > The program can be either compiled to bytecode (not so > different than Ruby) or to machine code (this is what's > interesting to me). Are you saying that the runtime can be compiled to bytecode? -- Jim Freeze