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 QAA22360; Wed, 25 Aug 2004 16:26:45 +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 QAA21788 for ; Wed, 25 Aug 2004 16:26:44 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from gatekeeper.elmer.external.excelhustler.com (gatekeeper.excelhustler.com [68.99.114.105]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i7PEQdL6018946 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Wed, 25 Aug 2004 16:26:43 +0200 Received: from chatterbox.elmer.internal.excelhustler.com (unknown [192.168.0.12]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "chatterbox.elmer.internal.excelhustler.com", Issuer "excelhustler.com" (not verified)) by gatekeeper.elmer.external.excelhustler.com (Postfix) with ESMTP id BCE492A2AB; Wed, 25 Aug 2004 09:26:36 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id 96F2A1CD38; Wed, 25 Aug 2004 09:26:36 -0500 (CDT) Received: from chatterbox.elmer.internal.excelhustler.com ([192.168.0.12]) by localhost (chatterbox [192.168.0.12]) (amavisd-new, port 10025) with ESMTP id 02440-10; Wed, 25 Aug 2004 09:26:28 -0500 (CDT) Received: from wile.internal.excelhustler.com (wile.internal.excelhustler.com [192.168.1.34]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id D94431CD32; Wed, 25 Aug 2004 09:26:28 -0500 (CDT) Received: by wile.internal.excelhustler.com (Postfix, from userid 1000) id D078FD000; Wed, 25 Aug 2004 09:26:28 -0500 (CDT) From: John Goerzen To: caml-list@inria.fr Subject: [Caml-list] Alternative Bytecodes for OCaml Date: Wed, 25 Aug 2004 09:26:28 -0500 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408250926.28629.jgoerzen@complete.org> X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at excelhustler.com X-Miltered: at nez-perce with ID 412CA19F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bytecodes:01 python:01 python:01 unmodified:01 glue:01 ocamlc:01 ocamlrun:01 ocaml:01 ocaml:01 imho:01 bytecode:01 bytecode:01 syntax:02 native-code:02 compile:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I come to OCaml from a Python background, and one of the most interesting bits of technology for Python is Jython[1]. Jython is a pure Java implementation of the Python interpreter and native-code libraries. It allows Python programs to run unmodified in a Java environment. More powerfully, though, Python programs can use Java classes as if they were native classes. No glue code is required for this; it Just Works. To a somewhat more limited extent, Python classes can also be made available to Java classes. This makes Python an interesting choice to add more dynamic capabilities to Java code, and it expands the set of available libraries to Python programs to include anything available for Java. I've used these capabilities for several purposes -- one of the more recent is the zxJDBC module, which exposes a Python DB-API interface to any database that has a JDBC implementation. One of my continuing complains about OCaml is the breadth of libraries available for it. It is getting better thanks to the hard work of many, but IMHO, still lags behind Python, Perl, and Java. So one of the things I've been thinking about lately is integrating OCaml with either Java or the .NET CLI in a manner similar to Jython. I've done some googling on the topic and it seems nobody is working on this yet. I just wanted to check and see if that's true. I see several possibilities with both of those paths: * An ocamlc/ocamlrun that execute under Java or .NET and compile/run normal OCaml bytecode * An ocamlopt-equivolent that would compile OCaml code directly to Java or .NET bytecode I have found a language called Nemerle[2] that seems to be very similar to OCaml, though with a different syntax. [1] http://www.jython.org/ [2] http://nemerle.org/ Thanks! -- John ------------------- 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