▲ | SchwKatze 2 days ago | |
I'm doing a PL based on SQLite's VM. I first tried to expose the VDBE to public usage, so it could be easier to right hand-made bytecodes, but it would require an effort that I'm not quite have to a side project. So instead I'm extending SQLite's parser to accept things like `let <var> = <expr>`, and functions. Alongside, I'm doing a "standard library" so you could build web servers and stuff. The thing I'm struggling with is managing execution state. I have the idea of doing transactional functions using function coloring (e.g async functions), so each function call opens a new savepoint, and the user could rollback a particular function call in case it got wrong. I put the deadline to be 31 October, if I manage to get this on time I'll post here on HN :) |