canvas TextFormat wrote through buffers[next] before rotating: once a
frame formatted more than sixteen strings the vsnprintf destination ran
past the array and trapped in wasm, which is why the 03_theme capture
died with a memory access out of bounds inside vsnprintf at an offset
that moved with the format string. Compute the slot once, like the dom
and termi backends already do, and guard a NULL format the same way.
The 03_theme web Canvas gap entry is gone: the capture renders 446
colors of the dark theme after the fix. The widget_catalog gap reason
now records what is actually missing (full-array slice lowering plus
the TextLines, SelectableText, and ColorPickerProps widgets) instead of
the generic prop-shapes wording. The remaining known gaps are the five
scene-only sources without generated-C app-host routes, widget_catalog,
and the interaction-only drag_drop fixture, all documented accurately.
The visual matrices exposed three real defects after the emcc builds
linked again:
- Background() deferred its fill to the tree paint pass, which runs after
every widget that renders during declaration (TabBar, PanedView,
Collapsible, MenuBar, Text). The opaque backdrop then covered the whole
screen, leaving 10_menus, 12_collections, 15_containers, 20_scroll,
09_geometry, 11_basic_controls, and 17_keyboard_platform capturing a
single flat color. Background now paints in declaration order and marks
its node painted-immediate so the tree pass cannot double-paint it.
- k2c registered every public #ui function as an implicit route, then the
route wrapper lowered non-screen signatures as fn(app). buttons_layout
declared CancelAction(props: ActionProps) #ui and failed to compile.
Implicit routes now require a callable screen signature: no arguments or
a single viewport Rectangle. This also unblocked 14_canvas, whose
non-screen #ui helper previously broke its generated C.
- composed.kry had no screen, so k2c emitted no project C and the capture
harness could not link CreateAppHost. Give the fixture a composed_screen
route that exercises the carousel visually next to the existing function
parity checks.
drag_drop.kry stays listed as a render gap with an accurate reason: its
sources and targets are interaction-only and draw nothing by design.
k2c_syntax_test.sh also needs the generated include dirs now that
kryon.h includes ui_icon_types.h.
raylib-matrix-check-internal passes: 40 sources captured, 7 known gaps.
Both generated-C visual matrices run again now that the emcc test builds
link (previous commit fixed the missing generated includes and runtime
sources). The results:
- Raylib and web Canvas both capture 01_file_dialog, 02_buttons,
04_modal, fields, focus, and long_text; drop the stale blank entries.
- Five screens (10_menus, 12_collections, 15_containers, 20_scroll,
drag_drop) now paint nothing in headless captures on both backends;
record them as render gaps on each side.
- buttons_layout.kry and composed.kry fail generated-C compilation on
both backends (property-form local #ui function lowering passes the
app pointer to an ActionProps parameter; the composed fixture emits
no CreateAppHost); record both as compile gaps.
raylib-matrix-check-internal passes: 30 sources captured, 17 known gaps.
The canvas, dom, and audio backend test scripts and the web Canvas
generated-C matrix no longer compiled: kryon.h now includes the
generated ui_icon_types.h, and src/ui/*.c links against the widget C
lowered from runtime/*.kry (PaintButton, ReadButtonInput, ...), which
those emcc builds never passed or compiled. Discover the last completed
build generated dir, add its include paths, link its generated sources,
and exclude dom_*.c from the web Canvas matrix source set so it cannot
collide with canvas_*.c on the KryonRaylibBackend_* seam under
Emscripten.
Extend the retained+immediate widget surface with PlotLines, PlotHistogram,
DragFloat/DragInt, SliderFloat/SliderInt, VSlider variants, SliderAngle,
InputFloat/InputInt/InputDouble, TreeView and the widget catalog example,
wired through k2go, the Go runtime and web runtime parity coverage. Fix the
k2go lowering of &arr[i] address-of-array-element expressions so pointer
props like SliderAngle.Value stay addresses in generated Go. List the new
parity sources in the KRB alpha-diff matrix.
SDL latches SIGTERM into an event that a busy frame loop may never
observe, leaving an unkillable process holding the single-instance
lock (every later launch then gets rejected with no window). The lock
owner now installs its own SIGTERM/SIGINT handler that drops the lock
(close+unlink are async-signal-safe) and exits immediately.
Also: widen the steal budget to 3.5 s, escalate once to SIGKILL
guarded by a /proc/<pid>/comm same-application check so a recycled
pid never takes the hit, and add KryonReleaseInstanceLock() for apps
whose shutdown path is slow — krait calls it right after its main
loop ends, before cleanup.
.kry -> C++ compiler sharing the Kir frontend with k2c. Emits .cpp/.hpp
per module calling the C Kryon runtime through extern "C" declarations,
plus kryon_project.h/.c (still plain C) and the --plan9 and --include-dir
options ported from k2c. Inferred declarations emit 'auto' instead of
__auto_type so g++ accepts the output. Wired into the Makefile, tools
package, conformance matrix, feature matrix, and a k2cpp syntax test.
The short k2g/k2ir names became confusing as the toolchain grew.
k2go and k2kir name their targets explicitly; k2c, k2js, and k2b
keep their existing names. Hard rename, no compatibility aliases.