Login  Register

Re: Ffi in Pharo 1.1

Posted by Mariano Martinez Peck on Sep 20, 2010; 5:49pm
URL: https://forum.world.st/Ffi-in-Pharo-1-1-tp2546134p2547412.html



On Mon, Sep 20, 2010 at 6:08 PM, Hernán Morales Durand <[hidden email]> wrote:
Hi Mariano,

One thing I don't understand of Metacello is why don't you use
#latestVersion (or #latestReleaseVersion, #latestDevelopementVersion,
etc) instead of specifying the version number (e.g. '1.3'). How do you
keep updated about the latest version numbers?

This is an excellent question :)

In summary, there is a current problem with Metacello and Pharo: a user of a project doesn't know which is the stable version for a pharo specifc version. For example, in this case suppose FFI 1.1 is the stable for Pharo 1.0 and FFI 1.3 for Pharo 1.1. How can the user know that? there is no easy solution.  This is why Dale, me, stef, marcus, esteban, etc, have been discussed last week in ESUG. I will then send a summary about the possible solution.

Anyway, if I use latestVersion, I am not sure you will load that again. Ok....I assumed he was using Pharo 1.1 (because is the current latest stable release). Then, I KNOW that FFI 1.3 works well with Pharo 1.1. If he takes the same image, and in 6 months someone releases FFI 1.4 that doesn't work anymore with Pharo 1.1, then it will fail.

Cheers

Mariano
 

2010/9/20 Mariano Martinez Peck <[hidden email]>:
> Hi Bruce. The recommended way to install external packages in Pharo is now
> using Metacello.
>
> To install FFI in Pharo, evaluate:
>
> Gofer new
>     squeaksource: 'MetacelloRepository';
>     package: 'ConfigurationOfFFI';
>     load.
>
> ((Smalltalk at: #ConfigurationOfFFI) project version: '1.3') load.
>
>
> For more information about Metacello:
>
> http://code.google.com/p/metacello/
>
> or you can see the talk we give with Dale last week at ESUG.
>
> Cheers
>
> Mariano
>
> On Sun, Sep 19, 2010 at 9:27 PM, Bruce Haugland <[hidden email]>
> wrote:
>>
>> I noticed in Pharo 1.1 that the loadFFI script in the script loader is no
>> longer there.  How can I load FFI into Pharo 1.1.  I noticed that the shared
>> library is there but that there are no supporting FFI Classes.
>> Thanks for the Help.
>> Bruce
>> _______________________________________________
>> Pharo-users mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>>
>
>
> _______________________________________________
> Pharo-users mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
>
>



--
Hernán Morales
Information Technology Manager,
Institute of Veterinary Genetics.
National Scientific and Technical Research Council (CONICET).
La Plata (1900), Buenos Aires, Argentina.
Telephone: +54 (0221) 421-1799.
Internal: 422
Fax: 425-7980 or 421-1799.

_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users


_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users