zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
This is a fast memory pool implementation that can be used to rapidly allocate objects of the same type. It even outperforms the null hypothesis of just leaking the memory...
not sure if this is the right fix. but resolving the layout unconditionally causes another test to fail (`@sizeOf(T) == 0 doesn't force resolving struct size`) and based on @andrewrk...
Addresses #11112 Add doc on default return type for block expressions, with test case. I'm not sure it's the most appropriate test case (comparing void to void) but couldn't think...
std.crypto.sign.Ed25519.sign previously required the message to be passed as a single continuous byte slice. This adds a second function std.crypto.sign.Ed25519.signSegmented which permits the message to be a slice of byte...
Reviving https://github.com/ziglang/zig/pull/10415. - Add test framework (at `lib/std/math/test.zig`) for maths functions that take in a float and output a float of the same type, e.g. `exp()` - Create tests for...
Recently in my latest tests there has been an error with "testing.allocator". ```bash error: Cannot use testing allocator outside of test block @compileError("Cannot use testing allocator outside of test block");...
From issue #10181. @cweagans can you evaluate if I'm doing this the right way? I found which ioctl it is from reading musl source.
fixes #12138
perf_event_attr.type needs to take a runtime defined value to enable dynamic PMU:s, such as kprobe and uprobe. This value can exceed predefined values defined in the linux headers. reference: perf_event_open(2)...
When a file is deleted on Windows, it may not be immediately removed from the directory entry. This can cause problems with future scans of that directory, which will see...