3 ms·
The project was a custom compiler to turn a simple query plan (think select, where, group by) into wasm. So it was basically hand-written raw wasm generation.
by cube2222 3y ago
The project was a custom compiler to turn a simple query plan (think select, where, group by) into wasm. So it was basically hand-written raw wasm generation.
I did compile some helper functions from Rust though, which also served as the "skeleton" of the wasm artifact I was later generating my wasm into, since wasm doesn't have any kind of proper dynamic linking right now.
- eudoxus 3y agoLove to see what this looks like if its available to look at somewhere (Github?). Sounds super interesting, even as a toy project
- cube2222 3y agoNever got it to anything close to a finished state, instead moving on to doing the same prototype in llvm and then cranelift. That said, here's some of the wazero-based code on a branch - https://github.com/cube2222/octosql/tree/wasm-experiment/wasmsql https://github.com/cube2222/octosql/tree/wasm-experiment/was... It really is just a very very basic prototype.