5 ms·
Decimals are extremely important in financial applications. Fast decimals may range from unimportant to extremely important in specific situations, according t
by kazinator 11y ago
Decimals are extremely important in financial applications.
Fast decimals may range from unimportant to extremely important in specific situations, according to what is considered fast enough in those situations.
> We should remove floating point support from general-purpose CPUs and leave it to GPUs, where it belongs.
That's just silly. Let's move an extremely common and deeply integrated programming language feature onto special hardware.
You do realize that "computer science" once actually consisted of little more than numerical analysis? Now you want to kick the latter off the computer. :)
- SixSigma 11y agoMy first PC was a 386 with a 387 floating point co-processor. [1] Intel chips have only had floating point support as default since 1989 with the 486DX [2] and still had a cheaper non-floating point version in the 486SX [3] Motorola 68000 was similarly constrained [1] https://en.wikipedia.org/wiki/X87 https://en.wikipedia.org/wiki/X87 [2] https://en.wikipedia.org/wiki/486DX https://en.wikipedia.org/wiki/486DX [3] https://en.wikipedia.org/wiki/486SX https://en.wikipedia.org/wiki/486SX
- dalke 11y agoWhich would suggest that on-chip floating point integration is important enough, across a wide range enough range of applications, to justify the expense.
- atemerev 11y agoThat was before GPUs. GPU is a modern co-processor.
- dalke 11y agoIs this just a terminology difference? The suggestion was to remove floating point from "general-purpose CPUs and leave it to GPUs". If GPUs are integrated into the CPU in the same way that a math-coprocessor is now part of the CPU, then the future "CPU" will be what we now think of as the "CPU + GPU" combination.
- dragonwriter 11y ago> That was before GPUs. GPU is a modern co-processor. And the trend of on-die GPUs as part of the CPU -- the same thing that happened with FPUs before them -- has already begun. Again showing that on-chip floating point integration (even of the kind of floating-point operations supported by GPUs as distinct from the functions already inherent in CPUs that have integrated FPUs) is important enough, across a wide range enough range of applications, to justify the expense.
- kazinator 11y agoGreat! As long as I can simply define a local variable, structure member, or array element of floating point type, and use it, I don't care where the circuits lie. Just don't make me use some special API or compiler extensions to get to the GPU just so I can do some everyday calculation.
- atemerev 11y agoExactly. Programming was once all about numerical analysis and simulations. Now these take about 1-2% of all programming-related activities, but we still use these highly specialized optimized data types everywhere! It's just a mental inertia.
- kazinator 11y ago> we still use these highly specialized optimized data types everywhere! It's just a mental inertia. Sure, specialized to the task of representing 0.5 for the rare case when you need something halfway between 0 and 1. Is it really just mental inertia, or are these floating-point data types "everywhere" because they are actually meeting functional requirements?