[self-interest] FFI callbacks

ardeujho 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 <[1]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
2. https://groups.yahoo.com/group/self-interest/post;_ylc=X3oDMTJwN3NkdWY0BF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BG1zZ0lkAzMwOTcEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMzk0NjY5NTIw?act=reply&messageNum=3097
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
5. https://groups.yahoo.com/group/self-interest/post;_ylc=X3oDMTJlZnU2djVzBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTM5NDY2OTUyMA--
6. https://groups.yahoo.com/group/self-interest/message/3096;_ylc=X3oDMTM0OWpzbjFrBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BG1zZ0lkAzMwOTcEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMzk0NjY5NTIwBHRwY0lkAzMwOTY-
7. https://groups.yahoo.com/group/self-interest;_ylc=X3oDMTJlMjN0Z3BiBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM5NDY2OTUyMA--
8. https://groups.yahoo.com/;_ylc=X3oDMTJkODhhZDZrBF9TAzk3NDc2NTkwBGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzk0NjY5NTIw
9. https://info.yahoo.com/privacy/us/yahoo/groups/details.html
  10. mailto:self-interest-unsubscribe at yahoogroups.com?subject=Unsubscribe
  11. https://info.yahoo.com/legal/us/yahoo/utos/terms/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20140313/5831d4b9/attachment.html>

More information about the Self-interest mailing list