[squeak-dev] Re: [ANN] Number comparison, hash, NaN, Point, and other partially ordered sets

bryce at kampjes.demon.co.uk bryce at kampjes.demon.co.uk
Wed Jan 7 23:06:18 UTC 2009


nicolas cellier writes:
 > I don't even know which hardware supports or not these traps...
 > I even wonder if such features were mandatory...
 > That should not stop us: as suggested, Smalltalk is already sufficiently 
 > slow to afford a sticky flag test at each Float primitive in case no 
 > hardware trap is available.

Hopefully Smalltalk will not always be that slow.

All we'd need to do was remove the boxing and unboxing around
floating point operations. Inside single statements, that is
equivalent to the Boolean optimisations that Exupery already
does. Across statements will require a proper optimiser.

Bryce



More information about the Squeak-dev mailing list