Hacker News new | ask | show | jobs
by shele 1651 days ago
The author is mistaken, there is nothing imprecise or floating about https://github.com/JuliaMath/FixedPointNumbers.jl.

Representing values on a scale from 0.0 to 1.0 instead of 0 to 255 (say) is a good idea if you have to do things like DFT. Most software implementations use fixed point arithmetic for that.

1 comments

+1. Further, when accounting for the fact that images can be represented in arbitrary color spaces, the representation in Julia images seems quite thoughtful given that Julia has no problems doing fast loops through the structs (unlike Python), or equivalent exposing an array like view on demand.

Storing images as arrays of unsigned 8-bit integer seems quite primitive in comparison!

> ” Sorry, I don’t like using floating-point numbers to represent pixels. Call me old-fashioned, I know how imprecise non-integers are.”

WTH does this even mean?!