zig-help

21196 threads · Page 271 of 424

Select an allocator based on the optimization mode 43 messages
what's the canonical order of arguments for functions that take both allocator and comptime value? 7 messages
Answered
access of union field 'number' while field 'number' is active 16 messages
Surprising behavior when combining += with result returned from catch expression 87 messages
Compiler 0.13.x
Am I calling my jitted code wrong? 164 messages
0.13.x
Dynamic nested tests 11 messages
How to quickly format the content of ArrayList and OwnedSlice? 81 messages
Answered
Segfault when appending to ArrayList 10 messages
How to wrap an owned slice into std.ArrayList interface? 3 messages
Answered
@typeInfo for struct comptime field type 3 messages
Answered
C backend with build.zig 9 messages
Trying to add a zig library 3 messages
minimal build.zig for wasm, zig version 0.12.0-dev 20 messages
What the hell I am doing wrong here? 40 messages
Formatting numbers with hexadecimal in varying endianess 4 messages
Standard Library 0.11.x New User
Zig as C build system 5 messages
How convert std.process.argsAlloc of [][:0]const u8 to smth more std.os.argv [][*:0]const u8 6 messages
Help with a compile error relating to function pointers and comptime 30 messages
New User Answered
Force runtime evaluation of a function 6 messages
New User Compiler Answered 0.13.x
How can I create an array of integers like an array of strings? 20 messages
Weird behavior when trying to print ptr to packed struct value 10 messages
Compiler New User
reading a file in zig 39 messages
Standard Library 0.11.x New User Answered
How to use the stage2_backend_x86_64 backend 2 messages
Answered
How to convert `stdin.readUntilDelimiter(x, "\n")` to non-deprecated equivalent 2 messages
New User Standard Library Answered 0.13.x
zig test - global setup and teardown 7 messages
How do I make a range over floats? 2 messages
Fibonacci Using Hashmaps and Recursion 5 messages
New User
terminate current process on Darwin 3 messages
How to set a custom panic handling function on zig master? 2 messages
Answered 0.13.x
MSVC Issues 6 messages
Can't seem to get http.zig working 21 messages
Help with HashMapUnmanaged memory leak 24 messages
Standard Library Answered
How do I access files in a dependency? 5 messages
Answered
use external tool from the build system 8 messages
Standard Library
Unsure about how hashmaps are supposed to be allocated memory. 32 messages
Answered
Why are pointer to different numbers the same? 3 messages
Help needed: best practices for testing 5 messages
Compiler New User 0.13.x Standard Library Answered
error: expected type '[]const u8', found '*[*:0]u8' 4 messages
Get the length of a request. 12 messages
Unexpected tuple unpacking behavior 2 messages
Answered
Cannot cross compile to MacOS/Linux from an M1 Mac 8 messages
Compiler 0.11.x New User
How To get More infos from compiler 16 messages
How to Initialize Nested Structs with Pointer/ Reference 14 messages
New User Answered
Does std have a `lessThan` function designed for sorting strings? 10 messages
Waiting for a file to be unlocked in multithreaded app 15 messages
Answered
How to Link Address Sanitizer (asan) 6 messages
Efficiently converting i of type usize to i - 2 of type f32 30 messages
Answered
What is the subsystem in the zig build and what does it do specifically? 3 messages
for a struct I write, can I make plain struct initialization inaccessible to users? 6 messages
0.11.x
is there a `zig lib` equivalent in the zig build system? 4 messages