zig-help
Checking whether types can coerce to each other
Float as binary
Do vectors have a guaranteed layout or alignment?
seekTo not working as expected
file.reader() doens't exist
Struct fields aren't rearranged to eliminate padding
Zig CC does not produce proper PDB symbols just produces a blank .pdb file
Packed structs are broken?
Compiler
How to ensure alignOf(Int) == alignOf(StructWithInt)?
What's the difference between StringHashMap and StringArrayHashMaps?
Tutorials or guides covering memory allocators in Zig
New User
Answered
failing to build zig from source using option B
Padding and struct assignment
[Struct design] handling allocator field
New User
How to cast ?*anyopaque to *[]u8?
Is there a good pattern for using enums as bitmasks that don't involve wrapping around another type?
How to change embedFile type from *const[640.0]u8 to *const[320.0]u16 ?
New User
Zig error handling, printing |err| content?
How to handle C dependencies when using zig to crosscompile a C++ project for raspberry PI
Conditionally add a zero-sized type to extern struct?
How to manage a project test suite
compile error with a simple SDL_Init call
Is there a way to mark extern c function as pure?
Standard Library
Is there a `comptime if`, equivalent to `if constexpr` in c++?
What zig regex libraries are available? Is it planned in stdlib?
insert string as code
Help me understand - function pointers must be single pointers
How do I convert u64 to []u8?
Specify zig output file using `build-(obj|lib|exe)`
[SOLVED] how to identify or check unused functions and declarations?
Is there a way to bundle static resources into my binary?
[SOLVED] Is intCast a packed struct not working yet?
Answered
Passing two-dimensional array to function
New User
[SOLVED] How to allocate `*anyopaque` point to given size block without knowing the underlying type?
How to get build.zig to read headers from header install location?
New User
convert [4]u8 to u32
SOLVED Bit tweaks ... I know they're considered bad ... but what is reasonable way in zig?
How to stop IterableDir.walk from walking into `.git` directories
How is the `active` field on a simple union detected ?
[SOLVED] What is the memory layout of an optional slice?
How is sentinel termination useful? Whats the difference between many pointers and slices?
Run each test case as separate command on `zig build test` to allow wrapping with Valgrind
When using `test`, no package named 'zig-network' available in package 'root'
Compiler
New User
Connecting to a std.net.Address
Why doesn't u1 implicitly convert to bool?
Safe navigation
Is it possible to have a undefined optional that is not null?
How to detach a childprocess (on linux)?
LRU cache in std?
Error while formatting an error type