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
Asynchronous IO programming in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-10-24 (12:52)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] Asynchronous IO programming in OCaml

> Is there a tutorial on using something like LWT for asynchronous
> programming in OCaml? I'm looking for an example like an echo server
> that handles clients concurrently without blocking threads, so it can
> handle thousands of clients without significant performance degradation.

Lwt comes with a manual, which should be enough to get you started.
If you are looking for real-world examples, then the source of the
Ocsigen server is the most obvious place to look.

(Lwt was my first exposure to the monadic style of programming; this
caused some head-scratching in the beginning, but after a while it
became second nature.  I reckon this experience might be common to
other Lwt users).

Hope that helps,
Dario Teixeira