Magma 1.4 on Pharo 1.4 and beyond

Stuart Herring st-lists at stuartherring.com
Sun Jan 6 06:16:43 UTC 2013


Hi Cris,

I might be able to take it on.  I don't have a huge amount of time, but I
use Magma for most of my projects, so I'm likely to end up doing it for my
own sake anyway (either that, or stop using it, and I don't want to do
that, because it's spoilt me for most other methods of persistence) - I
might as well share the result.

A fork probably would make the most sense - though given how well you've
split it up, I'm imagining that the bulk of the packages would be able to
stay untouched - it'd mostly be the serialization packages which add
extension methods to classes that no longer exist, and the few that touch
some of the more drastic changes like FileSystem that would require forking.

I've actually already been maintaining my own private Metacello
configuration for Magma 1.3 that loads it on Pharo 1.3, 1.4 and 2.0 anyway.

BTW - it looks like you haven't copied Magma-Pharo-Tester from Squeaksource
over to the Squeaksource 3 repository.

Regards,
Stuart

On 3 January 2013 06:31, Chris Muller <asqueaker at gmail.com> wrote:

> Hi Pharoers, below is a script which will load Magma 1.4 into Pharo
> 1.4.  Proceed past the Warnings.
>
> After loading, you can run the tests by opening a Transcript and then
> executing:
>
>   MagmaTestCase fullSuite maDebug
>
> Right now the tests immediately hit a snag due to an API factoring in
> Pharo 1.4 which moved some "vm" accessors out of "Smalltalk" and into
> "Smalltalk vm" but removing the "vm" prefix.. (sigh).  There are also
> a couple of extension methods needed in Pharo so that MethodContexts
> can be serialized..
>
> So, given that folks are already moving to 2.0 and there's already
> talk about Pharo 3.0 alpha, I think we've reached the point where the
> entire codebase should simply be forked for Pharo so that the code
> doesn't get too squirrely and with a proliferation of "-Squeak" and
> "-Pharo" packages.  I'm looking for someone with experience with
> cross-dialect issues interested in getting Magma ported to Pharo.  I
> would help from the Magma side, of course.
>
>  - Chris
>
> | gofer |
>
> (Smalltalk hasClassNamed: #MaObject) ifFalse:
>         [ "MaBase layer with tests"
>         gofer := Gofer new
>                 squeaksource3: 'MaBase'.
>         #('Collections-BTree-lr.73'
>         'BrpExtensions-cmm.11'
>         'Ma-Core-cmm.232'
>         'Ma-Collections-cmm.141'
>         'Ma-Ascii-Report-cmm.9'
>         'Ma-Statistics-cmm.28'
>         'Ma-Search-cmm.42'
>         'Ma-Serializer-Core-cmm.290'
>         'Ma-Serializer-Pharo-Core-cmm.1'
>         'Ma-Serializer-Tests-cmm.40')
>                 do: [ : each | gofer version: each ].
>          gofer load ].
>
> "Load the Ma client server package"
> (Smalltalk hasClassNamed: #MaClientSocket) ifFalse:
>         [ Gofer new
>                 squeaksource3: 'Ma-Client-Server' ;
>                 version: 'Ma-Client-Server-Core-cmm.225' ;
>                 version: 'Ma-Client-Server-Tester-cmm.157' ;
>                 load.
>         "Include OSProcess to support tester launching of images."
>         Gofer new
>                 squeaksource: 'OSProcess' ;
>                 version: 'OSProcess-dtl.66' ;
>                 load ].
>
> "Magma client"
> (Smalltalk hasClassNamed: #MagmaSession) ifFalse:
>         [ Gofer new
>                 squeaksource3: 'Magma' ;
>                 version: 'WriteBarrier-cmm.44' ;
>                 version: 'SOLHashTables-cmm.16' ;
>                 version: 'Magma-Client-cmm.642' ;
>                 load ].
>
> "Magma server"
> (Smalltalk hasClassNamed: #MagmaServerConsole) ifFalse:
>         [ Gofer new
>                 squeaksource3: 'Magma' ;
>                 version: 'Magma-Server-cmm.455' ;
>                 version: 'Magma-Tools-cmm.68' ;
>                 load ].
>
> "Magma tester"
> (Smalltalk hasClassNamed: #MagmaTestCase) ifFalse:
>         [Gofer new
>                 squeaksource3: 'Magma' ;
>                 version: 'Magma-Tester-cmm.406' ;
>                 version: 'Magma-Pharo-Tester-cmm.1' ;
>                 load]
> _______________________________________________
> Magma mailing list
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/magma/attachments/20130106/b1180df6/attachment.htm


More information about the Magma mailing list