[squeak-dev] SqueakNim - an FFI glue code tool
David T. Lewis
lewis at mail.msen.com
Tue Aug 18 17:00:26 UTC 2015
> What about Magma 1.5? I think it is very relevant to Squeak. News it
> On Tue, Aug 18, 2015 at 10:23 AM, Ron Teitelbaum <ron at usmedrec.com> wrote:
>> Hi All,
>> Quick question. I would normally take a message like this and announce
>> it on news.squeak.org and other places. Since this release comes from
>> 3D ICC I wanted to see first if anyone sees a conflict between my role
>> as news team guy and my real job. Would anyone object to my adding this
>> announcement to news.squeak.org?
>> All the best,
>> Ron Teitelbaum
>> Head Of Engineering
>> 3D Immersive Collaboration Consulting
>> ron at 3Dicc.com
>> Follow Me On Twitter: @RonTeitelbaum
>>> -----Original Message-----
>>> From: squeak-dev-bounces at lists.squeakfoundation.org [mailto:squeak-dev-
>>> bounces at lists.squeakfoundation.org] On Behalf Of GÃ¶ran Krampe
>>> Sent: Tuesday, August 18, 2015 4:36 AM
>>> To: The general-purpose Squeak developers list; Pharo Development
>>> Subject: [squeak-dev] SqueakNim - an FFI glue code tool
>>> Hi fellow Smalltalkers!
>>> At 3DICC we are using Nim (http://nim-lang.org) to write our
>>> critical code that typically otherwise would have been written in
>>> But now we have Nim :)
>>> Nim can generate dlls/so libraries following C conventions so they can
>>> be called via FFI.
>>> Andreas Rumpf (author of Nim who works with us) wrote a small utility
>>> called SqueakNim - its a set of Nim macros that generates the .st
>>> calls based on the Nim code, so it takes out some grunt work and
>>> up types as far as it can. Simple, but very nice.
>>> The docs etc are a bit unpolished, but the trivial example in "tests"
>>> has comments in it and it works in Squeak 5, Pharo 3, Pharo 4 and I
>>> guess in
>>> most versions of Squeak/Pharo.
>>> Why would you be interested?
>>> - Nim is great fun! C/C++ is torture. Same performance, nuff said.
>>> - Nim has a tool called c2nim that wraps C *and* C++ libraries.
>>> That last part is a killer. We use c2nim to wrap Urho3D - a huge C++
>>> engine, works great, and that wrapper is also open source btw,
>>> How do I use it? See README at:
>>> For some more information my article (predating this tool) might have
>>> ...and if you want to ask questions, hop onto freenode on either
>>> #pharo or #nim. Me and Andreas are around.
>>> regards, GÃ¶ran
More information about the Squeak-dev