You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Carefully chosen undefined behavior. For example, in Zig both signed and unsigned integers have undefined behavior on overflow, contrasted to only signed integers in C. This [facilitates optimizations that are not available in C](https://godbolt.org/z/n_nLEU).
The website mentions this comparison between C and Zig.
In more recent versions, while Zig still uses faster instructions, it actually uses one more instruction which makes the comparison look less cool.
Of course it's just doing some stack management which is way faster than an
imul
, but just thought it was worth pointing out :)https://godbolt.org/z/qWGvEo9o6
The text was updated successfully, but these errors were encountered: