zig-help
@bitCast(usize, idx) is waaay slower than it should be?
Arrays of anytype
New User
Namespaced test names
How to sign extend an i5 to a u16?
New User
Answered
0.13.x
zig on macos 14 sonoma
Comptime function references all decls of cImport
How do I generate docs?
Why is it that std.ArrayList is never shrinked during usual usage?
Answered
Handling `const` case with `const Self = @This()` track
volatile* u8 ???
Alternative to `std.mem.set` for non-byte slices
Answered
"Cannot format slice without a specifier" (error in the first comment)
Initialize fields of a struct as undefined?
Index into slice with unknown size at compile time
zig tuple of strings to C array of strings
Writing a TCP server in Zig?
Answered
What is the convention regarding freeing data allocated from another allocator?
New User
tentative proposal: uniform function call (or a question as to why it hasn't been proposed already)
optional pointer assignment
Compare strings with different buffer sizes
Answered
std_options not applicable for build.zig
Type Arrays
http standard lib take 10 second per request
Checking if in Debug/Release mode possible at comptime?
Compiler
0.13.x
Initializing a struct containing 2d array
Examine the results after inline for/switch
Answered
How to run tests of a single stdlib file
Answered
mini question about Zig updates
Answered
`std.mem.toBytes(...)` on an anonymous struct or tuple returns `[0]u8`?
Standard Library
Compiler
New User
0.13.x
Confusing memory leak using std.json.Reader
Standard Library
Answered
0.13.x
Iterate over all fields in a struct
How does one set "install_dir", and "install_dir" directly in build.zig file?
Arrays vs. slices at comptime
Answered
array of bytes to struct
Answered
How extern and @extern are different?
why i cant implicitly convert array to slice???
How to use a bitmask and enum?
Showing type errors in VSCode
understanding constants
What's the recommended way to use TLS in Zig?
Standard Library
Answered
0.13.x
Asking for a review of my matrix multiplication snippet using @vector
Answered
Weird memory leakage when appending to ArrayList?
New User
Export an obj file
Answered
Comparison
Standard Library
New User
package manager and is zig usable for now?
Producer/Consumer exists in zig ?
Answered
Dynamic linking/cross-compilation for different audio backends
Answered
Slicing a slice produces an array rather than a slice?
Answered
error: use of undefined value here causes undefined behavior
Answered
Unroll Loops