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
Some questions and proposals...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1994-03-01 (17:55)
From: Valerie.Menissier@i...
Subject: Some questions and proposals...
>	2) This is a question mainly to CAML and Camllight implementors: has
>	anybody thought of a way to migrate in an automatic, or at least semi-
>	automatic way, modules from one of the systems to the other? I
>	have this huge quantity of modules in CAML wanting to be
>	compiled in Camllight...!

In fact the difficulties to port Caml programs to Caml-Light seem to
me of three orders:

   a. Functions written in the prelude file of Caml that are not
defined by Caml-Light: this is easy to correct, just try to compile
and for each unbound name, go in Caml prelude and copy-paste the
definition in a compatibility file loaded before your programs, for
  b. Functions that are curryfied in only one version, generates a
typical typechecking error, so it seems easy to change
  c. Functions with arguments in another order, either generates a
typechecking error and it is easy to change, or for example functions
like "move src dest" changed in "move dest src", and it seems very
difficult to detect 
  d. Same function, same arguments, but not same result, for example 
"index" function for which in one version the first character is
number 1 and in the other version it is number 0

2. Functions that use the fact that the order of evaluation of Caml is
from left to right: it seems very difficult to automatize this phase

3. Functionalities that are different in Caml and Caml-Light like
parsers&printers vs. grammars or some differences in arithmetic, it
seems very difficult to automatize this phase

Vale'rie Me'nissier-Morain