[OT] ruby4caml?

Hi all,

Has anyone written any sort of Ruby for OCaml stuff? I found this for Perl:

http://www.merjis.com/developers/perl4caml

I might be more inspired to learn OCaml if something like ruby4caml existed. :slight_smile:

Regards,

Dan

OCaml is one of those languages which I've always wanted to learn, and
in fact have an almost yearly practice of sitting down with a spare
weekend and every intention of doing so. Every time, though, the
(IMHO) awkward way in which the language marries functional,
procedural, and OO paradigms just puts me off.

It's not that I don't appreciate having all those styles available to
me -- indeed, Ruby's natural support for functional composition are
one of its major draws for me -- but the OCaml language model is just
*huge*. All of the paradigms supported have their own syntax and
semantics, and they only seem to really combine at the primitive
typing level.

That being said, it looks like the perl4caml tool is basically just a
FFI binding of the Perl runtime to OCaml by way of C; you could do the
same for the Ruby C API without too much difficulty.

Lennon

In article <6e613a32.0407260710.3da30549@posting.google.com>,

···

Daniel Berger <djberg96@hotmail.com> wrote:

Hi all,

Has anyone written any sort of Ruby for OCaml stuff? I found this for Perl:

http://www.merjis.com/developers/perl4caml

I might be more inspired to learn OCaml if something like ruby4caml existed. :slight_smile:

THAT's pretty cool! (it allows you to inline Perl code in your OCaml
code) I wonder how hard it would be to create ruby4OCaml? Probably they
just made an OCaml extension of the Perl eval code.

Phil