zig-help

21196 threads · Page 378 of 424

WT? 9 messages
What would be the equivalent of Rust include_str! macro in comptime Zig? 3 messages
read only pointer 2 messages
How to use std.fmt.format with anonymous type? 20 messages
Is there a std lib tool to convert from an iterator to a slice? 5 messages
Standard Library New User Answered
How do I match C errno? 8 messages
Answered
How can I measure the performance of a section of code? 2 messages
Answered
How to create 2D contiguous slice 12 messages
Answered
curious about how useful comptime is 25 messages
I would really love help and tips on learning zig because I really want to use it. 2 messages
Adding Base16 and Base32 to standard library? 5 messages
Linking .lib files with zig cc 4 messages
Sussy segfault 10 messages
zig-bootstrap can't link libclang 13 messages
Initialization style of multi-dimensional array. 3 messages
New User
What is the best way to enforce struct invariants? 7 messages
Answered
C style free(void *) with allocator 15 messages
Organizing examples? 32 messages
Answered
Linking Windows Resource Files with Zig? 8 messages
Compiler
How to reference a local repository in build.zig.zon? 3 messages
How to calculate hash of a package 9 messages
Mutable 'i' not accessible here 28 messages
build: optional install step 14 messages
Error, function expects const pointers 15 messages
Best practice: compilation without install cli flag 2 messages
Answered
How does @import find files/libraries? 9 messages
Answered
Proper way of parsing json with std.json when parsing a struct with a subset of json fields 5 messages
Standard Library Answered
how to free 58 messages
How to notify a thread 9 messages
Converting two sequential items of u8 array to an i16 31 messages
Answered
How do I generate a random number uniformly in [0, 1)? 3 messages
Answered
does zig allow anonymous unions in c header? 2 messages
How do I create an empty addModule? 21 messages
Answered
Sorting a StringHashMap(usize) 10 messages
Answered
Is there alloca in zig? 310 messages
Answered
Can one optimize specific modules only in `build.zig`? 7 messages
Answered
Ziglang interface pattern destroys performance (100$ to your charity for solution) 196 messages
Is there a way to declare the integer type of the range in the new for syntax? 3 messages
Answered
if expressions 25 messages
Apple/Homebrew zig --HEAD updates [solved] 6 messages
"MSVC" build problem on command-line Clang 7 messages
New User
Error after upgrading: `error: expected error union type, found 'bool'` 5 messages
New User Answered
Returning C strings 4 messages
Equivalent for b.addTestExe? 2 messages
Trouble building zls, want to verify steps forward! 3 messages
New User Answered
setting up vscode 40 messages
New User
An assortment of questions relating to strings and sending/receiving them from sockets 58 messages
Int to string 23 messages
Standard Library New User
Iterate over a hash map (env) and print key=value pairs 21 messages
Standard Library New User
Calling other programs in Zig in Linux 18 messages
Standard Library New User Answered