Files
kryon/docs/FEATURE_MATRIX.html
T

44 lines
5.6 KiB
HTML

<!DOCTYPE html>
<!-- Generated by scripts/feature-matrix-html.py. DO NOT EDIT MANUALLY. -->
<html><head><meta charset="utf-8">
<title>Kryon Feature Matrix</title>
<style>
body{font-family:system-ui,sans-serif;max-width:1100px;margin:2rem auto;padding:0 1rem;color:#1a1a1a;background:#fafafa}
h1{border-bottom:3px solid #333;padding-bottom:.4rem} h2{margin-top:2.2rem;border-bottom:1px solid #ccc;padding-bottom:.25rem}
h3{margin-top:1.6rem;color:#333}
table{border-collapse:collapse;margin:1rem 0;font-size:.92rem;width:100%}
th,td{border:1px solid #bbb;padding:.42rem .6rem;text-align:left;vertical-align:top}
th{background:#2b2b2b;color:#fff;position:sticky;top:0}
tr:nth-child(even) td{background:#f2f2f2}
td.ok{background:#d9f2dd !important} td.part{background:#fdeebc !important}
td.no{background:#fbd5d2 !important} td.na{background:#e8e8e8 !important;color:#888}
code{background:#eee;padding:.08rem .3rem;border-radius:3px;font-size:.85em}
pre{background:#222;color:#ddd;padding:1rem;border-radius:6px;overflow-x:auto}
li{margin:.25rem 0}
</style></head><body>
<h1>Kryon feature matrix</h1>
<p>This table describes the maintained Ziran library and hosts. Kryon is imported by a Ziran application; it is not a language or a built-in Ziran runtime. Ziran owns compilation and portable <code>.zib</code> execution. See <a href="ARCHITECTURE.md">ARCHITECTURE.md</a> and <a href="BACKENDS.md">BACKENDS.md</a> for the module and host boundaries.</p>
<h2>Library packages</h2>
<table>
<tr><th>Package</th><th>Ziran source</th><th>Native code generation</th><th>Package verification</th></tr>
<tr><td class="">Core UI (<code>src/ui</code>)</td><td class="ok">✅ <code>.zi</code> modules listed in <code>modules.txt</code> and two public import modules</td><td class="ok">✅ C, C++, and Go generation in <code>make</code></td><td class="ok">✅ <code>make test</code> builds the library and runs source, saved <code>.zir</code>, and <code>.zib</code> behavior tests</td></tr>
<tr><td class="">Plot (<code>src/plot</code>)</td><td class="ok">✅ optional <code>.zi</code> package</td><td class="ok">✅ C, C++, and Go generation in <code>make plot</code></td><td class="ok">✅ imported by the terminal package project test</td></tr>
<tr><td class="">TableView and TreeView (<code>src/data_views</code>)</td><td class="ok">✅ optional <code>.zi</code> package</td><td class="ok">✅ C, C++, and Go generation in <code>make data-views</code></td><td class="ok">✅ imported by the terminal package project test</td></tr>
<tr><td class="">KSS (<code>src/kss</code>)</td><td class="ok">✅ optional <code>.zi</code> package</td><td class="ok">✅ C, C++, and Go generation in <code>make kss</code></td><td class="ok">✅ imported by the terminal package project test</td></tr>
<tr><td class="">Syntax (<code>src/syntax</code>)</td><td class="ok">✅ optional <code>.zi</code> package</td><td class="ok">✅ C, C++, and Go generation in <code>make syntax</code></td><td class="ok">✅ imported by the terminal package project test</td></tr>
</table>
<p>The generated C archive is a build output of Ziran source. Behavior tests use Ziran hosts in <code>tests/*_host.zi</code>. Code generation verifies that a module lowers for a target; it does not prove that every native host runs on that target.</p>
<h2>Application hosts</h2>
<table>
<tr><th>Backend</th><th>Implementation</th><th>Input and presentation verification</th><th>Current status</th></tr>
<tr><td class="">Terminal</td><td class=""><code>src/backend/terminal_run.zi</code></td><td class="">Private PTY project test covers ASCII, UTF-8, invalid input, and escape sequences</td><td class="ok">✅ supported</td></tr>
<tr><td class="">Desktop</td><td class=""><code>src/backend/desktop_run.zi</code></td><td class="">Private Xvfb project test covers image capture, keyboard, UTF-8 text, and wheel input</td><td class="ok">✅ supported on the tested Linux host</td></tr>
<tr><td class="">Raylib</td><td class=""><code>src/backend/raylib_run.zi</code></td><td class="">Private Xvfb project test covers image capture and input</td><td class="ok">✅ supported on the tested Linux host</td></tr>
<tr><td class="">Libdraw</td><td class=""><code>src/backend/libdraw_run.zi</code></td><td class="">Private Xvfb project test covers capture and input</td><td class="ok">✅ supported on the tested Linux host</td></tr>
<tr><td class="">Native Plan 9 libdraw</td><td class=""><code>src/backend/libdraw_native.zi</code></td><td class=""><code>plan9-c</code> ABI fixture covers display setup, <code>font</code> loading, forced offscreen rendering, rectangles, text metrics, flush, capture, and cleanup</td><td class="part">🧪 experimental raster provider; pointer input, image presentation, and a run profile remain pending</td></tr>
<tr><td class="">Web Canvas</td><td class=""><code>src/backend/canvas_run.zi</code></td><td class="">Headless Chromium checks Canvas2D pixels, clips, input, textures, fonts, lifecycle, WebAudio, and file behavior</td><td class="ok">✅ supported through Emscripten on the tested browser</td></tr>
<tr><td class="">Web DOM</td><td class=""><code>src/backend/dom_run.zi</code></td><td class="">Headless Chromium checks semantic tags, attributes, state, stable identity, and the hybrid Canvas raster layer</td><td class="part">🧪 first semantic-DOM host; CSS-native layout and KSS export remain future work</td></tr>
</table>
<p>The desktop, raylib, and libdraw project tests run separately with <code>make desktop-project-test</code>, <code>make raylib-project-test</code>, and <code>make libdraw-project-test</code>; they must use a private Xvfb display. The Canvas2D and semantic DOM project tests run in <code>make test</code> and launch only private headless Chromium.</p>
</body></html>