My experimental prototype of a programming language implemented like an audio synth is working really well.
It has a max jitter of 3ms for its timers (even in a web browser!) and is fully deterministic.
Global state is a totally-ordered immutable time-series in-memory db.
The language doesn't have threads, it has mini VMs with their own byte code that run in a hierarchical vm-tree for deterministic order of execution.
Computation is driven by the pulse of the audio hardware at audio rate.
@samaaron Sounds interesting! The global state must have a finite time horizon, I guess? And a lot like a stack, or...?