Move the eighteen inspector calls, including PushInspectTransform's Camera2D
(which kryon_compat already supplies), into runtime/inspect_props.kry as
"#extern #export" declarations, so the tracked props header carries the public
ABI and include/ui_inspect.h is deleted. k2c and k2cpp now emit
"#include "ui_inspect_props.generated.h"" for instrumented modules instead of
the handwritten header, and the syntax tests assert the new include.
widget-instance-test fails identically before this change and stays outside
the standard gates.
Gates: generated-runtime-parity-test, fast-test, k2c/k2cpp/k2go-syntax-test,
go-runtime-test, examples-syntax-test, and the refreshed public-API snapshot
pass.
Move app shell, frame, locale, node, screen routes, theme state, and window
policy ownership into src/ui/*.kry, delete the replaced src/core owners, and
make generated public ABI the type source for capability and retained-node
records.
- runtime/capability_props.kry and runtime/node_props.kry generate the public
capability and node type headers; handwritten headers keep only the C-only
declarations (function-pointer typedefs, unions, host functions).
- k2c/k2cpp: terminate a same-line case body and map fixed-width casts
(i32/i64/u8/f32/...) to their C types.
- locale.c matches the generated LocaleParseEntries argument order;
locale_policy.kry keeps its return type on the signature line.
- ui_window.c renames the X11 dlopen shim symbols off the downstream app prefix.
- Refresh the canonical surface doc, public API snapshot, and test gates.
Verified: runtime parity (C+Go), k2c/k2cpp/k2go syntax, go runtime,
public-api-names, canonical-surface, kryon-boundary, public-api-snapshot,
laws, fast-test, smart-test.
Widget, layout, interaction, style, and UI-tree logic is now authored in
the Kry (.kry) UI language and compiled into the native C and Go runtimes,
replacing the hand-written C widget implementation. The remaining C is
platform and raster backends (X11 window, font rasterization, paint command
execution, surface/image caches, test helpers).
- Clipboard OSC52/paste callbacks are host-provided write functions instead
of raw function-pointer typedefs, unblocking Go runtime generation.
- AccessibilityNode and Accelerator types are generated from .kry.
- Generated-runtime parity test passes for both C and Go.
Use shared C/C++ input copies and caller-owned result buffers with equivalent Go value semantics. Normalize imported signatures and reject incomplete returns or unchecked ABI callers. Array, aggregate, record and string execution fixtures pass across all three targets; C/C++ syntax checks pass. Combined runtime generation and latest Go integration remain blocked by concurrent slider source/generated-host changes, recorded in the plan.
- Escape source paths interpolated into generated C/C++ string literals
(PushInspectSource) and validate #import/#style targets at parse time so
crafted paths cannot escape emitted #include lines.
- Reject source lines exceeding the frontend line buffer with a located
error instead of silently splitting them; mark truncated lexer tokens and
fail the expression parser on them.
- Fail lowering when statement rewriting or name-shadow lists overflow
their fixed buffers; both previously changed generated-code meaning
silently.
- Strict checking no longer explodes on C interop: unresolved calls,
statements, and address-of in modules importing C headers are left to the
C compiler, and runtime enum members resolve through the embedded runtime
declarations exactly as the emitter resolves them.
- C/C++ indexing of fixed arrays and string bytes lowers through
KRYON_INDEX; builds defining KRYON_BOUNDS_CHECK trap out-of-range indexes
with a diagnostic, release builds stay raw.
- Emit ui_tree.h and host-hook prototypes only when a module actually uses
block widgets, so scalar-only modules no longer require widget types.
- Mark raw-c statements in generated output with a provenance comment and
document the .kry trust model in the language spec.
- Add spec fixtures for over-long lines and invalid #import targets; teach
the language harness about the ui_tree.h header.
Plan 9's native compilers are C compilers; the C++ backend never feeds
them, so the ported 8c rewrite pass was dead code. k2cpp now takes only
--no-main, --root, and -o.
.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.