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 D7F94BC58 for ; Thu, 16 Sep 2010 18:04:45 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAFfckUyty1O7/2dsb2JhbACDG55scbEnkjuBIoMrdASES4hi X-IronPort-AV: E=Sophos;i="4.56,377,1280700000"; d="scan'208";a="69639722" Received: from elehack.net ([173.203.83.187]) by mail4-smtp-sop.national.inria.fr with ESMTP; 16 Sep 2010 18:04:44 +0200 Received: from [172.16.135.76] (wireless.cs.umn.edu [128.101.36.205]) by elehack.net (Postfix) with ESMTPSA id F11B1C893B; Thu, 16 Sep 2010 11:06:16 -0500 (CDT) Subject: Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)? From: Michael Ekstrand To: ben kuin Cc: caml-list@inria.fr In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 16 Sep 2010 11:04:42 -0500 Message-ID: <1284653082.9376.24.camel@knine> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 0200,:01 ocaml:01 prefered:01 ocamlnet:01 ocamlnet:01 deployments:98 blog:98 wrote:01 caml-list:01 api:02 abstracts:05 thu:05 interface:06 interface:06 On Thu, 2010-09-16 at 13:05 +0200, ben kuin wrote: > Is there a web server interface / adapter for ocaml that abstracts > your application from the various web server implementations? > What is your prefered way to write a small web app for example a to-do list? There are two good options: * Ocsigen , a web server and application framework in OCaml. At this point, you must use its web server (which you could put behind Apache or whatever with a reverse proxy). The setup would look like a lot of Rails deployments. I currently use Ocsigen alone on my web site. * OCamlNet provides a CGI API with FastCGI and AJP adapters for building web applications. You can run that behind most web servers. - Michael -- Web/blog: http://elehack.net/michael Jabber/Google Talk: this e-mail address Twitter: http://twitter.com/elehack mouse, n: a device for pointing at the xterm in which you want to type