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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id B7532BC58 for ; Thu, 16 Sep 2010 19:29:44 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnABAELwkUzRVdi2kGdsb2JhbACiAwgVAQEBAQkJDAcRAx+pbotNhnCJAQEBAwWFPASES4VkhV+DIQ X-IronPort-AV: E=Sophos;i="4.56,377,1280700000"; d="scan'208";a="69643018" Received: from mail-qy0-f182.google.com ([209.85.216.182]) by mail4-smtp-sop.national.inria.fr with ESMTP; 16 Sep 2010 19:29:44 +0200 Received: by qyk4 with SMTP id 4so1588743qyk.6 for ; Thu, 16 Sep 2010 10:29:43 -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=frim4pK4z5DFB80rw/2aEU/PTMf0E/JZ9oDWdlCdocI=; b=A8WwPF+LDsYHSxC5Oc63MVlbxuBRWWStB6odOVOtP1tN/bkQK8YIE2HAtEul/zb8Zs tafoDpdb9WYDh2oeWkA1IgNh0IqlGW4T3q5Eiwen1cABV+v8bSgw8C13AAssg94ByDIa VZ1VgKJ+1Op3Jw7q2KExfDW1mWsyjeSd9TvxE= 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=Ovn2mHyV/OnaYVkzc9/0a1T7HlOGV6PvwZkFtQj8Tkin1LtbNfP5SXw88SjeBBjHP3 Wy6/BMFxjSkeCoEJMX7v5PiiN591ud1PUtaoCwwq22qPJbLt7CVt6uOXH4b3h5m8wAY/ re1CEb6PZZEmAnZiMcfvtfPMkLsPkBQbgD3a8= Received: by 10.224.66.74 with SMTP id m10mr2350665qai.328.1284658183274; Thu, 16 Sep 2010 10:29:43 -0700 (PDT) MIME-Version: 1.0 Sender: jake.donham@gmail.com Received: by 10.229.8.11 with HTTP; Thu, 16 Sep 2010 10:29:23 -0700 (PDT) In-Reply-To: References: From: Jake Donham Date: Thu, 16 Sep 2010 10:29:23 -0700 X-Google-Sender-Auth: 2r8O-jIL4tCwhZfxRU_ZbQi3n98 Message-ID: Subject: Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)? To: ben kuin Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; ocaml:01 ocaml:01 ocamlnet:01 threading:01 wrote:01 stack:01 caml-list:01 match:02 asynchronous:03 concurrency:04 concurrent:04 frameworks:05 abstracts:05 thu:05 implement:06 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. Jake