From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id ED3A2BC57 for ; Sun, 19 Sep 2010 12:33:02 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjMGAEODlUxQRFuwWWdsb2JhbACiPAsBFhUENr13hUEEkBg X-IronPort-AV: E=Sophos;i="4.56,388,1280700000"; d="scan'208";a="59508006" Received: from furbychan.cocan.org ([80.68.91.176]) by mail2-smtp-roc.national.inria.fr with ESMTP; 19 Sep 2010 12:33:02 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1OxHCc-0003tE-NZ; Sun, 19 Sep 2010 11:32:58 +0100 Date: Sun, 19 Sep 2010 11:32:58 +0100 To: Jake Donham Cc: ben kuin , caml-list@inria.fr Subject: Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)? Message-ID: <20100919103258.GA14826@annexia.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; ocaml:01 ocaml:01 ocamlnet:01 threading:01 ocamlnet:01 wrote:01 wrote:01 stack:01 caml-list:01 match:02 asynchronous:03 concurrency:04 concurrent:04 frameworks:05 abstracts:05 On Thu, Sep 16, 2010 at 10:29:23AM -0700, Jake Donham wrote: > On Thu, Sep 16, 2010 at 4:05 AM, ben kuin wrote: > > Is there a web server interface / adapter for ocaml that abstracts > > your application from the various web server implementations? > > There is no OCaml equivalent to rack / wsgi. It would be nice to have > something like this; the existing web frameworks (e.g. Ocamlnet and > Ocsigen as another poster mentioned) implement the whole stack, but it > would be nice to be able to mix and match (e.g. run Ocsigen's Eliom > applications in Ocamlnet's Netplex server). Part of the difficulty is > that there are different approaches to concurrency/asynchrony (Lwt for > Ocsigen, Equeue for netplex). My impression is that rack / wsgi punt > on this issue, and assume threading. But an OCaml equivalent could > possibly offer both a concurrent/asynchronous and a direct-style > interface. Maybe I'm missing the point, but what's wrong with simply proxying the HTTP connections through your favorite webserver to the backend ocsigen/ocamlnet server? Rich. -- Richard Jones Red Hat