zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
...instead of hard-coding it to 20. - This is consistent with the ChaCha implementation - NaCl and libsodium, that this API is designed to interop with, also support 8 and...
Fixes #166 ## Overview This adds new behavior to `zig fmt` which normalizes (renders a canonical form of) quoted identifiers like `@"hi_mom"` to some extent. This can make codebases more...
As Zig is a lot about communication, we should probably rename `packed struct` into something that represents more what it actually is. Right now, a lot of people assume that...
Hello. This PR: - changes `Dir.statFile` to use a single syscall (`fstatat`, called in the `os.fstatat` function) - adds functions in `File.Stat` to initiate it from an `os.system.Stat` structure (given...
While it is already mentioned on the `items` attributes of the structs, it is interesting to comment in every method potentially invalidating pointers to items that they may do so....
Reviving https://github.com/ziglang/zig/pull/12355, which revived https://github.com/ziglang/zig/pull/10415 in turn... Hopefully we can get the CI passing this time! - Add test framework (at `lib/std/math/test.zig`) for maths functions that take in a float...
Note: I'm making some assumptions about the language - specially about the grammar. I've read part of the grammar but I'm not very confident on if I understood it well,...
I'd like to introduce a new method `readLine` and `readLineAlloc` (suggestions on a name would be appreciated) to the Reader interface. These functions help fulfill the outlined changes suggested in...
### Zig Version 0.10.0 ### Steps to Reproduce and Observed Behavior I have a GPIO blink program written for the RPI zero/A+ which I know successfully blinks the light. Due...