| ▲ | chaz72 an hour ago | ||||||||||||||||||||||||||||
Are you saying that you think that Zig does not produce identical outcomes for comptime code regardless of when the code runs? What do you mean? | |||||||||||||||||||||||||||||
| ▲ | weinzierl 10 minutes ago | parent | next [-] | ||||||||||||||||||||||||||||
Yes. For example in Rust it took a long time for floating point operations to be available at compile time and even now only a subset is. The reason is that a lot of energy and thought went into the issue of producing identical output (and what identical precisely means ) even when compilation is on a different processor than where the target runs. As far as I know this is not a concern for Zig comptime. | |||||||||||||||||||||||||||||
| ▲ | bruckie an hour ago | parent | prev [-] | ||||||||||||||||||||||||||||
I assumed that it meant that if you ran code at compile time or at runtime, the results should be exactly the same given the same inputs. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||