The Rise of Low Precision Floating Point (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
> 1. Starting with arbitrary precision formats
> 2. Noticing it's sometimes too slow
And always too costly. Both were so bloody obvious that they didn’t consider 1 at all.
> What reality seems to look like:
> 1. Limited precision calculations are the default
Historically, fixed precision integer calculations with implied decimal points were the default.
Von Neumann, in 1946 (https://www.arithmazium.org/library/lib/wk_floating_point_hi...):
“Several of the digital computers being planned or built in this country or in England are to contain a so-called floating decimal point.' ... There appear to be two major purposes in a 'floating' decimal point system both of which arise from the fact that the number of digits in a word is constant, fixed by design considerations for each particular machine. The first of these purposes is to retain in a sum or product as many significant digits as possible and the second of these is to free the human operator from the burden of estimating and inserting into a problem 'scale factors' multiplication constants which serve to keep numbers within the limits of the machine.
There is, of course, no denying the fact that human time is consumed in arranging for the introduction of suitable scale factors. We only argue that the time consumed is a very small percentage of the total time we will spend in preparing an interesting problem for our machine. The first advantage of the floating point is, we feel, somewhat illusory. In order to have such a floating point one must waste memory capacity which could otherwise be used for carrying more digits per word. It would therefore seem to us not at all clear whether the modest advantages of a floating binary point offset the loss of memory capacity and the increased complexity of the arithmetic and control circuits”
(Historically, the idea of fixed-point floats go back centuries, to the first mechanical calculators and the slide rule)
Replies (1)
Replies (1)
He thought that the work of inserting in programs adequate scale factors in computations would not take too much of programmer's time, because he did not envision how big the problems solvable with computers will become, and also he did not envision how cheap computer memory will become, because at that time he was very much concerned that the high cost of memory was the main limiting factor for what could be done with computers.
Only a few years later it became obvious that far too much work is required to determine adequate scale factors, so this work is better left to the computer, by the use of floating-point numbers, and that the additional memory cost is cheaper than the programming work saved thus.