Is there a SWIG module for Squeak?

Tim Rowledge tim at sumeru.stanford.edu
Mon Sep 10 20:32:50 UTC 2001


The best way, now, in Squeak, to interface to outside libraries (any
language) is to learn a little Slang (read Andy G's chapter in the
NuBlue Book (see http://coweb.cc.gatech.edu/squeakbook)) and create
Plugins to connect to your libraries. Yes, this requires compiling some
generated C code, but that's not a terminal problem in most situations.

If you do this, you can avoid all the problems to do with linkage
conventions, header files, whatever - at least to the extent you could
with any 'normal' program. It will also perform better than FFI (until
and unless anyone spends the sort of effort that ParcPlace spent on
Tropicana/CPOK/DLLCC/whatever-its-called-now).

tim

-- 
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
You can't go home again, unless you set $HOME.





More information about the Squeak-dev mailing list