Things you can play with
Small interactive pieces built on the Amber engine, compiled to WebAssembly and running on the page in front of you: the real C99 interpreter, not a reimplementation. Each one exists to show a different thing an array language is unreasonably good at. Nothing is installed, and nothing you type leaves your browser.
Dots
A grid of dots drawn by one line of Amber, re-evaluated every frame. No per-pixel
callback, because X and Y are whole vectors, so your expression is a
single array operation over all 1024 cells.
The Pit
You are the market maker. Order flow hits you twenty times a second and your quote is one line of Amber, re-evaluated on every tick. Quote too tight and informed flow picks you off; quote too wide and you never trade.
Sweep
Minesweeper, with no loop over cells. The whole board's adjacent-mine count is one indexed sum, and opening an empty region is a converge. Play it, then read the forty-five lines that run it.
Array Golf
A hundred and fifty-five problems in three tiers, scored in bytes. Write an
expression in terms of x; the engine judges it as you type, against
every test the puzzle has. The shortest are two characters; the hardest are not.
More to come
This section is the home for the next ones: a live-coded audio-visual instrument, an arena where one-line bots fight each other.