Plugin Example

classic Classic list List threaded Threaded
2 messages Options
Sean P. DeNigris Sean P. DeNigris
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Plugin Example

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

Sean
Bert Freudenberg Bert Freudenberg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Plugin Example

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 -


_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Loading...