On 18.04.2010 01:05, Julian Fitzell wrote:
Cool stuff, Nicolas. I'm happy to see Grease getting use in the
wild... I'm curious to what degree it met your needs?
I just recorded a podcast with James Robertson this week talking about
cross-platform development. He asked what other projects were using
Grease and I'm afraid I didn't know to include yours. :)
Julian
From my limited experience, beyond the ANSI standard, Grease seems like
a step forward towards more dialect compatibility,
2c: How about a "Greasifier" (Grease lubricate: ? ;) ), which would take
as input a package/arbitrary unit of code, and emit an equivalent unit
of code, in which methods whose bytecodes would be equivalent to the
dialect-specific Grease method were rewritten to use the Grease
equivalent? (The other way around would ofc also be possible)
Or in smalltalk:
^Package copyWithAllMethods: [:aMethod | aMethod byteCodeSequenceDo:
[:bcs | (Grease hasMethodEqivalentTo: bcs) ifNotNil: [:equivGreaseCodes
| aMethod with: bcs replacedBy:equivGreaseCodes ] ]
Cheers,
Henry
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project