4 ms·
Also see SWIG: http://www.swig.org/Doc1.3/Lisp.html http://www.swig.org/Doc1.3/Lisp.html Here's an example of compiling and loading inline C code that works wi
by gyro_robo 20y ago
Also see SWIG: http://www.swig.org/Doc1.3/Lisp.html 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/ 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 http://www.sbcl.org/manual/Foreign-Function-Interface.html
- Todd 20y agoI read about Google's use of Python here http://panela.blog-city.com/python_at_google_greg_stein__sdforum.htm 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.