On Tue, Nov 13, 2007 at 03:11:40PM +0900, Darren Cook wrote: > > On Oct 2nd 2007 Heikki wrote: > >> I was thinking that it could be quicker to do prototyping in something like > >> python, while having fast low-level functions in C. Since we already have > >> Lukasz Lew's ego library, I wonder if anyone has written a wrapper around > >> it > >> to call it from python (or ruby, perl, or some other scripting language). > > And I wondered: > > I think if you used swig then we could use your work for any scripting > > language, not just python: > > http://www.swig.org/exec.html > > Rather than join in the current language war thread I thought I'd bump > this one. Heikki I wondered if you looked into this any further?
I gave it up pretty quickly. I came to the conclusion that I have so little time for mesing around, that the idea of learning a new language (say python), and how to build swig interfaces to it, and getting all that to work, it would probably take me so long that I wouldn't get around to doing any go experiments for a long time. I have a feeling that although swig is probably a good toolkit, most people avoid using it if they only need to interface to one or two languages. But no hard facts to prove this... > P.S. I'm especially interested if you found some problems with swig - > I'm reading up on making php extensions at the moment and wondering if > swig is easier or harder than going the php-only route. I have seen some php extensions (our company makes one, but I am not directly involved). I seem to recall that making an extension to php was not all too hard. But as one who has to program some php for living, I wonder why would you like to use a language like that? I am *so* tired of the way it happily declares a new variable when you mistype one, or finds mistyped function names only at run time, if you happen to call that function... As a C-programmer, I want my compiler to catch silly mistakes for me, when ever possible. Regards Heikki -- Heikki Levanto "In Murphy We Turst" heikki (at) lsd (dot) dk _______________________________________________ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/