From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 59428BC0A for ; Thu, 21 Dec 2006 08:22:43 +0100 (CET) Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [203.16.214.141]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBL7Mf0d028990 for ; Thu, 21 Dec 2006 08:22:42 +0100 Received: from ppp14-213.lns2.syd7.internode.on.net (HELO rosella) ([59.167.14.213]) by ipmail02.adl2.internode.on.net with ESMTP; 21 Dec 2006 17:52:38 +1030 X-IronPort-AV: i="4.12,196,1165152600"; d="scan'208"; a="63244775:sNHT92844829" Subject: Re: [Caml-list] Scripting in ocaml From: skaller To: Erik de Castro Lopo Cc: caml-list@inria.fr In-Reply-To: <20061221153413.8f99e8ed.mle+ocaml@mega-nerd.com> References: <6dbd4d000612201941wcd4b09anc503a13889576512@mail.gmail.com> <20061221153413.8f99e8ed.mle+ocaml@mega-nerd.com> Content-Type: text/plain Date: Thu, 21 Dec 2006 18:22:36 +1100 Message-Id: <1166685756.5337.4.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 458A3641.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 bytecode:01 syntax:01 sourceforge:01 wrote:01 wrote:01 typing:01 caml-list:01 python:02 python:02 authors:02 suited:03 dynamic:03 dynamic:03 On Thu, 2006-12-21 at 15:34 +1100, Erik de Castro Lopo wrote: > Denis Bueno wrote: > > > I've been writing bash scripts to perform various build- and > > development-related tasks, and I don't enjoy it. I won't bore you with > > detailed reasons why. The upshot is that I'd like to script in OCaml. > > Makes a lot of sense. I used to do scripting style tasks in Python > but nowadays I prefer to use Ocaml. As one of the authors of several major pieces of Python, my comment is that whilst it provides great convenience and good code structure .. dynamic typing just doesn't scale. The big problem using Ocaml (bytecode) for scripting is probably the ugly dynamic loading support, and for long running systems, the lack of unloading support. (plus the syntax which isn't really well suited to small scale scripting applications). As an alternative you might consider Neko and/or NekoML. -- John Skaller Felix, successor to C++: http://felix.sf.net