Login  Register

Plugin Example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Plugin Example

Sean P. DeNigris
Administrator
What's a well-designed plugin to learn from?

Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Plugin Example

Bert Freudenberg
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