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=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 71B32BC0C for ; Tue, 26 Dec 2006 18:14:11 +0100 (CET) Received: from blizzard.cs.caltech.edu (blizzard.cs.caltech.edu [131.215.44.2]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBQHEAhO005270 for ; Tue, 26 Dec 2006 18:14:11 +0100 Received: from localhost (flood.cs.caltech.edu [131.215.44.31]) by blizzard.cs.caltech.edu (Postfix) with ESMTP id 50A802A3643; Tue, 26 Dec 2006 09:14:09 -0800 (PST) Received: from snowstorm.cs.caltech.edu ([131.215.44.21]) by localhost (flood.cs.caltech.edu [131.215.44.31]) (amavisd-new, port 10024) with ESMTP id 27827-08; Tue, 26 Dec 2006 09:14:09 -0800 (PST) Received: from [192.168.3.10] (cpe-75-82-142-242.socal.res.rr.com [75.82.142.242]) by snowstorm.cs.caltech.edu (Postfix) with ESMTP id 09E69262FC9; Tue, 26 Dec 2006 09:14:09 -0800 (PST) Message-ID: <45915860.6030806@metaprl.org> Date: Tue, 26 Dec 2006 09:14:08 -0800 From: Aleksey Nogin Reply-To: OCaml Mailing List Organization: MetaPRL/Mojave Research Group User-Agent: Thunderbird 1.5.0.9 (X11/20061215) MIME-Version: 1.0 To: Denis Bueno Cc: OCaml Mailing List , omake@metaprl.org Subject: Re: [Caml-list] Scripting in ocaml References: <6dbd4d000612201941wcd4b09anc503a13889576512@mail.gmail.com> In-Reply-To: <6dbd4d000612201941wcd4b09anc503a13889576512@mail.gmail.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45915862.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 osh:01 osh:01 hypothetical:01 wrote:01 caml-list:01 inline:01 functional:02 shell:04 i'd:05 extension:05 interpreter:07 quite:07 argue:08 On 20.12.2006 19:41, 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. [...] > I googled a bit but couldn't find anything related to this. Has > anything done, or started doing, anything like this? Not quite scripting in OCaml, but related - the OMake build system comes with its own shell interpreter - osh. The language is not OCaml, but it's a functional language that was _specifically_ designed as a scripting language, so I would argue that writing scripts in osh is more convenient that scripting in OCaml (although, of course, for somebody already familiar with OCaml, learning osh might be a bit harder that learning some hypothetical scripting extension of OCaml). Note that if the goal is specifically "scripts to perform various build- and development-related tasks" as you've mentioned, then I would definitely suggest looking at OMake and osh - there the scripting language is the same as the build specification language and you can inline osh scriplets directly into "make-style" build rules of OMake. See http://omake.metaprl.org/ for more information. Aleksey