summaryrefslogtreecommitdiff
path: root/core/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 14:41:03 -0300
committerGabriel Schneider <[email protected]>2026-11-19 15:51:13 -0300
commitee2e79dea10c93c104b70cf1eedccd7ba85003fc (patch)
tree0a7796a729e1e324a09c21dead12a01b375fd541 /core/builtins.zig
parentf1db5eaf5a5cc5f891cc2c180aa706fefc39971d (diff)
downloadpardes-ee2e79dea10c93c104b70cf1eedccd7ba85003fc.tar.gz
pardes-ee2e79dea10c93c104b70cf1eedccd7ba85003fc.zip
the small ones: their tape calls are the handle's, `p.tape` (the handle's step 5, P20, pardes-handle-sizing section 3's fifth noun): sixteen calls in ten files, each in a function that holds the core: Output (History's dumps and Config's default dump directory asked of the authority, Fonts' listing a site), Query (Recent's rows and the closed panes asked of the authority, a preview's read a site), Store (a closed pane's record, the authority's), Plumb (a port's readers, the authority's; its `const tape = @import("tape.zig")` gone, 1 line apart from the count), Stream (a search run on the loop, a site), mouse (whether a script reads a pane's events, the authority's), File (an edit's mtime, a clock), ninep/events (the boot's event when not replaying), ninep/tree (/sessions, a site), builtins (Get's label, Mount's probe and Term's shell check: `c.p.tape`, a word's context holds the core); no function gains the parameter (row: 0); Stream.runHere, the host's search on its loop when it has no worker, holds the core and reads its field, which is the tape the global names whenever a step is under way (the safe build's check at every entry); the five numbers: (1) functions that gained the parameter 0 (row: 0); (2) the 97 per-operation counts within 0.1%, the largest image-frame on medium +0.0332%; no function on a per-row path touched; (3) nothing stopped compiling for want of an io; (4) global io uses 7 (unchanged), free calls into the tape 45 -> 29, machine_lines rows unchanged; (5) lines changed: tests 0, code +16/-16 (and the import's one line). Lines in files not this work's: none. Gate: tui core-test 840/983 (143 skipped), shell-test 1018/1021, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's; winch failed once, passed on the runner's retry), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (2033/0, 1978/0, 1682/0), quiet 568/0, 581/0, 748/0, stops not at may_wait 0 (its "corpus through a client" fails as on the base, steps 18 to 21), gui unit-test 1616/1620 (BaselineHarnessMismatch, the base's), daemon.py plain, --far, --games, --window-clients pass, test/cross_replay.py tui to tui: 28 digests agree in each of the three replicas, semantics 313a99190b93a8c5 (unmoved); frames (gpu/handle2-5b against tree1, run again after the machine's reboot cut handle2-5 short) 77/77 byte-identical in Debug, gui unit-test 1616/1620, perfab corpus2x +0.035% (session noise 0.089%, threshold 0.4%), pictures identical in all 10 runs, perfops PASS
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/builtins.zig')
-rw-r--r--core/builtins.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/builtins.zig b/core/builtins.zig
index a79e4b66..7add3d9c 100644
--- a/core/builtins.zig
+++ b/core/builtins.zig
@@ -494,7 +494,7 @@ pub const Restore = struct {
var full_buf: [4096]u8 = undefined;
var label_buf: [256]u8 = undefined;
const file = if (typed) |t| dump.restoreFile(c.p.tape, t, c.p.settings.dump_dir.get(), &full_buf) else null;
- const name = if (file) |path| path else pardes.tape.authority(pardes.Db.labelled, .{ &c.p.db, c.p, typed, @as([]u8, &label_buf) }) orelse {
+ const name = if (file) |path| path else c.p.tape.authority(pardes.Db.labelled, .{ &c.p.db, c.p, typed, @as([]u8, &label_buf) }) orelse {
var buf: pardes.Kind.Buf(320) = .{};
return c.p.reportFailure(c.id, if (typed) |t| buf.print("Restore: no dump labelled {s}", .{t}) else "Restore: no dump yet; name one");
};
@@ -593,7 +593,7 @@ pub const Mount = struct {
};
// A mount that cannot be reached is said now, and taken back, not
// found out by the first look through it.
- const reached = pardes.tape.site(.probe, null, @import("runtime").ninep_io.Client.probeMount, .{ c.p.gpa, dial });
+ const reached = c.p.tape.site(.probe, null, @import("runtime").ninep_io.Client.probeMount, .{ c.p.gpa, dial });
reached catch |err| {
if (c.p.fs.mounts.pop()) |gone| {
c.p.gpa.free(gone.name);
@@ -1182,7 +1182,7 @@ pub const Term = struct {
if (arg.len > 0) {
var why: [320]u8 = undefined;
// The authority's lookup, taped, as Shell's (exec.zig).
- if (pardes.tape.site(.shell, null, @import("dev").host_io.Shell.refusal, .{ arg[0..@min(arg.len, 200)], &why })) |refused| {
+ if (c.p.tape.site(.shell, null, @import("dev").host_io.Shell.refusal, .{ arg[0..@min(arg.len, 200)], &why })) |refused| {
var said: pardes.Kind.Buf(340) = .{};
return c.p.reportFailure(c.id, said.print("Term: {s}", .{refused}));
}