Examples
The checkout keeps runnable examples under etc/projects/ and focused runtime
checks under etc/tests/.
Runnable Projects
| Area | Files |
| Terminal | conway.ny, matrix.ny, ant.ny |
| OS | args.ny, server.ny, ffi.ny, sound.ny |
| UI | term.ny, input.ny, monitor.ny, engine.ny, editor.ny |
Run one directly:
ny etc/projects/os/conway.ny
Build a native executable:
ny -o build/conway etc/projects/os/conway.ny
Build the browser wasm runner:
./make web-demos
The generated build/wasm/index.html is a compact WebGL-backed wasm runner.
Load a .wasm file from the page, or add explicit browser-ready entries to
etc/assets/website/wasm/demos.json.
Focused Checks
Runtime checks under etc/tests/rt/ are the quickest way to inspect one
language surface in isolation:
| Topic | Files |
| ADTs and matching | adt.ny, match.ny |
| Concurrency and threads | concurrency.ny, thread.ny |
| Comptime | comptime.ny, table.ny |
| Native boundary | ffi.ny, extern.ny, asm.ny |
| Ownership and safety | ownership.ny, safe.ny, memory.ny |
Run a focused test by pattern:
ny test --pattern comptime
ny test --pattern ownership
Benchmarks
Bench examples live under etc/tests/fuzz/bench/. Use them for rough comparisons:
ny perf
ny -o build/cache/bench/sieve etc/tests/fuzz/bench/sieve.nshape
Related
- start.md for the first file.
- programs.md for script and module shape.
- testing.md for test commands.
- performance.md for measurement discipline.