[Pharo-users] [squeak-dev] FFI syntax

Chris Muller ma.chris.m at gmail.com
Fri Oct 17 23:11:13 UTC 2014


> This:
> "I can not even find up to date information on how to *install* current
> working FFI."
> was about a working version on linux. Working with tests and examples,
> something
> a beginner can look into and see how it is used.
>
> Sure maybe it is just as simple as select one entry from the squeak map
> list.
> But how should a beginner know to look there ?

I always hoped the word "Catalog" on the menu entry would stand out
enough to encourage beginners to click and "see what's there".  If
not, there is lots of beginner documentation:  wiki, videos, etc.
which refer to SqueakMap.  I agree there's room for improvement
though..

> We have three package managers (in the current 4.5 release).
> squeak map catalog
> monticello
> universe browser (<- is still here but not working)

Universes brings up an empty list, SqueakMap does not.  Simply
following the path of least resistance gets you a working FFI in
Squeak 4.5.

> searching squeak mailing shows links to source.squeak.org
> ffi on wiki.squeak does not link to squeak map

The whole point of SqueakMap is to _avoid_ having to search mailing
lists.  It is the only single place that can document where any Squeak
software is, regardless what other SCM repository is being used to
host it.  That's why SqueakMap shoud always be checked first and, if
not there, only then have to dig thru mailing lists, etc.

> And no,ffi examples are not in squeak map.

Then why not make an entry for them there so the next person can find
them?  It is really very easy to do that (see [1]).

I made entries for a lot of projects that aren't mine, but the only
way to get out of this rut as a community is to embrace our catalog as
a community.

> some ffi tests are failing.

Not the ones from loaded from SqueakMap.  I just tried it in a stock
4.5 and trunk and got 32 out of 32 green tests, on Ubuntu Linux 12.04
LTS.

> loading ffi examples from squeak source:
> FFI-Unix-Examples ->failing (can not coerce arguments)
> FFI-Examples -> crash the image.
>
> -> maybe I am just uncapable, but I thnk it is not obvious how to get FFI
> working, it just does not work with the
> current squeak 4.5 release. You have to find a working cog version from
> eliots site.

SqueakMap documentation for FFI Core and Tests appears to be
up-to-date.  If you have found a working "FFI Examples" somewhere
(mirandabanda.org?) and you got it working in 4.5 or trunk, I hope
you'll add an entry to SqueakMap..  I'll help!

 - Chris

[1] -- "SqueakMap Publishing Guidelines"  http://wiki.squeak.org/squeak/6182


More information about the Squeak-dev mailing list