Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] - Convert Caml to C/C++, C#, PHP, etc -
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-03 (08:06)
From: Sylvain Le Gall <sylvain@l...>
Subject: Re: - Convert Caml to C/C++, C#, PHP, etc -
On 03-10-2008, Erik de Castro Lopo <> wrote:
> axllaruse wrote:
>> I would like to convert all the MTASC open source project to
>> C/C++ or PHP. 
> Sorry, but you're crazy.


> Converting the MTASC compiler to a less capable language (yes, C++
> is less capable) would be an exercise in extreme Greenspunning:

You forget to mention another rule:

"If it works, don't fix it"

Which also apply to the WORKING mtasc compiler in OCaml.

But, just for fun (and having work at converting COBOL program to
C/C++), I really would like to see the result of an automatic
conversion... Just for fun ;-)

There is something like 100% chances, that the resulting source code will
be totally __unreadable__, not working and full of undetectable bug. I
think it will be worse to have an unreadable PHP file than a clean OCaml

This kind of conversion can fill your entire life -- without good
result. FYI, translating COBOL to other languages is in most cases not
possible and, in the remaining cases, produced code is not readable. The
only thing you can perform, quite well, is COBOL X to COBOL Y
translation (like Fujitsu COBOL to MicroFocus COBOL). Or in our case,
you can perform things like OCaml to JoCaml... 

Sylvain Le Gall