From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id F1BC0BBAF for ; Mon, 23 Aug 2010 23:32:01 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngBADaFckzRVaE2kGdsb2JhbACgMggVAQEBAQkJDAcRAx+iM4srhk2JAgEBAwWFMgSENYVBiEA X-IronPort-AV: E=Sophos;i="4.56,259,1280700000"; d="scan'208";a="66027533" Received: from mail-fx0-f54.google.com ([209.85.161.54]) by mail1-smtp-roc.national.inria.fr with ESMTP; 23 Aug 2010 23:32:01 +0200 Received: by fxm4 with SMTP id 4so4557427fxm.27 for ; Mon, 23 Aug 2010 14:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=CjAIzN/VlXdla6U1TuLrfUm2Joq7irYeEINOeO3h5IQ=; b=T4MVnNQ1xTKuKM+nRkGZFvTbD7qbNevfaXVemQ1F5SIU7GqSDLRnfgDL0PJURkTtc7 1JV1pou0ncTKnBjRAwkMAUW3YYHwOq1I3DCCO17OW4hmi+F9CdJtEo+SDZTzunEw9Soc Ev3jmLrxFE3oHm2UIPbrAKl8qmvIr6JaFHAKE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=dQ/aMIwjlYTrQaD03LDM3KltE5kVX04cNFsxINkrxe26uCPu2zU81ykjDFtcxswWwC 8wk5aX4p8zVuVbTpWBcRcR+fCueHXrleZkrrpfQQ0fGIpcRgtewuO20xqHd1qoOQCCzm vlXHctIUk3oAsj6qfYF6CndjgEW/k1uokoZec= Received: by 10.216.47.80 with SMTP id s58mr5095303web.15.1282599121579; Mon, 23 Aug 2010 14:32:01 -0700 (PDT) MIME-Version: 1.0 Sender: jake.donham@gmail.com Received: by 10.216.186.213 with HTTP; Mon, 23 Aug 2010 14:31:41 -0700 (PDT) In-Reply-To: References: From: Jake Donham Date: Mon, 23 Aug 2010 14:31:41 -0700 X-Google-Sender-Auth: 3Jk3MMz9Hv_J3SOxkjfh35QmQfE Message-ID: Subject: Re: [Caml-list] node.ocaml To: Jeffrey Barber Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; node:01 ocaml:01 node:01 ocaml:01 syntax:01 wrote:01 caml-list:01 functions:01 asynchronous:03 style:93 extension:06 aug:10 top:89 example:10 writing:12 On Sat, Aug 21, 2010 at 8:27 PM, Jeffrey Barber wrote: > example code: > http://github.com/mathgladiator/node.ocaml/blob/master/test/kvp.ml Have you considered using Lwt (http://ocsigen.org/lwt) as a layer on top of raw continuation-passing style? It has a lot of nice functions for writing asynchronous code, as well as a syntax extension to make it look more like direct-style code. It provides a select loop already, but you don't need to use it, or you could integrate libevent2 with Lwt's event loop. Jake