[squeak-dev] Re: help loading latest Squeak FFI

Sean P. DeNigris sean at clipperadams.com
Sat Jun 9 18:28:09 UTC 2012


douglas mcpherson wrote
> 
> I'm trying to load the latest version of FFI for Squeak. (I'm using a
> recent Cog VM if it makes a difference)
> ...
> ConfigurationOfFFI load... Results in an MNU:
> 
Great try! That *should* have worked. 

Metacello is an executable documentation of package dependencies. Of course,
it's relatively new and we're all learning how to use this stuff*! In this
case, FFI's internal dependencies were not properly declared. The DNU you
got was the same DNU that John got when he tried to load the packages
together, because Kernel depends on Pools being fully-loaded. I've fixed the
configuration, so no one ever has to remember what depends on what loading
in which order.

Now you have cool options like:
(Installer repository: 'http://www.squeaksource.com/MetacelloRepository')
install: 'ConfigurationOfFFI'.

"Load the equivalent of the pure-Installer script"
(Smalltalk at: #ConfigurationOfFFI) project bleedingEdge load: 'Tests'.

"Load all packages (includes examples and tests)"
(Smalltalk at: #ConfigurationOfFFI) project stableVersion load: 'ALL'.

"Load just the basics (e.g. for deployment)"
(Smalltalk at: #ConfigurationOfFFI) project stableVersion load: 'Core'.

"Load Tests on top of FFI Core"
(Smalltalk at: #ConfigurationOfFFI) project stableVersion load: 'Tests'.

The advantage here is that you have a real model. For example, these logical
groups are reified once and available via these exact scripts no matter how
the internal details of FFI change over time - 'Tests' might load 1 package
or 100 package, but you don't have to care.

And Bert, notice I even used Installer to make you happy ;-)


* Luckily there is a new crop of tools coming (like Versionner), which will
help - writing configurations by hand is like writing in assembler :(

--
View this message in context: http://forum.world.st/help-loading-latest-Squeak-FFI-tp4633956p4634102.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.


More information about the Squeak-dev mailing list