News for hackers. Stuff that matters.
Re:Which implementation of Lisp is best when speed matters? by gyro_robo on Friday April 13, 2007 @08:29PM (#12780)
Also see SWIG: http://www.swig.org/Doc1.3/Lisp.html

Here's an example of compiling and loading inline C code that works with SBCL and CMUCL: http://homepages.nyu.edu/~ys453/

SBCL: sb-alien package allows interfacing with C-code, loading shared object files, etc. See Foreign Function Interface. http://www.sbcl.org/manual/Foreign-Function-Interface.html

Re:Which implementation of Lisp is best when speed matters? by Todd on Friday April 13, 2007 @11:32PM (#12820)
I read about Google's use of Python here

http://panela.blog-city.com/python_at_google_greg_stein__sdforum.htm

a few weeks ago and saw the part where they mentioned SWIG. This was quite an insight for me since I've been trying to figure out for a years the best way to write binary extensions for Perl, Lisp, etc. To see that Google uses it as a matter of course completely sealed it for me.

I have integrated it into my project over the last couple of weeks and I've got to say it is the bee's knees. It took some thrashing to get started and there are still some dark corners (e.g., typemap voodo) but I will never go back. My first project is a high performance sockets IPC module patterned after memcached/libevent and it works like a charm.

I highly recommend SWIG.