Same facts in fewer words across README, CLAUDE.md, CONTRIBUTING, DOCUMENTATION, FAQ, DEMO and NOTICE, and the claims that had drifted from the code brought back in line: - CI runs eleven console tests from tools/ci/tests.txt, plus the scripted uitest, skiptest and damagetest; the Tests table lists the last two. - Linux ARMv7 and RISC-V build on every pull request, emulated and allowed to fail, not only on master. - CONTRIBUTING runs the tests from tools/ci/tests.txt instead of an old list. - The showcase is about 4,600 lines and notepad about 410. - The shared library also ships as -macos-universal. - SDL's GPU API is built only with REAKTOR_SHADERS. - The architecture list names core/sdl and damage drawing. - CLAUDE.md: --shot also hides partial redraws; damagetest catches them. - PLAN.md is marked finished, with what has changed since. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 KiB
Plan: libreaktor as a shared library
Finished. Every phase below has shipped; this is the record of how, and it no longer describes the code. Since it was written the soname became
libreaktor.so.1(runtime packagelibreaktor1, ABI tablestools/abi/libreaktor.so.1-*.abi), the packages becamelibreaktor(static) andlibreaktor-shared(the split's development package), and the release archiveslibreaktor-*andlibreaktor-shared-*. The current state is in DOCUMENTATION.md, the measurements in PERFORMANCE.md.
Decision (2026-11-02): go. Three apps together save 14.8%, under the 20% threshold, but four save 20.4% and five 24.2% (Phase 0d), and Reaktor apps are expected to run four or more at a time. Phase 1 starts. Static stays the default.
Where things stand
- libreaktor is static only. CMake merges its parts into
libreaktor.a(CMakeLists.txt, thelibreaktortarget), andtools/libreaktor-pkg.shpacks it with the headers as a .deb, .rpm, BSD package or .tar.gz.tools/ci/check-libreaktor.shlinksexamples/consumeragainst it. - No shared-library code exists yet. No
.so, no soname, no shared SDL. - Static stays the default whatever this plan decides. A shared library is offered beside it, not instead of it.
Why consider it at all
An app is a few MB (stripped Linux showcase: 3.97 MB; 4.3 MB private and 11.4 MB resident at run time). On Windows and macOS each app ships alone, so sharing buys little there. The gain is in Linux and BSD packages, where several Reaktor apps could install one copy of the library and share its code pages in memory.
Two copies of the same app already share their code, static or not. A shared library only saves when different apps run together, and at most it saves libreaktor's resident code per extra app. Heap, glyph atlases and stylesheets stay private either way. So the saving may be small, and that is why Phase 0 measures it before anything is built.
Decisions already made (2026-10-24)
- SDL: our own build, shared, under its own name (option B), for example
libreaktor-sdl3.so. Built as now: GL out, dynamic API off. Not the distro's SDL, because that:- can load Mesa and LLVM again (the 123.6 MB Linux start in
docs/PERFORMANCE.md); - sets a minimum SDL version on every distro;
- can draw different pixels per distro;
- brings
SDL3_DYNAMIC_APIback.
- can load Mesa and LLVM again (the 123.6 MB Linux start in
- Nuklear's struct layouts are part of the ABI. Apps reach them through
the
reaktor/nuklear.hmacros and by readingctx->style,ctx->input,ctx->currentandctx->last_widget_state. Hiding all of that would be a large job for no real gain, since Nuklear is a pinned submodule whose layout changes only when we bump it. Instead, a CI table ofsizeofandoffsetofvalues forces a new soname whenever a layout changes. - Style access is settled. Apps keep
ctx->style. Three public calls cover the most common reads for clarity:reaktor_item_spacing,reaktor_text_color,reaktor_current_font. Done and merged (5a8b7f3). - Platforms, in order: Linux and the BSDs first. Windows was dropped (2026-11-03; see Later). macOS (same Team ID, or Homebrew only, since hardened-runtime library validation refuses other developers' dylibs) is in scope at lower priority.
Phase 0: measure (go / no-go)
Goal: know what sharing would save before writing any of it. Needs no new library code.
- Build
showcase,notepadandsimplestatically on Linux, as now. - Run the three together. For each process record, from
/proc/<pid>/smaps_rollupand/proc/<pid>/smaps:- total
Pss; Shared_CleanandPrivate_Cleanof the app's own binary mapping, which is roughly libreaktor's resident code.
- total
- Estimate the shared case: summed PSS minus the libreaktor code that the second and third app would no longer carry.
- Ten launches, medians, as elsewhere in
docs/PERFORMANCE.md. The numbers go there, with the machine named. - Put it in a script,
tools/ci/pss.sh, run in the Debian container thatlinux.ymlalready uses, so it can be repeated.
Go / no-go threshold (agreed 2026-10-30): go if three different apps running together save at least 20% of their summed PSS. Disk space does not count toward it; smaller packages would be a separate argument.
Phase 0 results (CI, 2026-10-30)
What was measured. showcase, notepad and simple run together, idle,
for 10 seconds; ten launches, medians. For each app:
- PSS from
/proc/<pid>/smaps_rollup: memory it has to itself in full, plus its share of pages it shares with other processes. - Library pages: the resident pages of its own binary that hold libreaktor or SDL. Today each app links them statically, so each carries a copy.
A shared libreaktor.so would hold one copy for all three. The saving is the
three apps' library pages minus the largest app's, as a share of their summed
PSS.
Machine. GitHub ubuntu-24.04 runner, x86_64, Debian 12 container, GCC
Release, Xvfb, no GPU.
Two estimates.
-
tools/ci/pss.shcounts every clean page of each binary as library, so it overcounts by the apps' own code: 21.3%.PSS Clean pages of its binary showcase9,180 KB 2,796 KB notepad5,957 KB 2,208 KB simple5,251 KB 2,164 KB Summed PSS 20,433 KB; sharing saves 4,366 KB.
-
tools/ci/pss-pages.shlinks the three with linker maps and sorts each resident, file-backed page of a binary (from/proc/<pid>/pagemap) by the object it came from. Only a page holding nothing but libreaktor or SDL counts: 20.2%.PSS lib app mixed other showcase9,105 KB 2,386 KB 170 KB 32 KB 144 KB notepad6,028 KB 2,090 KB 16 KB 24 KB 132 KB simple5,217 KB 2,018 KB 0 KB 28 KB 128 KB Summed PSS 20,423 KB; sharing saves 4,120 KB.
Still an upper bound. It assumes the smaller apps use no library page the showcase does not, and leaves out what the dynamic linker costs each app at start (relocations, private GOT pages). Both pull the real figure down, most likely under 20%.
Reading. About 4 MB saved across three apps, on the line. Recommendation so far: no-go, pending a run on a real Linux desktop.
Phase 0 results (Linux desktop, 2026-11-02)
Machine. Linux Mint 22.3, Cinnamon on X11, Mesa llvmpipe (no GPU), a KVM guest on an AMD Ryzen 5 4600H with 4 cores, kernel 7.0, GCC Release. Same three apps, ten launches, medians.
-
pss.sh: 19.0%. Summed PSS 24,157 KB; sharing saves 4,602 KB.PSS Clean pages of its binary showcase14,224 KB 2,898 KB notepad5,386 KB 2,322 KB simple4,553 KB 2,262 KB -
pss-pages.sh: 17.3%. Summed PSS 24,200 KB; sharing saves 4,176 KB.PSS lib app mixed other showcase14,282 KB 2,606 KB 232 KB 32 KB 148 KB notepad5,382 KB 2,124 KB 80 KB 24 KB 136 KB simple4,516 KB 2,064 KB 36 KB 24 KB 132 KB
Reading. As expected, the desktop stacks grow the showcase's PSS by about 5 MB, while the library pages stay at about 4 MB. Both estimates are upper bounds, and both are under 20%. No-go, unless a run on real GPU hardware differs.
Phase 0b: a real shared build, measured (2026-11-02)
The estimates above are upper bounds, so a working prototype was built to
measure the real difference. -DREAKTOR_SHARED_PROTO=ON (with
-DCMAKE_POSITION_INDEPENDENT_CODE=ON) links the runtime, the core, SDL,
FreeType, plutosvg, plutovg and onlay into libreaktor-proto.so; each sample
keeps its modules (or their _none twins) and exports their symbols back to
the library. No soname, no hidden symbols: everything is exported, which is
the worst case for relocations and calls.
Same desktop as above; ten launches, medians, static and shared measured in the same session.
Memory (pss.sh, the three apps together, idle):
| static | shared | saved | |
|---|---|---|---|
showcase |
14,261 KB | 13,007 KB | 1,254 KB |
notepad |
5,370 KB | 4,239 KB | 1,131 KB |
simple |
4,501 KB | 3,453 KB | 1,048 KB |
| summed | 24,152 KB | 20,698 KB | 3,454 KB (14.3%) |
The library's pages that each app dirties (GOT, relocated data) are about
124 KB per app in simple.
Disk: 11.4 MB for the three static binaries, against 6.2 MB shared
(libreaktor-proto.so 5.0 MB, unstripped, plus 1.16 MB of apps).
Start: the dynamic loader takes 0.1 to 0.2 ms for either build;
showcase goes from 19,525 to 21,709 relocations. CPU in the first 3
seconds: simple 40 ms both, showcase 220 ms static and 230 ms shared.
Frame cost (bench --no-vsync, five runs):
| build | render | whole frame | |
|---|---|---|---|
| static | 0.04 ms | 0.05 ms | 1.46 to 1.63 ms |
| shared | 0.05 ms | 0.10 ms | 1.48 to 1.53 ms |
shared, -fno-semantic-interposition |
0.04 ms | 0.08 ms | 1.40 to 1.61 ms |
shared, that and -Wl,-Bsymbolic-functions |
0.04 ms | 0.06 ms | as static |
Present (llvmpipe) dominates the frame, so fps does not change.
Why the shared build was slower (perf, both builds):
- Frame. The extra render time is in
nk_sdl_render_ex, Nuklear's SDL drawing loop. With every symbol exported and interposable, GCC stops inlining and specialising small functions inside SDL and Nuklear:SDL_floorf,SDL_roundf,SDL_memcmp,nk_buffer_memory,nk_vec2become real calls, and the.constprop/.israclones go. Calls between files then go through the PLT.-fno-semantic-interpositionrestores the inlining (build back to static);-Bsymbolic-functionsbinds the calls inside the library directly (render back to static). Hidden symbols (Phase 1, item 2) do both, so Phase 1 needs no extra flags. - Start.
showcaseuses about 10 ms more CPU in its first 3 s (perf stat -r 10: 222 against 232 ms), split about evenly between user and kernel time, with the same page faults (4,170 against 4,199). Lazy binding in the dynamic loader (_dl_fixup,_dl_lookup_symbol_x) is about 0.3 ms of it; the rest is the slower code above running during start (font rasterising, the first frames) and the kernel mapping one more library. With both flags the difference falls inside run-to-run noise (225 against 234 ms in one pass).
Reading. The real saving is 14.3%, under the 20% threshold and under the 17.3% estimate. As built first it cost about 10 ms of start CPU in the showcase and twice Reaktor's render time; with hidden or directly bound symbols both costs go away. The disk saving (46%) is the stronger argument, but it was agreed not to count toward the threshold.
Phase 0c: the same, with hidden symbols (2026-11-02)
-DREAKTOR_SHARED_PROTO_HIDE=ON adds a version script that exports only
reaktor_*, nk_*, nka_*, SDL_* and the five FreeType and plutovg
symbols the modules call, and compiles the library's parts with
-fno-semantic-interposition. Everything else (X11 and Wayland glue,
FreeType's and plutovg's insides) binds inside the library. Exports fall from
4,653 to 3,365; SDL's own API is 1,961 of them, as it would be as
libreaktor-sdl3.so. Every sample starts with LD_BIND_NOW=1, so nothing
it needs is hidden.
| static | shared | shared, hidden | |
|---|---|---|---|
| summed PSS, three apps | 24,152 KB | 20,698 KB | 20,617 KB |
| saving against static | 14.3% | 14.6% | |
library pages each app dirties (simple) |
124 KB | 116 KB | |
showcase relocations |
19,525 | 21,709 | 20,559 |
bench build / render |
0.04 / 0.06 ms | 0.05 / 0.10 ms | 0.04 / 0.08 ms |
showcase CPU, first 3 s |
216 to 222 ms | 225 to 232 ms | 224 to 230 ms |
Reading. Hiding symbols does not move memory: 81 KB of 20.7 MB. The
saving stays at about 14.5%. It does recover build time, and half the render
time. The rest of render is the calls into SDL, which go through the PLT
because SDL's API stays exported. With SDL as its own library, as decided,
that cost stays. Binding SDL inside libreaktor (-Bsymbolic-functions,
Phase 0b) removes it, but then an app cannot have SDL from anywhere else.
Seen and not explained: in three of six early runs of pss.sh on this
build, notepad had exited by the time it was measured, with nothing in its
log. A signal, a closed window, Ctrl+Q and the menu's Quit all end it exactly
so: status 0, empty log; a crash would have left a core dump and a kernel
line, and there was neither. Since then the runtime logs one quitting: line
with the reason, and pss.sh prints how each app ended. A soak of 15 rounds
of ten launches for the hidden build and 15 for the static one, alternating,
ran clean (300 launches each of the three apps). Not reproduced; most likely
something on the live desktop asked notepad to quit.
Phase 0d: more apps at once (2026-11-02)
The saving grows with each extra app, since each one stops carrying its own
copy of the library. pss.sh -a takes the list of apps. The fourth and fifth
apps are copies of notepad and simple under new names (notepad2,
simple2): a copy is another file, so statically it shares nothing with the
original, as a different app would not. Hidden-symbol shared build against
static, same desktop, ten launches, medians.
| apps together | static | shared | saved | saving |
|---|---|---|---|---|
3 (showcase, notepad, simple) |
24,200 KB | 20,630 KB | 3,570 KB | 14.8% |
4 (+ notepad2) |
29,802 KB | 23,726 KB | 6,076 KB | 20.4% |
5 (+ simple2) |
34,437 KB | 26,087 KB | 8,350 KB | 24.2% |
Each extra app saves about 2.3 to 2.5 MB: its own library pages, and a little of everyone else's PSS as the shared pages split one more way.
Reading. With four different Reaktor apps running together, sharing crosses the 20% threshold; with five it saves about a quarter. With three it does not. Real different apps carry a little more code of their own than these copies, which pulls the figures down slightly. Whether to go now turns on how many Reaktor apps a user would really run at once.
Running Phase 0 on a Linux desktop
Needs GCC with GNU ld from binutils 2.38 or later (-Map=DIR/ writes one map
per program; not lld or gold), CMake, Ninja, readelf, GNU dd and od, a
kernel with smaps_rollup (4.14+). No root needed: an unprivileged
pagemap read still has the present and file-page bits.
From the checkout, on branch shared-phase0:
git submodule update --init --recursive
./build.sh # build/showcase, build/notepad, build/simple
sh tools/ci/pss.sh build # estimate 1, on the desktop's own display
sh tools/ci/pss-pages.sh # estimate 2; builds build-map with maps first
Without -x both run on the current DISPLAY (or Wayland), which is the
point of a desktop run. -x Xvfb starts a virtual display instead, as CI does;
-n RUNS changes the ten launches; -w WRAP runs each app under a wrapper.
Close any running Reaktor app first: the showcase is single instance, so a
running copy would take its launch, and another app's pages would skew PSS.
Output lands in smoke/pss/ and smoke/pss-pages/: runs.txt holds each
launch's raw numbers (kB), saving.txt the per-launch saving, and each app's
.log its output. The last lines printed are the medians and the saving
against 20%.
Worth noting with the result: distribution, desktop (X11 or Wayland), GPU or not, and whether the numbers differ from CI's. A desktop run loads the real input-method, accessibility and tray stacks, so PSS grows and the percentage is likely to fall.
Phase 1: the shared build (started 2026-11-02)
Status. Items 1 to 4 are in: -DREAKTOR_SHARED=ON builds
lib/libreaktor.so.0 (2.0 MB) and libreaktor-sdl3.so.0 (2.9 MB, SDL 3.4.18
with core/sdl/no_dynapi.h as for the static build) beside libreaktor.a,
and links the samples and tests to them. Exports come from a version script,
tools/reaktor.map, not an export macro: 1,185 symbols, all reaktor_, nk_,
nka_ and the five FreeType and plutovg calls the modules make. The modules
reach some reaktor_ functions that are not in include/reaktor/, so for now
the reaktor_* glob exports those too; Phase 2's symbol check will draw the
line. The measurement prototype (REAKTOR_SHARED_PROTO, commit 0948611) is
gone.
Measured as in Phase 0d: three apps 24,200 KB static against 20,659 KB
shared (14.6%), four 29,802 KB against 23,810 KB (20.1%). bench build and
render 0.05 and 0.08 ms; showcase CPU in its first 3 s 232 ms, static 231 ms.
All unit tests pass in both builds.
Item 5 is in too. With REAKTOR_SHARED, cmake --install adds to the
static files libreaktor.so*, libreaktor-sdl3.so* and
libreaktor-modules.a, the modules (and mojibake and kb_text_shape) for apps
built outside the tree. Such an app links libreaktor.so, then the modules
archive, which fills in what the library calls, then libreaktor-sdl3.so,
and exports the modules back with -Wl,--export-dynamic. That is what
reaktor-shared.pc and the CMake target reaktor::shared give it; in CMake,
reaktor::reaktor stays the static one. Since the .a and the .so share a
lib/, reaktor.pc then names -l:libreaktor.a, so it stays static.
Checked by hand: examples/consumer linked statically, linked with
-DCONSUMER_SHARED=ON, and simple.c built with pkg-config reaktor and
reaktor-shared all draw the same pixels and the same accessibility tree as
the tree's own simple. Phase 2, item 3 puts that into check-libreaktor.sh.
- A
REAKTOR_SHAREDoption, defaultOFF, buildinglibreaktor.sowith a soname (libreaktor.so.0) beside the static archive. - Only the
include/reaktor/API exported; everything else hidden (-fvisibility=hiddenand an export macro on the public declarations). - SDL built as
libreaktor-sdl3.so, whichlibreaktor.solinks. - Optional modules keep working: an app still links a module or its
_nonetwin, so each module's code stays out of the shared core. reaktor.pcandreaktorConfig.cmakelearn the shared variant.
Phase 2: keeping the ABI honest (in, 2026-11-02)
Status. All three items are in, and CI's x86-64 job runs them in a step
of its own (Shared libreaktor) on a -DREAKTOR_SHARED=ON build:
tools/ci/check-abi.shcompilestools/abi/abi.c(justreaktor.h) with debug types and has gdb print, withptype /o, everyreaktor_struct, union and enum ininclude/reaktor/,nk_windowandnk_input, every Nuklear typereaktor/nuklear.hrenames, and the value of everyNK_constant it renames. Nothing is copied out of Nuklear by hand. The output must matchtools/abi/libreaktor.so.0-ARCH.abi, ARCH being the compiler's target (cc -dumpmachine); otherwise the soname must go up and the table be rewritten with-u. Adding one field toreaktor_shortcutfails it. Only x86_64 has a table so far (12,266 lines, made here). Every native Linux job (x86-64, x86, arm64) runs the check in a step of its own and uploads what it wrote tosmoke/abi/; a missing table is a warning, exit status 3, so the x86 and arm64 tables, and the x86_64 one if CI's older gdb lays it out differently, come from CI's artifact.tools/ci/check-exports.shholds the built library totools/reaktor.map, which lists Reaktor's names instead ofreaktor_*. Two symbol versions:LIBREAKTOR_0holds the 149 public functions the library defines and Nuklear's and nukanim's APIs;LIBREAKTOR_PRIVATE_0the 34 non-public calls the modules make and five FreeType and plutovg ones. It fails on a name exported but not listed, listed but not exported, public but in neither the library nor the modules, underLIBREAKTOR_0without being public, private and no longer called by the modules, private and called by an app's own code (samples and tests linked to the library), or under the wrong version.tests/launchtest.c, which reaches pastinclude/reaktor/, links the archives in a shared build (reaktor_add_app(... STATIC ...)), so nothing is exported for a test. Exports fell from 1,185 to 1,030.check-libreaktor.shlinksexamples/consumeragainstlibreaktor.sotoo, where the install has it, checks the program needs it, and requires the same pixels and accessibility tree as the builtsimple.
- The CI
sizeof/offsetoftable for the Nuklear structs apps can see, and for Reaktor's own public structs. A change fails CI until the soname is bumped and the table regenerated. - A check that the exported symbol list matches
include/reaktor/, so nothing internal leaks out and nothing public is missing. check-libreaktor.shgains a shared run:examples/consumerlinked against the.somust draw the same pixels as the staticsimple.
Phase 3: packages (in, 2026-11-02)
Status. tools/libreaktor-pkg.sh -s builds with REAKTOR_SHARED (and
-b takes a shared build as it is). When the install holds libreaktor.so,
the package splits in three: libreaktor-sdl3-0 (libreaktor-sdl3.so.0*
and SDL's license), libreaktor0 (libreaktor.so.0*, the other licenses,
NOTICE.md; needs the first) and the development package under its old
name (libreaktor-dev, libreaktor-devel, libreaktor on the BSDs) with
the headers, both archives, the .so links, reaktor.pc,
reaktor-shared.pc and the CMake files; it needs both. Each file is in one
package. A static build packs one package, renamed libreaktor-static in
every format (2026-11-03), so a release can carry both; it and the split's
development package install the same headers and conflict with each other
in every format. /opt/reaktor/lib is
not on the loader's path, so reaktor-shared.pc and reaktor::shared add
an rpath to the install's lib/.
Checked here: the three .debs, their dependencies and files, and
examples/consumer -DCONSUMER_SHARED=ON built against them, unpacked, which
draws the same as the built simple; a static build still packs one
libreaktor-dev; -f tar writes three tarballs. CI now packs the shared
build as .debs on x86-64, installs them, builds the shared consumer,
removes libreaktor-dev and runs it on the two runtime packages alone; the
rpm job does the same with -s. The rpm, FreeBSD, OpenBSD and NetBSD
branches are written but have not run: rpmbuild and the BSD tools are not on
this machine. bsd.yml packs the shared build on each BSD and runs the shared
consumer on the runtime packages alone, in a step that warns rather than
fails until it has passed there.
tools/libreaktor-pkg.shpacks the shared library and SDL as their own packages (libreaktor0,libreaktor-sdl3-0or the distro's spelling) and the headers as a-devpackage.- The samples get a shared-linked variant to prove a package installs and runs as intended.
- BSD packages follow the same split.
In releases (2026-11-03)
CI builds the shared library next to the static one, and a release carries
both. Every Linux job (x86-64, x86, arm64, and armhf and riscv64 cross-built)
builds -DREAKTOR_SHARED=ON, checks it with check-libreaktor.sh (natively,
or on the emulated machine after the builder installs it) and uploads
libreaktor-VERSION-linux-ARCH.tar.gz and the three split .debs;
the rpm job adds the split rpms; the x86-64 BSD jobs add
libreaktor-VERSION-OS-x86-64.tar.gz. The static tarballs beside them, on
Linux and the BSDs, are now libreaktor-static-VERSION-OS-ARCH.tar.gz,
matching the libreaktor-static package; Windows, macOS and the web, which
have only the static library, are named libreaktor-static- too. Installs
that ship (check-libreaktor.sh, libreaktor-pkg.sh, CI's own) pass
--strip, which strips the two shared libraries and leaves the archives:
libreaktor.so.0 2.04 to 1.87 MB, libreaktor-sdl3.so.0 2.92 to 2.66 MB,
exports unchanged. All of them are package-*
artifacts, so release.yml publishes them with the rest, and its notes say
how to use them. Not covered: the BSDs' arm64 (cross-built in bsd-arm64),
Windows, macOS and the web.
Later, lower priority
-
Windows: an MSIX framework package carryingDropped (2026-11-03): each Windows app ships alone, so sharing buys little, and a framework package serves only MSIX-packaged apps while needing a signing certificate, an export macro on every public declaration and the DLL C runtime. Windows stays static.reaktor.dlland SDL, which packaged apps declare as a dependency. -
macOS: a framework signed with the app's Team ID, or a Homebrew formula, since apps from other developers cannot load it under the hardened runtime. Homebrew is ruled out (2026-11-03: no access), which leaves only the framework, shared by apps under one Team ID. Kept in scope (2026-11-03). It saves memory only when several of those apps run at once and the framework is installed once, in
/Library/Frameworks, not inside each.app. Still open: an Apple Developer ID to sign and notarize it, and a universal binary or one per architecture. It cannot be built or checked on the Linux machine this plan was worked on;macos.ymlwould be its check.Written, not yet run (2026-11-03).
-DREAKTOR_SHARED=ONon macOS buildsFrameworks/Reaktor.framework(Versions/A, install name@rpath/Reaktor.framework/..., identifierio.github.alpaq92.reaktor) from the same parts plus SDL, linked in with-force_load, so there is nolibreaktor-sdl3: no system SDL stands to be confused with ours. ld64 has no version script, so CMake turnstools/reaktor.mapinto an exported symbol list (190 names, checked here withcmake -P); the framework binds its calls into the modules at load (-undefined dynamic_lookup) and apps link with-export_dynamic, which also keeps those functions through-dead_strip.reaktor::sharedlinks the framework andlibreaktor-modules.a, with an rpath to the install and to/Library/Frameworks.macos.ymlbuilds it on both runners, runscheck-libreaktor.shon it and uploadslibreaktor-VERSION-macos-ARCH.zip. Per architecture, signed ad hoc, as today.Universal too (2026-11-03). A third job in
macos.ymltakes the two per-architecture zips, joins every Mach-O file and archive in them withlipo(the framework,libreaktor-modules.a,libreaktor.a), requires every other file to be the same in both, signs the framework again ad hoc, builds the shared consumer forarm64;x86_64against it, runs it, and uploadslibreaktor-VERSION-macos-universal.zip. If CMake writes a path that differs between the two runners into the config or.pcfiles, that check fails and the file needs one form for both.No Developer ID (2026-11-03), and none soon. So the framework stays signed ad hoc and is not notarized, like the rest of the macOS release. Without a Team ID, "apps under one Team ID" means apps that do not turn on the hardened runtime: its library validation is what refuses a framework from another signer, and an ad hoc one has no signer to match. Reaktor's own apps do not turn it on. A framework downloaded from the release carries the quarantine flag, so the person installing it clears that once (
xattr -dr com.apple.quarantine) before apps can load it.
Open questions
Go or no-go.Go (2026-11-02), on four or more apps. The threshold is 20% (agreed 2026-10-30). CI says 20.2% at most, and a Linux desktop says 17.3% (2026-11-02). That points to no-go; a run on a desktop with a real GPU would confirm it. A real shared build (Phase 0b) saves 14.3%, and 14.6% with hidden symbols (Phase 0c), with three apps. Four apps save 20.4%, five 24.2% (Phase 0d).