zig-help
Indexing optional arrays
u64 with first `n` bits set to 1
Answered
values of type '[8]type' must be comptime-known, but index value is runtime-known
Answered
Stringifying a struct with a []const u8 field containing `#` to json cacuses segmentation fault
Answered
0.13.x
How to use std.Thread.WaitGroup
Answered
Error Linking against C Linenoise: error: expected type '[*c]u8', found '*const [4:0]u8'
Answered
Segmentation Fault when trying to read a file
New User
Answered
0.13.x
BoundedArray with provided buffer
Standard Library
Answered
libc musl unable to find dynamic system lib
Question about pointers to array construct
Answered
Creating null pointer of type `*opaque{}` type of HWND?
Answered
[solved] Generic struct generation syntax error: no field named
[solved] How to initialize a []const []const u8 with minimal syntax
A function that takes in an arbitrary reader
Best pattern for allocating slice on the stack?
Answered
How to use a zig package? from github without a build.zig.zon
Build System
New User
Write data-structure out to JSON (custom types)
Bitwise shortcut for someSignedInt modulo 8?
Code Review: Brainf*ck interpreter
Answered
Python to Zig
New User
0.13.x
One executable for multiple operating systems
Answered
Array to Slice
New User
error: unknown CPU: 'x86' trying dropin zig as compiler to the meson build for babl library.
Answered
provide custom build steps from a package
Build System
Answered
When to free slices copied into ArrayList
conditional compilation winmain how?
C++ struct defaults unable to compile in Zig
New User
Compiler
Answered
0.13.x
Open file and create it if it does not exists
Does ZLS work with included C headers?
Write tests in separate files
Build System
New User
0.13.x
Alias cImport declared variables
Answered
0.13.x
Why am I getting `unreachable` error while sorting?
How to obtain a pointer to instantiated generic function?
Answered
Matching union variants using if instead of switch
Zigling 33 (iferror)
New User
Answered
Replace strings in comptime
New User
Answered
0.13.x
comptime function call check
Answered
Failures during deallocation / destruction
Using an ArrayList.fromOwnedSlice to manage a slice
Answered
libressl doesn't build with target x86_64-linux-musl without -DENABLE_ASM=OFF
Answered
Index `iter.peek()`
Only one time check Vulkan function pointer optionals
Answered
Why is first mutex lock the slowest
New User
block bug, value left uninitialized
[solved] @embedFile into argument: expected *T found *const T
New User
0.13.x
[solved] error: Allocator not marked as pub
Review my Zig code
New User
Answered
Zig thinks list is not mutated, despite the fact that it is
0.12.x
initialize a string hashmap with values
Answered
Adding -target aarch64-macos breaks my build on Mac ARM64
Answered