Fwd: Re: problem in porting from smalltalk

Bryce Kampjes bryce at kampjes.demon.co.uk
Thu Feb 23 21:32:08 UTC 2006


nicolas cellier writes:
 > Thanks Lukas, one point.
 > 
 > So this work around is not a good idea.
 > Have to revert to a <pragma> thing...
 > 3.9 image added the framework for such things i think.
 > Are there teams working on it and previews of code ?

Nicolas, 
You could just disable that optimisation in your image. It
shouldn't take more than a day including learning your way around the
bytecode compiler. I doubt that optimisation provides a measurable
gain in most situations.

Removing it yourself is simple and it'll let you implement your
project cleanly. If it's too slow for your use then think about
optimising again. Squeak is much faster than Ruby or Python which
are fast enough for many practical uses. 

The clean solution is to dynamically inline message sends so the
simple unoptimised version of and: is as fast as the optimised
version. A system with dynamicly inlined messages would be much
faster for other things as well.

Bryce



More information about the Squeak-dev mailing list