zig-help

21196 threads · Page 241 of 424

is 2 allocator params a good or bad idea? 2 messages
Answered
Is it possible to set a C file as the root source file in build.zig? 5 messages
Answered
zig build targeting x86_64-macos for cgo? 4 messages
Answered
unique id per type 11 messages
Compiler Answered 0.13.x
any way to convert to zig without overusing @intCast, @as, @truncate? 20 messages
Undefined value from HashMap iterator? 11 messages
Answered
Help with writing an ast in zig! 83 messages
0.11.x New User
what is the recommended way of doing `(-1..1),(-1..1)` offsetting in zig? 50 messages
OpenAI POST request for the new api parameters 8 messages
how smart is comptime? 13 messages
pass error return trace through @call 9 messages
0.13.x
How to use ZLS as with monaco-editor for web 2 messages
Handling Errors 12 messages
Is there a way to "embed" a struct in another? 16 messages
Answered
@TypeOf and struct consts 11 messages
0.11.x New User
expected type '[*:0]const u8', found '[]const u8' 8 messages
where is getpid() for macos? 8 messages
Standard Library 0.13.x
zig error during compiler error report? 27 messages
Please review my code 3 messages
Why zig generates compile error for define macro whose argument is name of the struct 10 messages
Answered
Is there a way to import something using an absolute path from the module root 33 messages
Incompatible types in catch statement 14 messages
Threads from the std 35 messages
Answered
Unwrap multiple values 39 messages
Answered
How can I listen to key presses and gracefully exit when required? 16 messages
How to find memory issues on Windows? Valgrind I don't think works. 7 messages
0.13.x
Interfaces/traits 13 messages
Answered
zig fmt not formatting 3 messages
Answered
Error in generic struct function 39 messages
If there are no C libraries linked, is libc really completely optional? 9 messages
Compiler New User Answered
How can I do 10^7? 12 messages
Answered
input inside infinite loop; creating a menu-based program 11 messages
Answered New User 0.13.x
Why is this use of comptime necessary? 69 messages
Answered 0.13.x
pointing to generic struct field, that is a tuples 18 messages
New User
How to depend on Zig package with no build.zig.zon? 5 messages
New User Answered 0.13.x
Does for loop have step increment greater than one? 2 messages
New User Answered
New Build.LazyPath error 3 messages
Compiler 0.13.x
How can I prevent unreachable error 12 messages
Why does index operator `[0]` prevent `comptime` evaluation? 7 messages
Answered
any way of converting `[32][10000]u32` into `[32*10000*4]u8`? 4 messages
wrapping doesnt work with unsigned ints ?? 6 messages
can i pass multiple fields into functions? 8 messages
New User
how to work with iterators more idiomatic 3 messages
New User Answered 0.13.x
Idiomatic way of constructing an integer from a contiguous sequence of bytes 6 messages
Standard Library New User Answered
Output the test executable built by zig build test 3 messages
ArrayList has Rust with_capacity? 2 messages
Answered
How to stop json from returning error.MissingField on optional type 2 messages
New User Standard Library Answered 0.13.x
windows .def files 18 messages
Compiler
Weird test behaviour 4 messages
Answered
Zig support for eZ80 CPU 21 messages
Compiler Answered 0.13.x