Version française
Home     About     Download     Resources     Contact us    
Browse thread
Wrapping var_args, or C ... in ocaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Thomas Fischbacher <t.fischbacher@s...>
Subject: Re: [Caml-list] Wrapping var_args, or C ... in ocaml?

Guillaume Yziquel wrote:

> Richard Jones a écrit :
>> On Mon, Feb 15, 2010 at 12:13:17AM +0100, Guillaume Yziquel wrote:
>>> Richard Jones a écrit :
>>>> On Sun, Feb 14, 2010 at 11:46:10PM +0100, Guillaume Yziquel wrote:
>> However I'm still confused what you are trying to do here.  If you're
>> trying to bind the above, maybe look first at PyCaml?
> 
> Well, somehow, PyCaml seems to never have wanted to work with me.
> 
> I tried Art Yerkes' version, Thomas Fishbacher's version, Henrik 
> Stuart's version, and Yoann Padioleau's merge of these versions. Somehow 
> things always seem wrong. I get a segfault with Yoann Padioleau's 
> version due to the layout of the Python table function (WTF!? BTW).
> 
> So I'm rewriting a Python embedding.

...which is a good idea.

Our version of pycaml (i.e. the one included in the nsim package) works
in the sense that it does not have memory management bugs, as the one in
debian does. However, I think it is not thread-safe from the Python
side. Still, it is based on Art Yerkes' old code. I consider a clean
re-write a very good idea. Would do it myself, if I had the time...

-- 
best regards,
Thomas Fischbacher
t.fischbacher@soton.ac.uk