News for hackers. Stuff that matters.
Re:Crabtime: Zig's Comptime in Rust by weinzierl on Saturday March 22, 2025 @09:10AM (#43445468)
I had to look this up because it is a while that I tried to use floating point math in a const fn and it seems that the differences you described have been decided to be acceptable.

Looks like floating point math in const fn is coming. Here is the respective tracking issue: https://github.com/rust-lang/rust/issues/128288

Re:Crabtime: Zig's Comptime in Rust by kibwen on Saturday March 22, 2025 @09:59AM (#43445673)
It's actually already here, it stabilized last year in 1.82: https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html#float...
Re:Crabtime: Zig's Comptime in Rust by weinzierl on Saturday March 22, 2025 @10:40AM (#43445942)
Oh, nice. Sometime I find it really hard to track the status of new Rust features. For example the tracking issue I linked is still open with "Stabilize" missing.
Re:Crabtime: Zig's Comptime in Rust by kibwen on Sunday March 23, 2025 @10:44AM (#43453250)
That's because the linked issue is a different, but related tracking issue. The FP-in-const tracking issue was this one: https://github.com/rust-lang/rust/issues/57241