[squeak-dev] Re: floats

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: floats

Nicolas Cellier
Hé hé, what a shame, when having a integer roundedSqrt or a truncatedSqrt is cheap and easy
http://bugs.squeak.org/view.php?id=7099

 
 

Envoyé par nicolas cellier via Google Reader :

 
 

via gmane.comp.lang.smalltalk.squeak.general de Bert Freudenberg le 15/03/09


For interactive graphics they are, very much, yes, and that is one of  
the major reasons for Squeak to exist.

But even in general, having Float arithmetic is so convenient to  
developers that it crept into many places that don't even really need  
it. In an image that is not that important to you, try making  
Float>>sqrt do "self halt", and then move a window for example.

Or take the OLPC hardware designers - they went for the lowest-power  
chip that had a decent floating point unit (or at least that was a  
major factor) because there is so much software out there that relies  
on float support and that does not perform adequately with emulation.

- Bert -





 
 

Ce que vous pouvez faire à partir de cette page :