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 (15:32)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] Correct way of programming a CGI script
> Hi! I am in a process of making a website (which might receive substantial
> amounts of traffic), and am considering options for the backend. I discarded
> PHP and other similar server-side scripting languages, due to performance
> (...)

Hi Tom,

I suggest you take a look at Ocsigen (http://www.ocsigen.org/).  It's
a fully-featured web server written in OCaml, that not only supports
static pages and traditional CGI programming, but also has a module
called Eliom that allows you to build dynamic websites using all the
best features of the OCaml language.

As for performance, the bottleneck will surely be the database backend.
Even when generating dynamic pages with Eliom, Ocsigen can easily output
close to a hundred pages per second on a decent machine.  (And of course
it's even faster with static content!)

Dario Teixeira

Nervous about who has your email address? Yahoo! Mail can help you win the war against spam.