From 239e8186111c215bf3bca842216205056e4b00e1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 06:24:42 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/shared-libs.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs/shared-libs.md') 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 -- cgit v1.3