-
### Zig Version
0.12.0-dev.2928+6fddc9cd3
### Steps to Reproduce and Observed Behavior
Minimum reproducible example:
```zig
const std = @import("std");
const json = std.json;
pub cons…
-
Hardware: 2019 Macbook Pro
OS: macOS 13.2
ISA: x86_64
Terminal: Ghostty master
Steps to replicate
Then run `./zig-out/bin/flow src/tui/tui.zig`
The program then crashes and breaks my t…
-
~https://github.com/ziglang/zig/milestone/16~ https://github.com/ziglang/zig/milestone/18
-
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`
This change will reflec…
-
According to the Linux man page for `getdents64(2)`, `linux_dirent64.d_type` will be `DT_UNKNOWN` unless the filesystem specifically has support for filling it out. A further `os.fstatat`--or similar…
-
The [JSON Compilation Database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) is a file format that stores information about files compiled in a build.
This database can be then consume…
-
Current way
```zig
const foo = Type { .Int = .{
.signedness = .signed,
.bits = 32,
} };
const boo: Type = .{
.Int = .{
.signedness = .signed,
.bits = 32,
}
};
```
Propos…
-
after demo project init, i try to build and run, it failed
```sh
$ proxy jetzig init web_demo
Creating new project in /home/mmc/projects/zig/web_demo
[create] build.zig ✅
[create] src/main.zi…
-
Playing around with the super cool new General Purpose Allocator, I tried to test out the double free detection, but I'm not able to reach the "Double free detected" code path.
Creating a byte and …
-
Extracted from #14523.
Given a foo.zon file:
```zig
.{
.bar = "hello",
}
```
it should be possible to `@import` it as a comptime-known value:
```zig
const data = @import("foo.zon"…