zig-help

21196 threads · Page 351 of 424

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