zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Whilst working on #19630, it was suggested by @andrewrk to introduce the semantic rule that when loading a value from a pointer, if any bits are `undefined`, the entire value...
### Zig Version 0.12.0-dev.3644+05d975576 ### Steps to Reproduce and Observed Behavior invoke "zig run" on any source file ### Expected Behavior According to "No hidden control flow" principle, it shouldn't...
## Zig Version 0.12.0-dev.3653+e45bdc6bd ## Wanted Feature I was hoping that I'd be able to just enable having trailing commas in the JSON parser by doing something like: ```zig try...
### Zig Version ```console $ ./zig2 version thread 327725 panic: only a few subcommands are supported in a zig2.c build Unable to dump stack trace: debug info stripped Aborted (core...
### Zig Version 0.12.0-dev.3630+215de3ee6 ### Steps to Reproduce and Observed Behavior Trying to build a static lib for an AVR MCU, Atmega328p specifically. The following code ``` const std =...
This is a plan for hammer out the semantics for bit packed types in the Zig language. Let's start with a tiny syntactical change: ## (1) Rename `packed` to `bitpacked`...
### Zig Version 0.12.0-dev.3475+71d878ba5 ### Steps to Reproduce and Observed Behavior Run the following build command with a minimal zig file `zig build-obj -gdwarf64 -O Debug -target x86_64-linux example.zig` Example.zig:...
For new language users from languages with language-level polymorphism support, it's not clear how to achieve polymorphism in Zig. I think it's important in include an easy way to create...
### Zig Version 0.12.0-dev.3633+f7a76bdfe ### Steps to Reproduce and Observed Behavior My setup is as follows: ```zig // src/BuildOptions.zig pub const EngineModule = enum { ... }; ``` ```zig //...
given the following test file we can run it with the various option values. ```zig const std = @import("std"); pub const std_options = std.Options{ .debug_stacktrace_kind = .full, }; pub fn...