summaryrefslogtreecommitdiff
path: root/docs/shared-libs.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 06:24:42 -0300
committerGabriel Schneider <[email protected]>2026-11-06 11:19:44 -0300
commit239e8186111c215bf3bca842216205056e4b00e1 (patch)
tree1b1c49f0f29a917cc7eebe4f837ba576e0fcc333 /docs/shared-libs.md
parentf48973ef58ca64383517a2a2190809f9c8735dbc (diff)
downloadpardes-239e8186111c215bf3bca842216205056e4b00e1.tar.gz
pardes-239e8186111c215bf3bca842216205056e4b00e1.zip
kinds #17, the docs: reference.typ's Addons section says PDFs are an addon (pdf.so, its jobs and lanes, ABI 2.1's additions), a kind's tag prefix, Look and search in a kind's pane, a dump's record; install.typ the second library; shared-libs.md what left the binaries; building.typ and the cheatsheet; the changelog one line
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'docs/shared-libs.md')
-rw-r--r--docs/shared-libs.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/shared-libs.md b/docs/shared-libs.md
index 70e585b3..52457bf1 100644
--- a/docs/shared-libs.md
+++ b/docs/shared-libs.md
@@ -21,6 +21,20 @@ a second FreeType (tools/shared_libs_check.zig). It counts static functions
too, and several functions per family, because a release build inlines some
of them.
+## PDF panes became an addon (2026-11-06)
+
+`lib/pardes/addons/pdf.so` (addons/pdf/pdf.c and pdf_bridge.c) holds MuPDF,
+built against the build's FreeType and zlib and linked into the library
+with them, all three compiled position-independent; it exports
+`pardes_addon` alone (a version script), so its FreeType and zlib never
+meet the window's. The binaries hold no MuPDF: the tty none of FreeType or
+zlib either, the window the one FreeType its glyph atlas uses. MuPDF and
+the bridge allocate through pardes's heap for kinds (`pa_api.heap` over the
+`addon` region, memory.zig), never their own malloc, so the Debug leak check
+sees them. A window that loads pdf.so holds a second FreeType and zlib
+beside its own: a library apart, as image.so's decoders are. The rows below
+are the binaries before both addons.
+
## Image panes became an addon (2026-11-06)
`lib/pardes/addons/image.so` (addons/image/image.c) decodes image panes with