Re: [Pharo-dev] [Pharo-users] FFI beginner question
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@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@gmail.com <mailto:raoknz@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
participants (1)
-
Guillermo Polito