[squeak-dev] Usability of Squeak FFI for anything serious...

Bert Freudenberg bert at freudenbergs.de
Thu Apr 12 20:50:25 UTC 2018


On 12 April 2018 at 22:34, Nicolas Cellier <
nicolas.cellier.aka.nice at gmail.com> wrote:

>
> There are at least two problems:
> - documentation (lack of)
> - limitations (unions, pointer on pointer on ...)
> - automation (I said at least two, not at most)
>
> For the first problem, I opened the SO issues. Not ideal, but it's a start.
> For the second, I'll see if I can do something...
> For the third, I did import some .h header with VW DLLCC, and I'm in the
> process of translating to other dialects.
> It's easier because Smalltalk syntax is order of magnitudes smaller than C
> syntax.
>

​I always thought it should be fairly straightforward to make a FFI
bindings generator using SWIG (http://www.swig.org/).

SWIG parses C headers and outputs XML. Starting from that XML should be way
easier than trying to parse C ourselves.

​- Bert -​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180412/7291354a/attachment-0001.html>


More information about the Squeak-dev mailing list