[Vm-beginners] Plugin Example

Bert Freudenberg bert at freudenbergs.de
Tue Dec 6 09:21:59 UTC 2011


On 06.12.2011, at 08:07, Sean P. DeNigris wrote:

> What's a well-designed plugin to learn from?


There are two kinds of plugins:

1. Performance: These are typically written in pure Slang, use no outside libraries, and can be simulated.
Example: Matrix2x3Plugin

2. Platform Access: These are typically written half in Slang and half in C. The Slang part provides the Squeak interface (getting arguments from the stack, creating return objects, calling C functions) while the C part calls an external library. Unless the library is identical across platforms, each platform will have a different C part.
Example: LocalePlugin


- Bert -




More information about the VM-beginners mailing list