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 EAA20096; Wed, 16 Jun 2004 04:48:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA21259 for ; Wed, 16 Jun 2004 04:48:19 +0200 (MET DST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i5G2CdSH027288 for ; Wed, 16 Jun 2004 04:12:41 +0200 Received: from [192.168.1.200] (ppp219-112.lns2.syd3.internode.on.net [203.122.219.112]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i5G2CSHY034837; Wed, 16 Jun 2004 11:42:30 +0930 (CST) Subject: Re: [Caml-list] OCaml compared as a scripting language From: skaller Reply-To: skaller@users.sourceforge.net To: John Goerzen Cc: Richard Jones , caml-list In-Reply-To: <20040615173513.GB13863@complete.org> References: <20040614095216.GA8184@redhat.com> <20040614162907.GA17265@redhat.com> <40CE99EE.9030105@bik-gmbh.de> <200406151613.i5FGDN7k030987@waco.inria.fr> <20040615171535.GA14773@redhat.com> <20040615173513.GB13863@complete.org> Content-Type: text/plain Message-Id: <1087351947.16811.1375.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 16 Jun 2004 12:12:28 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 40CFAC97.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 sourceforge:01 2004:99 fprintf:01 python:01 shorter:01 9660:01 glebe:01 ocaml:01 int:01 nsw:01 snail:02 checkout:02 comparison:02 string:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 2004-06-16 at 03:35, John Goerzen wrote: > fprintf fd "%d\n" theint; > > or > > output_string fd ((string_of_int theint) ^ "\n"); > > Python: > print theint > > Perl: > print FD "$theint\n"; This is not a fair comparison though: if you need to do lots of output, which I do in the Felix code generator, you define abbreviations. pl (si theint); which is shorter than the Perl. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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