zig-help

21196 threads · Page 379 of 424

Actually reading from a SeekableStream? 9 messages
Switch on modulo int 5 messages
Answered
Storing an Operator in a Variable 15 messages
How do you most efficiently do this filesystem stuff with the Zig standard library? 2 messages
SOS build system! 2 messages
Total newbie webassembly problem something changed in zig 0.11.0 and I have no idea what to do with 3 messages
Casting an entire array 6 messages
Answered
Server closes connection before client gets HTTP response. 13 messages
Assertion failure: StringHashMap.put() with key from realpath 3 messages
Standard Library Answered
Is there a way to create a function that takes an array/slice which only has comptime known len? 4 messages
constCast shenanigans causing a segfault 5 messages
Is there a way of timing builds to understand where it's spending time? 31 messages
Answered
glGenVertexArray 56 messages
Is there a way to check if something's been allocated with a certain allocator? 22 messages
Answered
Server ends connection before sending bytes to client. 2 messages
@sizeOf(array) problem 7 messages
Answered
Missing log implementation for freestanding 2 messages
Zig @import vs C #include 8 messages
Standard Library New User
`@Vector` 2 messages
Answered
error unable to evaluate comptime expression 72 messages
Accessing build.zig.zon from build.zig 10 messages
`usingnamespace` expected behavior ~~It looks like `usingnamespace` is broken~~ 13 messages
Concat two []const u8 99 messages
Answered
How to change C++ standard in zig build 5 messages
New User
How to extern an allocated pointer and free it later? 18 messages
Answered
interpret u8 slice of length 2 as u16 8 messages
Answered
Can I "contaminate" the global/local namespace? 13 messages
Get the byte offset of the tag in a tagged union 27 messages
Answered
Unable to compile Skyrim SKSE DLL using zig 30 messages
Structs style 2 messages
Answered
get string from ptr and length w/o access to buffer 5 messages
Answered
I get an error when trying to use Addr.resolveIp() 12 messages
Answered
How to default a struct field with an empty slice? 18 messages
Weird compile error of std lib testing support function 3 messages
Answered
Trying to get a struct's name, not its type's name. 116 messages
What are all the @ functions? 8 messages
New User Answered
error using realloc 2 messages
Answered
Is there a common practice and/or pattern for a function that generates a [_]u8 output? 24 messages
Answered
Idiomatic Threads 19 messages
Answered
Help generating a binary with `ObjCopyStep` 19 messages
What's the idiomatic way to handle error when using C library? 25 messages
Answered
Namespaces 2 messages
Answered
`!void` vs `anyerror!void` 18 messages
Answered
How does Zig’s safety features compare to Rust? Will Zig ever adopt a borrow checker? 17 messages
Answered
[Build system/package manager] Where are packages downloaded? 4 messages
Coming from Golang: What is the best way to get concurrency in Zig? Async or Thread intrinsics 19 messages
How come zig can't infer the array type here? 5 messages
Is there a hex function? 45 messages
How do I add module to Zig project in 2023? 12 messages
Answered
Any differences between Container Level Variables and local variables when alignCast 2 messages