On 2010-01-04, at 11:46 AM, David Li wrote: > I am experimenting with Scratch and planning to integrate several native > library into it. It seems that I can accomplish most of what I need via > plugins. But it would be nice to get a clear pictures about how to build the > VM and how the codes are structure in case I need to get in there.
Personally I think the thing to do is expose the native library calls via FFI or Alien, then build the messy frame work for dealing with the library in smalltalk. Take a look at the GStreamer api I did in EToys for OLPC, or the Navigation services or quicktime stuff in Sophie. Or you can cheat a bit and also do most of the work in SLANG, see the Mac Menu Bar plugin as an example. Most code in SLANG with some cCode: for the api calls. =========================================================================== John M. McIntosh <[email protected]> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com =========================================================================== _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
