Re: [Pharo-users] [Ann] DemoFFI

2016-03-08 Thread stepharo
Thanks. It would be good to use that in the documentation that esteban started to write. Stef Le 8/3/16 15:20, Pierce Ng a écrit : Hi all, I've published libffidemo on Github,https://github.com/PierceNg/libffidemo, and DemoFFI on STH,http://smalltalkhub.com/#!/~PierceNg/DemoFFI. Together, t

Re: [Pharo-users] [Ann] DemoFFI

2016-03-08 Thread Stephan Eggermont
On 08-03-16 15:20, Pierce Ng wrote: I wrote these to figure out how to port NBSQLite3 from NativeBoost to the new FFI. I hope others will find them helpful too. Thanks, Pierce. I find this kind of demos very helpful. Stephan

[Pharo-users] [Ann] DemoFFI

2016-03-08 Thread Pierce Ng
Hi all, I've published libffidemo on Github, https://github.com/PierceNg/libffidemo, and DemoFFI on STH, http://smalltalkhub.com/#!/~PierceNg/DemoFFI. Together, they show how to use Pharo 5's Unified FFI to obtain an "opaque" pointer to a C-level struct, in the two usual styles: passing in a poin