English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] date - waiting for 64-bit (was: Gripes with array)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-09 (13:20)
From: Samuel Lelievre <samuel.lelievre@f...>
Subject: Re: [Caml-list] date - waiting for 64-bit
Basile Starynkevitch wrote:
>I suggest to switch to Ocaml (even on a 32 bits machine)
>% ocaml
>         Objective Caml version 3.08.0
># #load "unix.cma";;
># Unix.time ();;
>- : float = 1094732223.
># Unix.gmtime (Unix.time ());;
>- : Unix.tm =
>{Unix.tm_sec = 16; Unix.tm_min = 17; Unix.tm_hour = 12; Unix.tm_mday = 9;
>  Unix.tm_mon = 8; Unix.tm_year = 104; Unix.tm_wday = 4; Unix.tm_yday = 252;
>  Unix.tm_isdst = false}
>I am not sure that staying in Caml Light is a sensible thing to do,
>especially for code that you are working on. Maybe taking the
>necessary time to port your code from Caml-Light (which is not active
>anymore) to Ocaml (which is actively developped and has a bigger
>community) is really worth the effort.

Do you mean that the integers of type int are not mod 2^31 in Ocaml?

That's certainly an argument to make me make my mind to switch,
which I was postponing forever, having failed to translate my
simple programs to Ocaml (I have to confess I did not try hard).

I learnt how to use the "num" library in order to deal with larger
integers than 2^30, but if Ocaml makes it simpler...

I was sticking to the advice on

   Should I switch from Caml Light to Objective Caml?

   Caml Light is still maintained, though no longer actively
   developed.  We make bug-fix releases from time to time and
   still provide support for it.  It provides a more stable
   programming environment than Objective Caml, which is still
   evolving, though at a slower pace than immediately after its

   If you're perfectly happy with Caml Light, value reliability
   more than performance, don't need the new module system, don't
   need the new object stuff, then stay with Caml Light. If you
   need objects, powerful modules, the native-code compiler, or
   just like being on the cutting edge, go for Objective Caml.

Samuel Lelievre

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners