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-09 (15:57)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Correct way of programming a CGI script
On Tuesday 09 October 2007 16:25:45 skaller wrote:
> It's not clear then you're using "strings".

It never was.

The concrete data structures used to represent strings in these languages are 
different. So you've just picked a concrete data structure with slow append 
and showed that its append is slower than a concrete data structure with slow 
random access and worse memory usage.

This is just swings and roundabouts.

You might like to compare the performance of setting a single char in a string 
in Python and OCaml...

> C++ strings provide all the operations of both String and Buffer
> and do not pay this cost. 

Can C++ escape a string using OCaml syntax?

Dr Jon D Harrop, Flying Frog Consultancy Ltd.