Hacker News new | ask | show | jobs
by ArchD 1227 days ago
For the "Reorder floats + Delta", I wonder if he did anything special to prevent floating-point errors. Floating-point operations (e.g. minus followed by plus) do not necessarily round-trip because their results are not exactly mathematically correct, i.e. sometimes y + (x - y) != x.

Otherwise, the compression is lossy.

1 comments

(blog post author) I'm not doing operations on floats. The data is floats, yes, but the XOR is obviously not on floats; and Delta is not either. Both are just interpreting data as 4-byte unsigned integers or 1-byte unsigned integers depending on the filter.