Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:s/info/alert/ so that non-debug runs have output
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: aabb260b8031b7b95203eed9cb780ac6b45ade1e08b827e2a693f4daa29331c1
User & Date: admin 2021-10-30 18:58:55
Context
2021-10-30
19:24
add 'spinner' example from Go Programming Language ch8 golang works 2.18x as hard (perf stat cycle count) to take 2.31x times as long (hyperfine runtime) as spinner.gdc. check-in: 40a2744c9d user: admin tags: trunk
18:58
s/info/alert/ so that non-debug runs have output check-in: aabb260b80 user: admin tags: trunk
2021-10-16
13:57
chrestomathy: add ziglang.org json parsing example check-in: 5bc84a2526 user: admin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to chrestomathy/zigjson/ziglangorg.zig.

20
21
22
23
24
25
26
27
28
    // parsing this JSON at comptime!
    break :x res catch unreachable;
};
pub fn main() !void {
    if (config.vals.production > 50) {
        @compileError("only up to 50 supported");
    }
    std.log.info("up={d}", .{config.uptime});
}







|

20
21
22
23
24
25
26
27
28
    // parsing this JSON at comptime!
    break :x res catch unreachable;
};
pub fn main() !void {
    if (config.vals.production > 50) {
        @compileError("only up to 50 supported");
    }
    std.log.alert("up={d}", .{config.uptime});
}