News for hackers. Stuff that matters.
Re:Endatabas: An open source immutable, Document Database wi... by simonw on Thursday February 29, 2024 @11:16PM (#39558478)
Interactive (in your browser via WebAssembly) demo is here: https://www.endatabas.com/demo

Follow the tutorial at https://docs.endatabas.com/tutorial/sql_basics - so start with this:

    insert into posts (id, user_id, text) values (123, 456, 'Hello World');
(Which will create the table automatically)

Then:

    select * from posts;
It's AGPL licensed and written in Common Lisp, looks like it's been in development for just over a year: https://github.com/endatabas/endb

On disk storage format is Apache Arrow.

Re:Endatabas: An open source immutable, Document Database wi... by syrusakbary on Friday March 01, 2024 @12:48AM (#39558929)
This is super cool! It seems that endb uses emscripten to compile to WebAssembly, I wonder if they tried WASI or WASIX (https://wasix.org) to target both browser and server environments!
Re:Endatabas: An open source immutable, Document Database wi... by deobald on Friday March 01, 2024 @04:12AM (#39560061)
We did try to get WASI to work, but ECL itself doesn't yet target it. It fell down on missing set/longjmp support in wasi-libc. We haven't tried WASIX yet.

There are other approaches than the one we've taken so far, and we're still experimenting. But for the current demo, we're quite happy with Emscripten. The entire Wasm ecosystem feels pretty darn magical. :)