[self-interest] FFI callbacks
ardeujho at cd.pn
Thu Mar 13 03:13:56 UTC 2014
A casual look around couldn't find anything. I can modify Self arrays
and such so can at least pass data back and forth. I was looking at
running an existing program in a background thread and using the FFI to
call back into Self when events happen in that existing program.
I'll take another approach of having that program communicate via
sockets (or possibly zeromq) to Self for calling back information.
It'll be fine.
On Thu, Mar 13, 2014, at 01:11 PM, Russell Allen wrote:
Not that I know of, but I haven't investigated the VM enough to be 100%
sure. I imagine it would require some sort of OOP pinning so that the
object isn't moved by the garbage collector while the foreign code is
Just out of interest which library are you thinking of linking to?
On 12 Mar 2014, at 10:23 pm, ardeujho <ardeujho at cd.pn> wrote:
Is it possible to call Self methods from C glue code? I know Self can
call C code but I'd like to be able to pass a Self block or object to a
C function and have it call it. Is this possible?
1. mailto:ardeujho at cd.pn
3. mailto:mail at russell-allen.com?subject=Re%3A%20%5Bself-interest%5D%20FFI%20callbacks
4. mailto:self-interest at yahoogroups.com?subject=Re%3A%20%5Bself-interest%5D%20FFI%20callbacks
10. mailto:self-interest-unsubscribe at yahoogroups.com?subject=Unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Self-interest