From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 815E8BBA7 for ; Mon, 6 Feb 2006 11:36:49 +0100 (CET) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k16AamIS009382 for ; Mon, 6 Feb 2006 11:36:49 +0100 Received: from [212.188.56.210] (port=1274 helo=seva) by mx2.mail.ru with smtp id 1F63jj-000FoR-00; Mon, 06 Feb 2006 13:36:47 +0300 Message-ID: <005f01c62b09$703158a0$670aa8c0@seva> From: "Vsevolod Fedorov" To: "Grant Monroe" , References: <826ff8bf0602031120i355928e5r3e5b0bc4b644782b@mail.gmail.com> Subject: Re: [Caml-list] Compiling pycaml shared library Date: Mon, 6 Feb 2006 13:38:14 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Miltered: at nez-perce with ID 43E726C1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 wrote:01 sourceforge:01 compile:01 caml:02 caml:02 compiling:02 python:02 python:02 library:03 library:03 apps:04 shared:04 shared:04 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.0.3 Hello! > I'm trying to figure out how to compile a simple shared library (.so) > using pycaml that I can load from the python interpreter. I have a > single .ml file who's contents are as follows: I also had to to this task. So I wrote my own library, like py2caml (named py2caml) - just to write python extentions on ocaml (without C code). Unlike pycaml, it can handle multi-threaded apps, safe for user errors in python or caml code etc. If you interested I can upload the library to sourceforge, and/or answer your questions. Seva