alt.hn

8/16/2026 at 7:25:41 PM

Double-double: 31 digits of precision without leaving the FPU

https://marekfiser.com/blog/double-double-arithmetic/

by iliketrains

8/20/2026 at 3:54:59 PM

AI has rediscovered https://www.davidhbailey.com/dhbsoftware/ and similar? Or are there algorithmic improvements? Without referencing established double-double work it's hard to know.

by tobias2014

8/20/2026 at 3:56:03 PM

Fun fact - Google Maps does something similar to this in WebGL in order to keep accurate coordinates across a planet-sized map using only 32-bit floats.

by aappleby

8/21/2026 at 7:22:17 AM

This sounds interesting, is this documented somewhere?

by iliketrains

8/21/2026 at 5:44:37 AM

Such trick looks interesting. But I think for many cases it would be better to use fixed-width arithmetic based on 128-bit integers. Operations for them are much cheaper if done right (and assuming compilers are smart enough to optimize them). For the Mandelbrot set one don't need huge range, maybe 4 bits of range or so, the remaining 124 bits of precision can increase quality significantly.

by Panzerschrek

8/21/2026 at 7:21:16 AM

[dead]

by iliketrains

8/20/2026 at 5:41:14 PM

I have a Go library implementing double-double arithmetic (and also exponentials, logarithms, trigonometry...): https://github.com/ncruces/dbldbl

Mostly useless, but was quite fun to write.

by ncruces

8/21/2026 at 6:43:35 AM

This feels like a lot of words to say "a decimal point between two integers".

by suprjami

8/20/2026 at 5:45:13 PM

If you need that precision, especially for position and not values, why use floats at all?

by Scene_Cast2

8/20/2026 at 4:41:37 PM

Could be a neat post, but it was too obviously LLM-generated for me to care about reading it deeply. I’m really fine with people using LLMs to write code and understand stuff, but at least drop a disclaimer when you’re blogging straight Claude text.

by wolfd

8/20/2026 at 4:58:56 PM

Could call it... 'a Hamburglar'

by squiffsquiff

8/20/2026 at 7:24:50 PM

At least Dekker is referenced.

by nickdothutton

8/20/2026 at 5:37:17 PM

Reads like AI slop. It circles around the point, uses C# examples while talking about FPU, duplicates examples and so on.

by akomtu