Edit Rename Upload Download Back to Top

Portable FFI representation

I would love to see a repository of dll bindings appear for my favourite OS/ST combinations.

If such a repository were to be created and maintained for specific OSes it would be a Good Idea (tm) to make them Smalltalk vendor neutral, so all of the ST communities can help maintain such a repository.

To accomplish this we would need a portabale representation for the declaration of external functions, for example an extention to SIF.

There are already a couple of CS projects for portable program representation, they should be extended with a portable representation of dll bindings:

The easy part of this project is to define declarations of the 'outside':

I expect the hard part to be to represent the 'inside' in a way that doesn't incur overhead on some/all platforms: Reinout Heeck, ...

Dave Simmons www.smallscript.org says: Based on my experience and work on hi-performance FFI for SmallScript, I think this goal is very difficult to implement without providing some common optional typing infrastructure and related annotation syntax changes to the Smalltalk language. At a minimum it begins with the <primitive:...> format.


Edit Rename Upload Download Back to Top