[Pharo-users] FFI beginner question

Guillermo Polito guillermopolito at gmail.com
Mon Sep 23 08:31:11 EDT 2019


See

https://github.com/pharo-project/pharo/issues/4693 <https://github.com/pharo-project/pharo/issues/4693>
https://github.com/pharo-project/pharo/issues/4694 <https://github.com/pharo-project/pharo/issues/4694>
https://github.com/pharo-project/pharo/issues/4695 <https://github.com/pharo-project/pharo/issues/4695>

Of course, if somebody wants to help, you’re welcome to :)

Guille

> El 23 sept 2019, a las 13:59, Guillermo Polito <guillermopolito at gmail.com> escribió:
> 
> Just more detail into it:
> 
>  - the source code of the booklet, written in Pillar, resides in here:
>    https://github.com/SquareBracketAssociates/Booklet-uFFI <https://github.com/SquareBracketAssociates/Booklet-uFFI>
> 
>  - I’ve been in the last weeks doing a pass on it (see branch version2 https://github.com/SquareBracketAssociates/Booklet-uFFI/tree/version2 <https://github.com/SquareBracketAssociates/Booklet-uFFI/tree/version2>)
>    I started adding examples, and enhancing the explanations.
>    I got particularly blocked when explaining marshalling where I saw several issues to address / features to add before continuing documenting
> 
> I have some issues written down to fix in FFI soon:
>   1 - unify vocabulary: module and library in the API (see #ffiCall:module: #macModuleName #ffiLibraryName, #ffiLibrary…)
>   2 - some of the names above are misleading (#ffiLibraryName returning a library object and not a name for example)
>   3 - extend literal object support to floats
>   4 - add a strict (but safe) mode where types for literals are mandatory (otherwise marshalling can go wrong :))
> 
> I’ll create issues for these in the next hours ^^.
> 
>> El 23 sept 2019, a las 13:38, Richard O'Keefe <raoknz at gmail.com <mailto:raoknz at gmail.com>> escribió:
>> 
>> how do I
>> connect C numeric
>> types introduced by the library to FFI?
> 
> Hi Richard, what do you mean? Do you have an example? What’s the signature of your C function look like?
> 
> Guille

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20190923/f8aed16d/attachment.html>


More information about the Pharo-users mailing list