253 lines
15 KiB
HTML
253 lines
15 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Kryon Widget and Language Matrices</title>
|
|
<meta name="description" content="Kryon widget, language, compiler, and runtime capability matrices.">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:url" content="https://kryonlabs.com/matrices.html">
|
|
<meta property="og:title" content="Kryon Widget and Language Matrices">
|
|
<meta property="og:description" content="View Kryon's widget, language, compiler, and runtime coverage by target.">
|
|
<meta name="theme-color" content="#f3f1ea">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="icons/proj/kryon.png">
|
|
<link rel="apple-touch-icon" href="icons/proj/kryon.png">
|
|
<link rel="stylesheet" href="styles.css">
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<div class="site-header-inner">
|
|
<a class="brand" href="/">
|
|
<img src="icons/proj/kryon.png" alt="Kryon" width="22" height="22">
|
|
<span>KRYON</span>
|
|
</a>
|
|
<button class="menu-toggle" type="button" aria-label="Open site menu" aria-expanded="false" aria-controls="header-nav">Menu</button>
|
|
<nav class="header-nav" id="header-nav" aria-label="Primary">
|
|
<a href="/">Home</a>
|
|
<a href="showcase.html">Showcase</a>
|
|
<a href="language.html">Language</a>
|
|
<a href="matrices.html">Matrices</a>
|
|
<a href="renderers.html">Renderers</a>
|
|
<a href="/api">API</a>
|
|
<a href="live-examples.html">Live Examples</a>
|
|
<a href="ide.html">Web IDE</a>
|
|
<a class="star-pill" href="https://github.com/kryonlabs/kryon" target="_blank" rel="noopener">★ <span class="count">GitHub</span></a>
|
|
<a class="btn btn-primary" href="/#start">Get started</a>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<section class="doc-hero">
|
|
<p class="section-eyebrow">Capability Matrices</p>
|
|
<h1>Widgets and language support</h1>
|
|
<p class="section-lead">A compact view of what Kryon supports through C, <code>.kry</code> lowering, Go generation, hand-written Go, and KRB cartridges. See the <a href="language.html">language reference</a> for syntax and lowering rules.</p>
|
|
<div class="matrix-legend">
|
|
<span class="status ok">Available</span>
|
|
<span class="status part">Partial</span>
|
|
<span class="status no">Missing</span>
|
|
<span class="status na">Not applicable</span>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<p class="section-eyebrow">Automated</p>
|
|
<h2>Conformance Matrix</h2>
|
|
<p class="section-lead">Generated from checked-in <code>.kry</code> examples, generated-runtime parity fixtures, and renderer evidence. The JSON backing this view is refreshed by <code>tests/feature_matrix_docs_test.sh</code>; source-pipeline and KRB visual cells are verified by <code>make conformance-matrix-check</code>, with renderer-specific gates listed below.</p>
|
|
|
|
<div class="matrix-stat-grid" data-conformance-summary>
|
|
<p class="section-lead">Loading generated matrix...</p>
|
|
</div>
|
|
|
|
<h3>Pipelines</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Pipeline</th><th>Path</th><th>Status</th><th>Evidence</th></tr></thead>
|
|
<tbody data-conformance-pipelines></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Renderers and Platforms</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Renderer</th><th>Platform</th><th>Approach</th><th>Status</th><th>Evidence</th><th>Matrix Scope</th><th>Notes</th></tr></thead>
|
|
<tbody data-conformance-renderers></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Renderer Smoke Gates</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Gate</th><th>Command</th><th>Scope</th></tr></thead>
|
|
<tbody data-conformance-renderer-checks></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Visual Comparisons</h3>
|
|
<p class="section-lead">Capture gates prove a renderer draws a nonblank frame. Comparison rows show whether that output is actually pixel-compared against another renderer.</p>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Pair</th><th>Mode</th><th>Status</th><th>Compared Sources</th><th>Known Gaps</th><th>Evidence</th><th>Scope</th></tr></thead>
|
|
<tbody data-conformance-visual-comparisons></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Runtime Parity Gates</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Gate</th><th>Command</th><th>Scope</th></tr></thead>
|
|
<tbody data-conformance-runtime-checks></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Downstream Consumer Gates</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Consumer</th><th>Command</th><th>Scope</th></tr></thead>
|
|
<tbody data-conformance-downstream-checks></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Source Cases</h3>
|
|
<p class="section-lead">Each source starts as <code>.kry</code>. Pipeline columns show lowering coverage; renderer columns show the strongest current evidence for that same source on each renderer/platform path.</p>
|
|
<div class="matrix-controls">
|
|
<input type="search" data-conformance-search placeholder="Filter sources or widgets" aria-label="Filter source cases">
|
|
<select data-conformance-type aria-label="Filter source type">
|
|
<option value="all">All source types</option>
|
|
<option value="example">Examples</option>
|
|
<option value="parity fixture">Parity fixtures</option>
|
|
</select>
|
|
</div>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table source-matrix-table">
|
|
<thead><tr data-conformance-source-head><th>Source</th><th>Type</th><th>k2ir</th><th>k2c</th><th>k2g</th><th>k2b</th><th>Renderers</th><th>Widgets</th><th>State Evidence</th></tr></thead>
|
|
<tbody data-conformance-sources></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Widget Coverage</h3>
|
|
<div class="table-wrap compact-table-wrap">
|
|
<table class="matrix-table compact-matrix-table">
|
|
<thead><tr><th>Widget</th><th>Status</th><th>Sources</th><th>Source Cases</th><th>State Evidence</th></tr></thead>
|
|
<tbody data-conformance-widgets></tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<p class="section-eyebrow">Language</p>
|
|
<h2>Pipeline Matrix</h2>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Target</th><th>Producer</th><th>Runtime</th><th>Status</th></tr></thead>
|
|
<tbody>
|
|
<tr><td>C</td><td><code>k2c</code></td><td><code>cc</code> + <code>libkryon.a</code></td><td class="ok">Production path; most complete</td></tr>
|
|
<tr><td>Go</td><td><code>k2g</code></td><td><code>go/kryon</code> native Go package</td><td class="ok">Declarative subset with executable CI gate</td></tr>
|
|
<tr><td>KRB cartridge</td><td><code>k2b</code></td><td><code>KrbLoad</code>/<code>KrbExec</code> on a <code>KryBackend</code></td><td class="part">Portable widget subset; byte-exact renderer tests</td></tr>
|
|
<tr><td>KIR</td><td><code>k2ir</code></td><td>Inspection artifact</td><td class="na">Debugging and tooling only</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Feature</th><th>C</th><th>Go</th><th>KRB</th></tr></thead>
|
|
<tbody>
|
|
<tr><td>Theming</td><td class="ok">6 palettes, light/dark, scopes, vars</td><td class="ok">Theme control APIs</td><td class="part">Theme color slots</td></tr>
|
|
<tr><td>Style tokens</td><td class="ok">Radius, border, shadow, style presets</td><td class="ok">Get/set token API</td><td class="no">No token model</td></tr>
|
|
<tr><td>Text/fonts</td><td class="part">Fallback fonts; no shaping, bidi, or IME</td><td class="ok">Font registry and input queue</td><td class="part">font8x8 or KFA1 atlas</td></tr>
|
|
<tr><td>Input</td><td class="part">Pointer, keyboard, clipboard; no IME/gamepad nav</td><td class="ok">Key, mouse, char APIs</td><td class="part">Mouse, wheel, text-key queue</td></tr>
|
|
<tr><td>Accessibility</td><td class="part">Debug a11y structs; no screen-reader bridge</td><td class="no">Not exposed</td><td class="no">Not exposed</td></tr>
|
|
<tr><td>Dialogs/platform</td><td class="ok">Portal, GTK, shell pickers, notifications, tray, XDG</td><td class="ok">Tray and notify polling</td><td class="part">Host capability imports</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<p class="section-eyebrow">Widgets</p>
|
|
<h2>Widget Matrix</h2>
|
|
<p class="section-lead">Columns: C is the public runtime API. <code>k2c</code> follows C because library calls compile as C-close statements. <code>k2g</code> and KRB deliberately cover smaller subsets.</p>
|
|
|
|
<h3>Display</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Widget</th><th>C</th><th>k2c</th><th>k2g</th><th>Go</th><th>KRB</th></tr></thead>
|
|
<tbody>
|
|
<tr><td>Background, Text, TextInRect</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Nodes</td></tr>
|
|
<tr><td>Paragraph, TextLines</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>Rect, Line, Bevel</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Nodes</td></tr>
|
|
<tr><td>IconTexture</td><td class="ok">114 icons</td><td class="ok">Yes</td><td class="ok">By icon type</td><td class="ok">Yes</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>Image/Picture</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Picture props</td><td class="ok">Yes</td><td class="ok">Embedded asset or PNG</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Input</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Widget</th><th>C</th><th>k2c</th><th>k2g</th><th>Go</th><th>KRB</th></tr></thead>
|
|
<tbody>
|
|
<tr><td>Button</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">ButtonProps</td><td class="ok">Yes</td><td class="ok">Button control</td></tr>
|
|
<tr><td>IconButton</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="part">IconButton subset</td><td class="part">Subset</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>Href / IconLink</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="part">Href only</td><td class="part">Href only</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>TextField, TextArea</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="part">TextField only</td></tr>
|
|
<tr><td>Dropdown</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="part">No rich option arrays</td><td class="ok">Yes</td><td class="ok">Dropdown control</td></tr>
|
|
<tr><td>Slider, Toggle, Checkbox</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Controls</td></tr>
|
|
<tr><td>Radio, Progress, Spinbox, Combobox</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="part">Spinbox/combobox only</td></tr>
|
|
<tr><td>ColorPicker, InfoButton</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="no">Not exposed</td><td class="no">Not exposed</td><td class="no">Not lowered</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Layout, Collections, Navigation</h3>
|
|
<div class="table-wrap">
|
|
<table class="matrix-table">
|
|
<thead><tr><th>Family</th><th>C</th><th>k2c</th><th>k2g</th><th>Go</th><th>KRB</th></tr></thead>
|
|
<tbody>
|
|
<tr><td>Column, Row, Stack</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Structural nodes</td></tr>
|
|
<tr><td>Scroll container</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Scroll/EndScroll</td><td class="ok">Yes</td><td class="ok">Scroll node</td></tr>
|
|
<tr><td>Notebook, PanedView, Collapsible</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>Canvas helpers</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Canvas helpers</td><td class="ok">Yes</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>ListBox, SourceView, TableView</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>TreeView, CascadingTreeView</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="no">Not exposed</td><td class="no">Not exposed</td><td class="no">Not lowered</td></tr>
|
|
<tr><td>TabBar, BottomNav, TopNav, Toolbar</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="part">Main controls only</td><td class="ok">Main controls</td><td class="part">NavButton as button</td></tr>
|
|
<tr><td>Modal, Toast, dialogs</td><td class="ok">Yes</td><td class="ok">Yes</td><td class="part">Modal/toast/dialog subset</td><td class="part">Subset</td><td class="no">Not lowered</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<p class="section-eyebrow">Caveats</p>
|
|
<h2>Known Gaps</h2>
|
|
<ul class="link-list">
|
|
<li><strong>Retained painting:</strong> the retained tree paints a smaller subset than immediate mode and routes retained input mainly for button/text-field paths.</li>
|
|
<li><strong>Text shaping:</strong> font fallback works, but HarfBuzz shaping, bidi, RTL mirroring, and IME preedit are not implemented yet.</li>
|
|
<li><strong>KRB:</strong> intentionally portable and smaller than the full C catalog; unsupported widget calls are reported per file by <code>k2b</code>.</li>
|
|
</ul>
|
|
</section>
|
|
</main>
|
|
|
|
<footer>
|
|
<div class="footer-bottom">
|
|
<p>© 2026 Kryon Labs · <a href="index.html">Home</a> · <a href="renderers.html">Renderers</a> · <a href="/api">API</a></p>
|
|
</div>
|
|
</footer>
|
|
<script src="highlight.js"></script>
|
|
<script src="conformance-matrix.js"></script>
|
|
<script>
|
|
(function() {
|
|
var toggle = document.querySelector(".menu-toggle");
|
|
var nav = document.getElementById("header-nav");
|
|
if (toggle && nav) {
|
|
toggle.addEventListener("click", function() {
|
|
var open = nav.classList.toggle("is-open");
|
|
toggle.setAttribute("aria-expanded", open ? "true" : "false");
|
|
});
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|