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
Correct way of programming a CGI script
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-08 (22:21)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] Correct way of programming a CGI script
skaller wrote:

> Now Gerd, I would not call the claim nonsense. If you can't
> use a data structure in a natural way, I'd say the claim indeed
> has some weight.

The original claim was:

>> I heard that OCaml is particularly slow (and probably memory-inefficient)
>> when it comes to string manipulation. What is the preferred way in handling
>> strings (building long strings from short parts - something StringBuilder
>> would be used in Java)? Does anybody have any experience concerning this
>> kind of applications?

ie comparing Ocaml string handling to Java and other web languages like
php, perl, ruby and python.

While I agree that yes, it is possible to write slow code in Ocaml
(or any other language), I suspect that idiomatic Ocaml string handling
compiled to a binary is just as fast if not faster than Java/Perl/Python/

Erik de Castro Lopo
"Windows was created to keep stupid people away from UNIX."
  -- Tom Christiansen