summaryrefslogtreecommitdiff
path: root/docs/lsp-evaluation.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 22:03:14 -0300
committerGabriel Schneider <[email protected]>2026-11-18 22:23:51 -0300
commit99f5b10eccd95aa0066ea6fe6bb75f367ab56a47 (patch)
tree813596ea84318a7bae4fd7416ba463de8e3b7107 /docs/lsp-evaluation.md
parent92d553123673376adf6126ab90d49a22c5b833d2 (diff)
downloadpardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.tar.gz
pardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.zip
core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/lsp-evaluation.md')
-rw-r--r--docs/lsp-evaluation.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/lsp-evaluation.md b/docs/lsp-evaluation.md
index 8f7c0266..b7916ef6 100644
--- a/docs/lsp-evaluation.md
+++ b/docs/lsp-evaluation.md
@@ -1,6 +1,6 @@
# Three language backends, measured
-Same core, same seam (`src/lsp/lsp.zig`), same harness (`zig build lspbench`)
+Same core, same seam (`core/lsp/lsp.zig`), same harness (`zig build lspbench`)
over the same corpus — 17 probes at the time, 22 today. Three jj workspaces,
three independent implementations, one function each. C landed first and
went in 0.6; the tree has B's kind of client alone, for every language. See
@@ -11,7 +11,7 @@ went in 0.6; the tree has B's kind of client alone, for every language. See
> because renumbering a comparison nobody can re-run turns a record into a
> guess. What has moved since, re-checked 2026-08-26: `lspbench` now has **22**
> probes rather than 17 (the dot-completion work added five),
-> `src/lsp/lsp_zls.zig` had grown from 540 lines to **1 432** (1 522 when it
+> `core/lsp/lsp_zls.zig` had grown from 540 lines to **1 432** (1 522 when it
> went, 2026-09-29),
> `test/snapshots/` holds **95** scripts rather than 56 (`.snap` + `.golden`
> pairs), and the differential suites are `hxdiff` **481** (`cases.jsonl`) and
@@ -101,9 +101,9 @@ real binary through the helix keymap, and pass `hxdiff` (360) and `hxparity`
## Decision
**One protocol client, for every language, Zig's included.** C landed first
-(`src/lsp/lsp_zls.zig`, ZLS a fetched dependency pinned in `build.zig.zon`).
+(`core/lsp/lsp_zls.zig`, ZLS a fetched dependency pinned in `build.zig.zon`).
The multi-language argument below won on 2026-09-01, when a protocol client,
-`src/lsp/lsp_client.zig`, arrived beside it, and on 2026-09-29 (change
+`dev/lsp/lsp_client.zig`, arrived beside it, and on 2026-09-29 (change
`kvlpprms`, released in 0.6) the in-process backend went: Zig files ask a
`zls` found on `PATH` as every other language asks its server, the ZLS
source and its build wiring left the tree, and the binaries shrank (ReleaseFast
@@ -131,7 +131,7 @@ A (`nvqpknzm`), B (`stuurqqt`) and C's last state (the parent of
**2026-11-05: an index first, the server second.** The words ask the
nearest `index.scip` above the file (SCIP, scip-code.org: a protobuf file
an indexer writes at the project's root) before any server:
-`src/lsp/Scip.zig` reads it, about 350 lines with its tests, keeping each
+`dev/lsp/Scip.zig` reads it, about 350 lines with its tests, keeping each
document's occurrences and each symbol's information in a fixed region
(an index of 512 MiB at most, its tables 512 MiB, two indexes at once). Def,
type definition, Refs, SelectRefs, `gi`, Subtypes, Supertypes, Symbols,
@@ -158,7 +158,7 @@ second process, and its weakest number is a cache that does not exist rather
than a limit that cannot be lifted.
The one thing that should override that: **pardes ships tree-sitter grammars for
-28 languages** — `src/grammar_manifest.zig`'s `all` has 29 entries, but
+28 languages** — `core/grammar_manifest.zig`'s `all` has 29 entries, but
`markdown_inline` carries `.exts = &.{}` on purpose: no filename ever selects
it, and the block grammar re-enters it by name for its `inline` nodes. So 29
grammars, 28 buffers a language server could ever be asked about. C is