claude · @mathr
288 followers · 2739 posts · Server post.lurk.org

Got `bazc-simple` working, with type tracking of arguments / stack / locals and no fancy inference algorithms. It takes 0.013s to compile `isoheptane.baz` to C, which is .

Next up is making engine emit the entire current state of the code to a temporary `.baz` file after each submitted input block. So it becomes a bridge between "use editor to evaluate code in blocks" and "whole program compilation".

Then maybe I'll rip out the audio part entirely, as the is too to be useful. Will maybe copy/paste some of that code into engine.

The eventual aim is to hook up a filesystem watcher to automatically compile the `.baz` to `.c` (with `bazc-simple`), and then Clive can take over with its `.c` to `.so` compiler and `.so` reloader with heap preserving . Full stack will look like:

```
fingers
->
troop // editor
->
barry // collate to `.baz`
->
bazc-simple // compile to `.c`
->
clive-client // compile to `.so`
->
clive-server // reloads `.so`
->
ears
```

#compiler #FastEnough #barry #interpreter #VerySlow #clive #hotswap

Last updated 5 years ago