Long ago I once had a similar architecture (i.e. javascript generates C, compiles it to a .so, and signals a server to dlopen-load it) working, but because the server was written in C, doing live communication with a js frontend (and also initialization of audio and midi libraries) was kind of a pain in the ass. Go may not be the holy grail of low-level programming languages, but it does at least give me (a) json parsing (b) http and websocket serving (c) nicely wrapped libraries for portaudio and portmidi, and (d) enough syntactic sugar for basic data structures like hashes that I don't want to stab myself implementing polyphony and sustain-pedal semantics.
Long ago I once had a similar architecture (i.e. javascript generates C, compiles it to a .so, and signals a server to dlopen-load it) working, but because the server was written in C, doing live communication with a js frontend (and also initialization of audio and midi libraries) was kind of a pain in the ass. Go may not be the holy grail of low-level programming languages, but it does at least give me (a) json parsing (b) http and websocket serving (c) nicely wrapped libraries for portaudio and portmidi, and (d) enough syntactic sugar for basic data structures like hashes that I don't want to stab myself implementing polyphony and sustain-pedal semantics.
-
(no subject)
After getting home from work immediately appeared to be a traintastrophe in the making, went to see Esther Schor talk about her book "Bridge of…
-
(no subject)
Thai curry leftovers for dinner. Got a copy of Hennessy and Patterson's textbook on Architecture, and I am enjoying catching up on all the low-level…
-
(no subject)
Finally the end is in sight for unpacking my books. Heartstrings are pulled over the desire to slim down and get rid of some of them, but so many are…
- Post a new comment
- 3 comments
- Post a new comment
- 3 comments