Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] Asynchronous IO programming in OCaml
Hi,

> 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