Browser
What it is
The machine compiled to WebAssembly, with its modules linked in. The
live code boxes are its small build, ose-lite.js; the
playground is its full build, with a halted machine opened as
a tree you can edit.
Get it running
Needs emscripten on the path.
In the workspace:
make -C hosts/web.o.se # -> web/ose.js + web/ose.wasm
As a standalone clone:
git clone --recursive https://github.com/asomadev/web.o.se
cd web.o.se && make && make serve # http://localhost:8000/
First program
Open the playground, type (21, 2) /o/add and press Run; it
answers : 23. Nothing is installed; the machine is in the page.
What it adds
Into the host register: WebAudio as /audio/* (create, connect,
set, ramp, start, stop, at, level, read, and the rest), and
a WebSocket as /send, so a program can make sound in the tab and talk
to whatever is on the other end of the socket.