Let's say no. It will be possible in the future but it requires quite some work in the VM. If you want to do this work, ask the question on VM-dev mailing list they will tell you what you need to do to make it possible. 2014-09-18 22:05 GMT+02:00 Annick Fron <list@afceurope.com>:
Is it possible to call pharo from C ?
Annick
On Thu, Sep 18, 2014 at 10:05:51PM +0200, Annick Fron wrote:
Is it possible to call pharo from C ?
FFI - Not sure Alien - Not sure NativeBoost - Yes Simple example here: http://www.samadhiweb.com/blog/2014.08.02.c.callback.smalltalk.html Pierce
FFI - Not sure Alien - Not sure NativeBoost - Yes
One thing is receiving a callback from C. In this case, NativeBoost is the one with the worst end-user API. Another thing, is being able to embed the VM in a C application, and then call the VM explicitly from the application. In this case, there is not efficient support at all. The closest thing would be spawning the VM in a different process, and then "perform calls" via a socket. Greetings, Ronie 2014-09-19 20:42 GMT-03:00 Pierce Ng <pierce@samadhiweb.com>:
On Thu, Sep 18, 2014 at 10:05:51PM +0200, Annick Fron wrote:
Is it possible to call pharo from C ?
FFI - Not sure Alien - Not sure NativeBoost - Yes
Simple example here:
http://www.samadhiweb.com/blog/2014.08.02.c.callback.smalltalk.html
Pierce
On Fri, Sep 19, 2014 at 08:49:27PM -0300, Ronie Salgado wrote:
Another thing, is being able to embed the VM in a C application, and then call the VM explicitly from the application. In this case, there is not efficient support at all.
You're right. For this case Gnu Smalltalk is designed to be embedded. Pierce
participants (4)
-
Annick Fron -
Clément Bera -
Pierce Ng -
Ronie Salgado