feat: execute Tessera UI source with embedded Aster
Verify Tessera GUI / verify (push) Successful in 7m38s
Verify Tessera GUI / verify (push) Successful in 7m38s
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Tessera source
|
||||
|
||||
| Module | Responsibility |
|
||||
| --- | --- |
|
||||
| main.rs | Native window event loop, namespace state and API startup |
|
||||
| api.rs | Code CRUD, eight-entry execution queue, worker, submission ordering and diagnostics |
|
||||
| endor_host.rs | Aster Reader/Parser/Compiler, fresh candidate VM, limited initialization/main execution, root cleanup and AST developer tree |
|
||||
| ui_bridge.rs | Tessera UI constructors and payloads, bounded preallocated node pool and native snapshot extraction |
|
||||
| layout.rs | Native UI tree to Frame; expanded-tree and coordinate budgets |
|
||||
| document.rs | Published source/AST/UI snapshot, revisions, invalidation, frame validation and display commands |
|
||||
| app.rs | Window events, redraw and developer-tools input |
|
||||
| scene.rs | Page and developer-tools display-list composition |
|
||||
| developer_tools.rs | Aster AST tree selection and corresponding source display |
|
||||
| display_list.rs | Rendering primitives and color representation |
|
||||
| geometry.rs | Native points and rectangles |
|
||||
| software_renderer.rs | Software rasterization of the display list |
|
||||
| README.md | Module map |
|
||||
|
||||
Aster is an unmodified source submodule. Language parsing, AST definitions,
|
||||
compilation, bytecode and VM execution come from its libraries. Tessera implements
|
||||
only host UI behavior and layout. No CLI, HTTP server or Docker process is needed
|
||||
to execute Endor in the application.
|
||||
|
||||
An execution candidate owns all external VM roots, including the 4096-node pool.
|
||||
Callbacks return borrowed, preallocated real VM objects. Their mutable slots hold
|
||||
immutable native UI descriptions; child edges contain owned native Arcs, never
|
||||
managed VM references. Once extraction finishes, release the return value, clear
|
||||
globals, release roots, collect cycles and require an empty VM. The window keeps
|
||||
only source, developer metadata, frame commands and native UI data.
|
||||
|
||||
Tests in api.rs execute real HTTP CRUD and a controlled queued-PUT/DELETE race
|
||||
without opening a window. Tests in endor_host.rs cover lifecycle, normal Endor calls, malformed input,
|
||||
entry checks, budgets, failure preservation and stale-result invalidation. They
|
||||
run only in remote CI. See the [project guide](../README.md) for public behavior.
|
||||
Reference in New Issue
Block a user