diff options
Diffstat (limited to 'docs/lsp-evaluation.md')
| -rw-r--r-- | docs/lsp-evaluation.md | 12 |
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 |
