Open Manual

Examples

The checkout keeps runnable examples under etc/projects/ and focused runtime

checks under etc/tests/.

Runnable Projects

AreaFiles
Terminalconway.ny, matrix.ny, ant.ny
OSargs.ny, server.ny, ffi.ny, sound.ny
UIterm.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:

TopicFiles
ADTs and matchingadt.ny, match.ny
Concurrency and threadsconcurrency.ny, thread.ny
Comptimecomptime.ny, table.ny
Native boundaryffi.ny, extern.ny, asm.ny
Ownership and safetyownership.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