From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA23587; Mon, 14 Jun 2004 18:29:11 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA22541 for ; Mon, 14 Jun 2004 18:29:10 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i5EGT8EV009219 for ; Mon, 14 Jun 2004 18:29:08 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BZuKZ-0004Y6-00 for ; Mon, 14 Jun 2004 17:29:07 +0100 Date: Mon, 14 Jun 2004 17:29:07 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] OCaml compared as a scripting language Message-ID: <20040614162907.GA17265@redhat.com> References: <20040614095216.GA8184@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at nez-perce with ID 40CDD254.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 camlp:01 pcre:01 extlib:01 helper:01 extlib:01 camlp:01 team's:01 ltd:98 regexp:01 ocaml:01 ocaml:01 it'd:01 module:03 perl:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Sure. I think it's pretty cool that an application language does relatively well as a scripting language, when it plainly wasn't designed to do that. I think it'd be possible to assemble a very capable scripting language without affecting the core language at all. "OCamlScript" would be: * normal OCaml + Regexp/OCaml (a Camlp4 extension, modified to use pcre) + File utilities module + ExtLib + a bunch of helper functions which I've been writing (eg. slurp all lines of a file into memory in various ways) - some of this is in ExtLib. It might also make sense to add some operators using Camlp4 for handling files. eg. I've always thought it's a crying shame that you can't write to a file in Perl using 'command >filename'. You could actually _do_ something like that in OCaml + Camlp4, which could be a real timesaver. This would be an interesting project for someone ... Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment 'There is a joke about American engineers and French engineers. The American team brings a prototype to the French team. The French team's response is: "Well, it works fine in practice; but how will it hold up in theory?"' ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners