News for hackers. Stuff that matters.
Re:Making Rust binaries smaller by default by owl57 on Wednesday January 24, 2024 @05:21AM (#39115715)
> several formatters that are often pretty large (e.g. f32 and f64 would add at least 30 KB of binary …)

I know floats are full of scary corner cases, but… Assuming tens of bytes per an if statement, hundreds of corner cases just in formatting? Is it really that bad?

Re:Making Rust binaries smaller by default by lifthrasiir on Wednesday January 24, 2024 @05:30AM (#39115761)
A naive implementation would be small, but a correct implementation (with some concrete definition of "correct") will need a sizable data table. I know this because I wrote that part of code [1] and somehow it is still in the std even though other algorithms now exist [2].

[1] https://github.com/rust-lang/rust/pull/24612

[2] https://github.com/rust-lang/rust/issues/52811