summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* upgrade: an Upgrade's dump and exec are upgrade.dumpInto and upgrade.execAs, ↵Gabriel Schneider12 days
| | | | | | | which the terminal's and the window's upgradeNow each spelled out (the dump's path, the dump, its write, the old binary held, the daemon told, 9P flushed, the exec and what a failed one undoes); the dump is freed with the core's allocator, which made it, where each frontend freed it with its own after a failed exec (a panic there, never reached); writeDump and openSelf are upgrade.zig's own now Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* replica: a client's join, the terminal's and the window's alike, is ↵Gabriel Schneider12 days
| | | | | | | replica.join (the session dialled, its build checked, its dump loaded and checked, or joined again for its view once its link ends, the core it leaves held meanwhile), where tui.zig and gui.zig each spelled out the dial, the check, the load, the redial and their timing; Link.reset takes the join, and Link.load, Link.joinedAs and Link.redial go Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* replica: the timing samples (each speculation, copy, rollback and terminal ↵Gabriel Schneider12 days
| | | | | | | delta a client applies; each input, boundary and join a session steps) are kept only when PARDES_REPLICA_STATS reads them or an in-process harness does: a session or a client attached for days grew them a word each, without end Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* fs: find_max_hits, find_max_depth and grep_max_files go, unread since Find ↵Gabriel Schneider12 days
| | | | | | | and Grep moved to the disk engine's worker (the note above them said as much); Tables: the timing test behind TABLES_TIMES goes, as the query, stream and grep ones did (a benchmark inside a unit test, its numbers in docs/next-tables.md as they are) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* the four gui unit tests that failed on the base pass: the behaviour tests ↵Gabriel Schneider12 days
| | | | | | | allow the window's own rows (/status ends in `pointer in|out` on a window; a bare setting word moves a setting, a toggle to its other side and Lift, Crt or ShaderAnimation to their next state, and Shader and Pet, whose off means no file and no pet, take a name, not a flip); the tagline pointer-mapping test puts the workspace tag's text TAG_TEXT_INSET cells in, as it is drawn; the caret test that grew a tag past a row's end goes, as a tag wraps onto rows (up to MAX_TAG_ROWS) and no caret is past one Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* after the merge: the window's frame probe follows a Restore's new core (it ↵Gabriel Schneider12 days
| | | | | | | pointed into the freed old one, so every frame after a Restore wrote freed memory); ov_pinch_scale and ov_touch_scroll_delta go (nothing wrote them once the pinch and touch_scroll events went; the Debug box loses its two dead rows, topbarexec and windowops regenerated alone and re-run); the perf baselines are named tui, as the frontend is (the perf gate had looked for perf-baseline-tui-*.json and found the tty-named files) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pardes: a new panel's frame zero and the tagline band offsets are tested at ↵Gabriel Schneider12 days
| | | | | | | the end of pardes.zig, where both are written, so the tui runs them too (they ran in gui.zig alone) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* host_io.Inbox's own tests move from gui.zig to the end of host_io.zig, where ↵Gabriel Schneider12 days
| | | | | | | the tui's unit tests run them too (they ran on the window's alone): a completion through a full output queue, the two PTY backpressure cases, the EOF reserve, the completions' order and reset, and the LSP query; PtyTests is host_io's, its waitBlocked pub for the gui test that still waits on a blocked reader Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* draw, gui: a tag caret's span is one Layer.caretSpan (past a full row's end ↵Gabriel Schneider12 days
| | | | | | | it sits at the tag's right edge, where the grid's is clamped), which the core's focused cursor box and the window's caret both take, in place of the rule written in each with a comment pointing at the other Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: one clipInstance cuts a quad to a pixel rectangle and its atlas window ↵Gabriel Schneider12 days
| | | | | | | in proportion, which for a glyph's 1:1 quad is the per-texel cut it made before and for a stretched band's the right one, in place of clipInstanceTop, clipInstanceRight and clipBodyInstance; a body layer's quad wholly past its bottom is empty where clipBodyInstance turned it over Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: one emitScrollRows draws a scrolling body's shifted rows, a glide's and ↵Gabriel Schneider12 days
| | | | | | | a touchpad's fraction alike (the rows the scissor shows, the caret a touchpad's block carries, then the gap: the glide's kept rows or the touchpad's one edge row), in place of emitGlideRows and its twin Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: a closed shell goes to host_io.retireShell as the tui's and macOS's do, ↵Gabriel Schneider12 days
| | | | | | | the window's own retired list gone (its slots, the reap on every spawn and reconcile, the loop's 16 ms poll while one waited); exit now waits out a shell's 100 ms grace (host_io.waitRetired) where it killed it at once, so a shell that saves on its hangup gets to, and one that ignores it is still killed and reaped before the window exits Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* fonts.zig's comments keep their whys and lose their history (max_fonts at ↵Gabriel Schneider12 days
| | | | | | | 512, the Zig 0.16 move, the flake a shared scratch path once caused), and the module doc names its readers: Output.zig's picker, exec.zig's Font, the windows' fallback faces Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: gripDecor draws a grip's mode bars from its first row without a loop ↵Gabriel Schneider12 days
| | | | | | | over the rows it skipped, Post's vignette ceiling is shadowCeiling's (the same sum), ShaderBuild drops expand and a Wake struct whose ctx was never set, and ShaderBuild's and Post's headers say an attached window runs the bundled passes alone (no SPIR-V travels the wire) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the test feed reads its ESC]777 events through one prefix and keeps one ↵Gabriel Schneider12 days
| | | | | | | cut short for the next read whatever its kind (a split view; one was handed to vaxis's parser before) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: PARDES_SDL_PRESENT, PARDES_SOFT_PRESENT and PARDES_TEST_FONT_SCALE go, ↵Gabriel Schneider12 days
| | | | | | | knobs no test and no doc names: the present mode is still the first of immediate, mailbox and vsync the window takes, and a soft present still comes of a transparent window or a refused claim Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the input's core and the frame's are never null (every Input is made ↵Gabriel Schneider12 days
| | | | | | | with one, both renderFrame callers pass one), so Input.core, renderFrame's, buildOverlay's and the pointer mapping's lose their optionals, and wheelAt its no-core branch Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: a pty slot never holds a closed fd (closePty empties the slot in every ↵Gabriel Schneider12 days
| | | | | | | path), so the fd guards on it, its kill_at, reap's pass over the ptys and shutdownPtys' kill of ptys stopPtys has already emptied go Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the page is its colour, a [3]u8, not a Ground whose clear was never ↵Gabriel Schneider12 days
| | | | | | | true (WindowOpacity is a uniform now), so the transparent clear colour and the clear_bg tracking in resolveCell and emitInstance go; the concealed-text test keeps its one real case Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: an instance's transition fields are written once: emitInstance no ↵Gabriel Schneider12 days
| | | | | | | longer spells out the defaults CellInstance already has, and setTransitionFields with no track leaves a new instance as it is instead of zeroing it again Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: dead declarations and one-line helpers go: setenv, Msg, MessageBatch, ↵Gabriel Schneider12 days
| | | | | | | the topbarPaneBorderPixels alias, blink_redraws (counted, never read), wakeSdl (sdlWake again), anchorInset, bodyLayerAt, addChecker, guiFontName, handleFinger's forward to handlePairFinger, and a test of std.AutoHashMap Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: a pointer event or the gamepad puts the pointer through one pointAt ↵Gabriel Schneider12 days
| | | | | | | (where it is, and the cell under it), and its moves are posted through pointerMouse rather than spelled out three times Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: mouseCell returns the cell, never null (a window point maps to the grid ↵Gabriel Schneider12 days
| | | | | | | since no post pass moves one), so its nine orelse branches go, and pointer_mapped, which then always equals pointer_present, with them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the capture and the soft present copy the frame down through one ↵Gabriel Schneider12 days
| | | | | | | downloadTarget, each still submitting and timing its own wait Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the cells' and the images' instance buffers grow by one growInstances, ↵Gabriel Schneider12 days
| | | | | | | the images' made on first need as the cells' are rather than at start, in place of ensureVbuf and ensureImageBuffers Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: one texture2d makes every 2D texture, the atlas, an image's, the scene, ↵Gabriel Schneider12 days
| | | | | | | the capture and the post chain's ping-pong and bloom ones, in place of six fills of the same create info Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: one makePipeline builds every pipeline, the cells', the decor's, the ↵Gabriel Schneider12 days
| | | | | | | overlay's, the images' and the post chain's, from its two shaders and its vertex input (none for the post chain's triangle), in place of four copies Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* the pinch and touch_scroll events go: the window and the web page sent them ↵Gabriel Schneider12 days
| | | | | | | and the core only kept them for two numbers on the Debug line; their wire tags (0x1b, 0x1c) now answer BadTag, and the NaN check they had moves onto pdf_scroll's distance Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the touch debug overlay goes (circles, trails, hex labels in their own ↵Gabriel Schneider12 days
| | | | | | | 3x5 font, the click flash, and the ink runs the labels drew in), the two-finger scroll and tap stay; the overlay draws the pet and the cursor's glide in one call, and renderFrame no longer takes the Debug flag only that overlay read Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the headless grid host goes (PARDES_TEST_GRID: runGrid, its host table, ↵Gabriel Schneider12 days
| | | | | | | its frame dump and its test), with --gui-grid in test/agent_session.py and its test, its only user, run by hand; the test feed now says only whether its input ended Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: what draws a frame takes it *const instead of @constCast-ing it, the ↵Gabriel Schneider12 days
| | | | | | | image placement helpers name SavedImagePlace instead of anytype, resumeWindows marks the live view's window once after its loop instead of on every pass, and gripButton and applyResize drop parameters they ignored Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: the tests' Guis come from one fixture, testGui(cell_w, cell_h, ↵Gabriel Schneider12 days
| | | | | | | tagline_width, tagline_height), every other field its default, in place of 33 setups written out field by field Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* host_io: the shells a dead session left are one Adoptions table (Adopt's ↵Gabriel Schneider12 days
| | | | | | | ask, adoptShell, a spawn's take, and the Adoption a terminal pane takes), where the tty and the window each kept the same three fields and the same adopt, adoptShell and spawn lookup Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* host_io: a Restore's new core is restoreCore's (the clients that replicate ↵Gabriel Schneider12 days
| | | | | | | the old one let go, the dump read and restored, its failure said once, the old core's pane and theme watches dropped), with both ponytail notes, where the tty and the window each wrote those steps out; each keeps its own ptys, pipes and views, and the tty's dump import goes with its one use Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* file_watch: every pane's watch is dropped by one call (unwatchAll), where ↵Gabriel Schneider12 days
| | | | | | | the tty's Restore, the window's Restore and a tty test each wrote the same eight-line loop over every pane Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* host_io: the image, PDF and syntax subsystems a session draws with start and ↵Gabriel Schneider12 days
| | | | | | | stop in one place (startWorkers, stopWorkers), where the tty's local session, the window's session and its test grid each started them and deferred their stop in eleven lines of their own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* tui: the tty's passes (the panel compositor, the glide's rows, chip shadows, ↵Gabriel Schneider12 days
| | | | | | | the thumb flash, the jump trail) draw on one panel_compositor.Frame, the canonical surface until a pass changes something and then the one copy the first such pass makes (Frame.own), where each pass made its own copy of the ~114 KB Surface and its cells, up to five a frame while motion ran; the glide's rows (glide.shifted, now panel_compositor.glideRows) move in place, walked from the side they move toward, and the three effects and their tests are the tty compositor's (panel_compositor.zig, as render-pipeline.md 9.2 has it); the compositor's tests compose through one helper and test "nothing drawn" as no copy made Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* colors: the sRGB-to-linear table is colors' (to_linear), and ↵Gabriel Schneider12 days
| | | | | | | relativeLuminance reads it where it took a pow per channel, so draw's own luminance and contrast go and its blend reads colors.to_linear; the tests, all 113 tty snapshots and the window's 17 golden frames (gui-golden, check) come out the same Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* body_layer: paintPointerSelection finds its pane's tag and body tops and its ↵Gabriel Schneider12 days
| | | | | | | rows' insets itself (the tag's text inset, the body's gutter), where its six callers each passed in the same four values Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* themes: seoul256's twelve backgrounds are one family, ↵Gabriel Schneider12 days
| | | | | | | src/themes/seoul256.zig (`dark(level)`, `light(level)`), where twelve files of a hundred lines each repeated it: one header names the source and how a background resolves, a value the levels share is set and cited once, and a level's own values are its row of dark_levels or light_levels with their citations and what pardes adjusted there; every one of the ring's 286 themes formats to the same bytes before and after (hashed, a one-value change seen to move its hash), and a test pins the twelve in their order after Catppuccin and before Zenbones Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* FrameStats: every core keeps 1024 frames (what the Debug box reads: the last ↵Gabriel Schneider12 days
| | | | | | | second's, the input latency over all of them, as before), and only a session with PARDES_FRAMES set the 16384 its dump writes, in a ring allocated at its first frame and let go by the dump: Pardes 3,052,152 to 1,700,480 bytes a core, the Debug binary's .data.rel.ro 7,944,088 to 6,141,976 (the core's default value is a constant there), and an idle detached Debug session's RSS 37.3 to 29.4 MB (three runs each, VmRSS and VmHWM alike); a test runs the long ring past the short one's length Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* FrameStats: the timedemos leave the binary: PARDES_FRAMES_DEMO names a text ↵Gabriel Schneider12 days
| | | | | | | script (parseScript: `<ms> [<n>x<every>] <action>` a line, a wheel, touch, key, keys, phase, click, rail_wheel, paste, exec or end), the fifteen compiled ones are tools/demos/*.txt, each read back step for step identical to its builder before the builders went (11,401 steps the binary no longer carries: the Debug binary's .data.rel.ro 8,566,256 to 7,944,088 bytes, an idle detached session's RSS 38.3 to 37.3 MB), and the keystroke one is test/perf.zig's own data, parsed for its tty and written beside its files for its window; a window whose script does not read does not start; a test reads every script in tools/demos Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* vaxis_input: the core's cell styles as vaxis draws them (style, color, the ↵Gabriel Schneider12 days
| | | | | | | underline mapped by its name) and a pasted key's text (pasteBytes) are vaxis_input's, the tui's copies gone; the gui's test-mode stdin takes a paste's keys through the same pasteBytes, which also knows the keypad's Enter (its own copy did not) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* tui: a Screen makes, drops and destroys its own heap copy (Screen.create, ↵Gabriel Schneider12 days
| | | | | | | drop, destroy) where attachTerminal and resumeTerminals each built one inline and dropScreen repeated freeScreen; a Restore closes each pty through closePty instead of a copy of it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* tui: helpers with one caller are their caller's lines (copyToClipboard, ↵Gabriel Schneider12 days
| | | | | | | requestClipboard, paintCursor, updateCoreTerminalSize), and kittyPlacement returns at once in a build without PDFs instead of wrapping its whole body in the comptime check Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* tagline: a tag and a header take the keyboard through one takeKeyboard (the ↵Gabriel Schneider12 days
| | | | | | | cursor pulled back inside the text, nothing selected or pending, normal mode) where enterTag and enterHeader each ended in their own copy of it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* Presentation: a cell is in a box by one test, animation.Box.contains, now ↵Gabriel Schneider12 days
| | | | | | | the centre test its comment always said (its one other caller passes whole-cell pane boxes, where centre and corner agree), so boxContainsCell goes; the aliases used once are spelled where they are used Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pardes: TAG_GAP goes, a knob with one value (0): TAG_TEXT_INSET is the ↵Gabriel Schneider12 days
| | | | | | | gutter, the tag's zero-width gap fill and its two offsets in draw and mouse go, and the test blocks behind `TAG_GAP > 0` that could never run Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* draw: parameters nobody reads go (renderBody's prebuilt text, null at every ↵Gabriel Schneider12 days
| | | | | | | call; paintPaneTag's capacity; renderHeaderLayer's and paintHeaders' arena), a pane tag's look-hover preview is painted once where it was painted twice over the same cells, the column grip's ink is inkOn's instead of a copy of its sum, boxBorder, inactiveDim, paintPaneTag and paintHeaders are draw's own, and animation's two switches with same-result arms keep one arm each Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* panel_compositor: a slide and a zoom draw through transformClipped with the ↵Gabriel Schneider12 days
| | | | | | | screen for their clip, so the near-twin transform goes (it sampled track.to, which is contentBox for every track but a closing one, and only a vertical one closes); the tests fill their cells with one testGlyphs call where each had its own five-line loop Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge