5 Commits
Author SHA1 Message Date
waozi af1121a9ce Generate code without defensive checks unless built with --checks
Default native, Wasm, C and Go output follows manual safety like C: a
native data pointer is its address, so loads, stores, byte compares and
platform services use it directly, globals are RIP-relative addresses,
allocate takes plain frame-arena bytes and resize passes the raw block.
Element and member accesses use the unchecked operand forms, the machine
verifier's checked-memory obligation and the proven facts apply only to
--checks programs, and the native loader builds its slot table and host
token resolver only for a checked bundle. Wasm skips index, subview and
resize checks; generated C uses raw indexes, SliceRangeAt and the new
StringRangeAt; Go drops Ziran's explicit range checks. ARMv7 keeps
checked pointers until its encoder has the unchecked forms.

--checks builds today's checked program. Trap, hostile-twin and bounds
tests build with it, and new assertions show the default C build has no
index check. The bootstrap, including the macOS copy, is regenerated.
2026-11-16 04:17:45 -03:00
waozi 436d73cf3a Regenerate the bootstrap without the TinyCC guard
The checked-arithmetic helpers every generated module carries no longer
test __TINYC__.
2026-11-15 21:56:20 -03:00
waozi d2db9d35fe Extend verified direct assembly execution and optimization 2026-11-11 21:28:27 -03:00
waozi 4dc2da6b09 Publish measured desktop, Android and web target matrix
Compare five real examples across four targets on three measured platforms, preserving raw samples, independent output verification and artifact provenance.

Complete the WebAssembly support needed by the examples, inspect ZX bundles, prune generated C dependencies while preserving C++ linkage, and validate native script execution. Optimize only the temporary bootstrap seed and retain fresh-build measurements and historical benchmark records under bench/results.

Local tests: all 522 cases passed across the full run and corrected header-test rerun; all 16 bootstrap modules match. Playground runtime, bundle runtime, private browser layouts and matrix controls, published artifacts and local site links passed.
2026-11-10 23:50:12 -03:00
waozi 5a25628297 Write the proof kernel in Ziran
cmd/compiler_proof_kernel.zi replaces cmd/zir/zir_proof_kernel.c and .h.
Proof results, law diagnostics and the step budget are unchanged: the
kernel test pins a trace hash recorded from the old C kernel.
2026-11-07 13:50:20 -03:00