zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
[`_Atomic` data types](https://en.cppreference.com/w/c/language/atomic) are available in C11 that ensures atomic read and load. I'm not sure how to implement this in Zig. ### Zig Version 0.10.0-dev.1427+ad5770eba ### Steps to Reproduce...
Ran into some "unable to translate function" errors when trying to use [liburing](https://github.com/axboe/liburing): ``` ./zig-cache/o/yQ6K25ocH8MNArGcIQfQgEaYDzM-vpeJWZlivEDNea4714ETWd35K3XZmZyX1Uuy/cimport.zig:1558:33: error: unable to translate function pub const __io_uring_peek_cqe = @compileError("unable to translate function"); ^ ./zig-cache/o/yQ6K25ocH8MNArGcIQfQgEaYDzM-vpeJWZlivEDNea4714ETWd35K3XZmZyX1Uuy/cimport.zig:1564:11:...
Attempt to improve the readability and consistency of `docgen`.
`build.zig`: ```zig const std = @import("std"); pub fn build(b: *std.Build) void { const build_test = b.addTest(.{ .root_source_file = .{ .path = "repro.zig" } }); build_test.linkLibC(); const run_test = b.addRunArtifact(build_test); b.step("test",...
### Zig Version 0.11.0 edit: also tried "0.12.0-dev.1297+a9e66ed73" (Windows x86_64) with the `zig cc` repo steps - same issue ### Steps to Reproduce and Observed Behavior **Observed Behaviour** lld-linker errors....
Preferring escape sequences to UTF-8 in source is a common coding standard, one reason being security. Directionalities, dingbats, emojis, diacritics, logograms, notations, controls... shouldn't or can't be printed in source...
currently the error from code like this ```zig print("{}\n\"\x00", .{ 0, 0 }); ``` yields this error ``` zig/lib/std/fmt.zig:202:18: error: unused argument in '{} " 1 => @compileError("unused argument in...
### Zig Version 0.12.0-dev.1835+697b8f7d2 ### Steps to Reproduce and Observed Behavior I'm writing some code that does some comptime introspection on types, but in order to check if a declaration...
Fixes #18321 Fixes #16454 Fixes #1383
### Zig Version 0.11.0-dev.2298+5d63d1115 ### Steps to Reproduce and Observed Behavior Operating System: Windows 10 Home 19045.2728 1. Run `zig build` If you replace `addSharedLibrary` with `addStaticLibrary`, there are no...