amazon-ion / ion-rust

Rust implementation of Amazon Ion
Apache License 2.0
148 stars 35 forks source link

Add support for half-precision floats in binary 1.1 reader. #764

Open nirosys opened 6 months ago

nirosys commented 6 months ago

From Matt's comment on 756.

Can we create an issue to track this? It would be great for users (and our own benchmarks) if we could use 2-byte floats for "common" numbers like 1.0.

We'll probably need to settle on an f16 implementation (such as half).

zslayton commented 6 months ago

In the medium term, Rust itself is getting native support for an f16 type (and f128, but we can't use that). The RFC was merged, but the implementation is still in-flight.