[squeak-dev] Re: [NativeBoost] new win32 build available

Igor Stasenko siguctua at gmail.com
Thu Apr 29 22:33:39 UTC 2010

On 30 April 2010 00:29, Ian Trudel <ian.trudel at gmail.com> wrote:
> Igor,
> I had a question about NativeBoost. Does it support callbacks? One of
> the important distinction between FFI and Alien is the latter supports
> callbacks. You should consider provide an example of callback using
> NativeBoost provided that it is supported. This would be a plus.

Its nothing prevents NativeBoost from supporting that.
It is certainly doable. But requires some coding effort :)
Here what one should do:

- allocate a memory chunk in separate region (using mmap or VirtualAlloc)
with execution permission.
- put the callback native code there
- pass the address to callback whenever you want to

> Ian.

Best regards,
Igor Stasenko AKA sig.

More information about the Squeak-dev mailing list