logoalt Hacker News

dnauticstoday at 6:18 AM1 replyview on HN

Zig Comptime uses softfloat so it has architecture independent determinism.

And the zig core team is absolutely concerned with bitwise determinism in the compiled artifacts, iirc this is why they rejected the sloppy bun PR to the compiler.


Replies

weinzierltoday at 9:23 AM

Determinism and host/target agreement are two different properties.

The Zig core team is apparently not concerned enough about the second point to forbid transcendentals at comptime and this is something that'd be hard to take back, because I'd break existing code.

show 1 reply