aboutsummaryrefslogtreecommitdiff
path: root/tests/bench
Commit message (Collapse)AuthorAgeFilesLines
* bench: sieve.zc and trees.zc take namespace and include rt, so run.py's ↵Gravatar zinc 13 days2-18/+22
| | | | checksums pass on main again (todo item closed)
* bench: a trap (zy exit 2) is labelled runtime trap with the stdout tail, ↵Gravatar zinc 13 days2-6/+9
| | | | since zy reports traps on stdout, in suite.py and bench.sh
* bench: matmul fill a = i % 7 - 2, b = i % 5 - 1 so its checksum is 63760 ↵Gravatar zinc 13 days2-2/+2
| | | | (checked against a python reference), not 0
* bench: a nonzero zy exit (1 compile error, 2 trap) or a wrong checksum fails ↵Gravatar zinc 13 days3-21/+73
| | | | the row with the stderr tail, in suite.py and bench.sh; selftest cases for exit 1, exit 2 and a wrong checksum. arrays rows scaled to ~3 ms a repetition (matmul 40x40, gather 98304 words); the baseline's arrays rows are stale until a re-save
* bench: arrays rows, checks column from zy --explain-checks ('-' without it), ↵Gravatar zinc 13 days1-10/+68
| | | | bench-check fails when a row's check count changes; selftest cases
* bench: arrays.zc, a matmul whose hot loop is proved and a gather that keeps ↵Gravatar zinc 13 days1-0/+58
| | | | its check
* bench: drop committed pycache, ignore __pycache__Gravatar zinc 13 days1-0/+0
|
* bench: find llvm-config-19 like the Makefile; bench-save refuses when an ↵Gravatar zinc 13 days3-2/+28
| | | | expected backend has no rows
* bench: o3 guard is jit o3 collatz under half of jit plain (no interp rows ↵Gravatar zinc 13 days1-5/+9
| | | | needed)
* bench.sh: interp core built and timed only with INTERP=1Gravatar zinc 13 days1-2/+6
|
* bench: no-region guard, selftest and --rows, interp rows behind INTERP=1, ↵Gravatar zinc 13 days1-7/+73
| | | | fail only over 10% and 0.1 ms
* Merge branch 'main' into work/benchGravatar zinc 13 days1-1/+1
|\
| * x86-64 o3 regions: header comment, readme, bench note and todoGravatar zinc 13 days1-1/+1
| |
* | wip: bench wraps bench.shGravatar zinc 13 days1-61/+87
| |
* | wip: bench suiteGravatar zinc 13 days2-0/+188
|/
* x86-64 jit: zyi target, ZYNOO3, bench and test timeouts, docs; drop a stray fileGravatar zinc 13 days1-1/+5
|
* build: embed images with #embed, keep everything generated in build/Gravatar zinc 13 days6-29/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | the cores take their genome in with c23 #embed through src/core/genome.h, so images are plain little-endian word files (genome.bin) instead of generated c headers. zc0 writes that format, mkgenome checks an image against its map and shows a compiler's diagnostics when it gets them, and the javascript vm and the editor's vm host read the same files. src/tools/findcc.sh picks a compiler with #embed (clang 19 or gcc 15). zc gets an embed declaration, embed "file" as [type] name, for globals and locals: a byte string by default, char*, numbers read little-endian, and arrays of numbers. the compiler and language server carry their library and source texts through it, so embed.sh and the text it spliced into compiler.zc are gone. make writes executables to build/bin, the default map to build/core/map, the web page to build/web and the extension staging to build/vsix, and the genome now rebuilds when its sources change. the test suite lays out its own map and bootstrap and reads nothing from build/. also: rt.put_s of a byte string in zc0 images, retained function sources no longer count as live objects, a missing include no longer cascades into undefined-name errors, consecutive comment lines join into one hover paragraph, and stale test fixtures follow the include format.
* feat: grow memory limits, add icon/actor libraries, overhaul LSP diagnosticsGravatar Moon Flower 14 days3-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compiler and VM - make every memory map limit dynamic and adjustable at both build time and runtime, including compiler tables, stacks, and every execution region - reserve and grow tables, operand and return stacks, frame segments, and image-building output without relocating live code or globals - rename i/o and string helpers consistently (puts -> put_s, putn -> put_n, scat -> cat_s) across compiler, runtime, examples, tests, and docs - recast and consume values assigned to globals from inside functions - allow fixed and const together, add typed closure returns (fn:t(...)), multi-include syntax (include rt, run, core;), and recurse type inference - never infer string literals as word, anywhere, as argument, variable, or return type - draft docs/BORROW.md: a borrow checker less intrusive than Rust's but more intelligent LSP and editor integration - require explicit includes and give every toolchain area its own namespace (rt, lsp, run, core) - hover for built-in types, inferred types, values known at hover time, array and pointer lifetime/size, library names in include statements, and inferred lifetimes with explanations - honor /* */ comments as documentation for variables and arguments, and stop misattributing section headers or trailing comments as variable hints - stream diagnostics and cancel stale requests on change - jump to definition and references, including cross-file - quick fixes with automatic library import, and namespace completion Hints and diagnostics - render hints as blue squigglies by default, with hints on/small/off per file - suppress magic-number hints via a preceding /* */ comment, and say so - warn on unused arguments; allow multiple _ discards in parameters, pattern matching, and tagged enums, warning if a _ is actually used - rewrite hint and comment prose in professional compiler-doc register Libraries - add icon.zc: run-time self-modification, find/replace syntax, type and block edits, and step-through inspection of locals and globals - add actor.zc: async actors with Actor<I,O>, implicit this, spawn/recv/send, injected into the compiler machinery at include time rather than built in Tooling and docs - reorganize sources, tests, and designs into subdirectories - unify windows entry points in tinyvm.bat and add a matching tinyvm.sh - add --help across the toolchain - polish the learning guide, stdlib docs, and design notes Tests - add accept, reject, and regression coverage across the compiler, LSP, - runtime, icon, actors, threads, formatting, and the toolchain contracts, plus fuzzers and property tests
* aGravatar Moon Flower 2026-10-1212-0/+801