-
This one is obviously a pretty huge task, but I've always been wanting something inbetween Go & Rust, and have yet to find what I'm looking for. I think with LLVM doing the heavy lifting these days it…
-
### Zig Version
0.11.0-dev.3312+ab37ab33c
### Steps to Reproduce and Observed Behavior
sqlite has the following in its header:
```
typedef void (*sqlite3_destructor_type)(void*);
#define SQLITE_…
-
> 原文地址:[Zig defer Patterns](https://matklad.github.io/2024/03/21/defer-patterns.html)
里面讲述了 defer 除了做资源回收外,其他的一些惯用法,里面有几个有趣的点。
第一点是这个:
```zig
errdefer comptime unreachable
```
文中称这个是 Z…
-
### Zig Version
0.11.0-dev.753+331861161
### Steps to Reproduce and Observed Behavior
I thought this was covered by #12215, but now that it is fixed I still get terrible performance.
Here is a sim…
-
### Zig Version
0.11.0-dev.4183+32a175740
### Steps to Reproduce and Observed Behavior
1. Follow the build instructions [here](https://github.com/paoda/zba#compiling)
2. Note that when running `zi…
paoda updated
6 months ago
-
```zig
const assert = @import("std").debug.assert;
test "comptime var loses value" {
comptime var i = 0;
comptime assert(i == 0);
const S = struct {
fn foo() void {
…
-
### Zig Version
0.10.1
### Steps to Reproduce and Observed Behavior
```zig
test "testing"
{
std.log.warn("test", .{});
}
```
output:
```
Test [1/1] test.testing... [default] (warn): tes…
-
### Zig Version
master
### Steps to Reproduce and Observed Behavior
Hey in the @cmpxchgWeak https://ziglang.org/documentation/master/#cmpxchgWeak docs states: "... returning null if the current val…
-
### Zig Version
0.12.0-dev.3193+4ba4f94c9
### Steps to Reproduce and Observed Behavior
Occasionally, in Windows API, integer values need to be passed as `LPCWSTR` parameters to functions. Exa…
-
### Zig Version
0.14.0-dev.850+ddcb7b1c1
### Steps to Reproduce and Observed Behavior
Files from different modules with the same relative path names from their respective root files have the …