Hacker News new | ask | show | jobs
by yosefk 317 days ago
But why are 32b floats relevant? JS, the language famously representing ints as floats, uses 64b floats. Who puts ints into 32b floats and cares about precision loss?
3 comments

Layout engines are not implemented in Javascript.
I didn't say JavaScript anywhere in my comment. No relation to JavaScript. Rendering is typically done in tiles, in GPU, and the best precision that can be used across all GPUs is float32. Some GPUs don't implement float64.
Plenty of embedded GPUs do coordinates that way. But I doubt they're running browsers.