News for hackers. Stuff that matters.
Re:Rust: 128 bit integers preparing to be released by 0xcde4c3db on Saturday December 03, 2016 @11:53PM (#13098835)
The main operation I can think of is multiplying by a ratio without losing precision. If all your values are specified in 64-bit fixed point, a 128-bit integer type gives you something with enough bits for the intermediate product. It's not something I've really dealt with myself, but I seem to remember reading that this is really handy to have in some physics simulations and control system algorithms that do numerical integration. At any rate, it's important enough that many Forth dialects have a word for this specific operation [1].

[1] https://www.forth.com/starting-forth/5-fixed-point-arithmeti...

Re:Rust: 128 bit integers preparing to be released by Someone on Sunday December 04, 2016 @09:32AM (#13100092)
That's less of a concern for 64-bit (even for signed arithmetic, intermediary results can be close to 1.0E19) than for the typical 16-bit values and intermediary 32-bit result that Forth was designed for.

It also is a lot less of a concern on modern systems, where floating point operations aren't much slower than integer ones.

Re:Rust: 128 bit integers preparing to be released by astrobe_ on Sunday December 04, 2016 @07:05AM (#13099712)
Or more generally fixed point with big numbers and lots of decimals.