Functional callbacks on all Cog platforms

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Functional callbacks on all Cog platforms

Eliot Miranda-2
 
Hi All,

    just wanted to report that as of Alien-eem.35 and https://github.com/OpenSmalltalk/vm/commit/da3fafdec9444754af104e0ed9f613f6eb1888d9 we now have functional callbacks on all x86 platforms, ARM32 platforms and x86_64 platforms.

There's a simple example Alien class>>exampleCqsort that shows how to use the system and tests the implementation using the C library's sort quick sort implementation that takes a function pointer as an argument to use for comparing pairs of elements.  This is mapped onto a Smalltalk block by Alien's callback implementation.  The example sorts 100 random double-precision floats using qsort and a callback into Smalltalk.

_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

re: Functional callbacks on all Cog platforms

Craig Latta
 

Hi Eliot--

> ...just wanted to report that as of Alien-eem.35 and [OpenSmalltalk
> VM commit da3fafdec9444754af104e0ed9f613f6eb1888d9] we now have
> functional callbacks on all x86 platforms, ARM32 platforms and x86_64
> platforms.

     Cool! Has the callbacks-from-foreign-threads situation[1] improved
as well?


     thanks again,

-C

[1] https://tinyurl.com/jyu7axg (lists.squeakfoundation.org)

--
Craig Latta
Black Page Digital
Amsterdam | San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)