Remix.run Logo
mpweiher 8 hours ago

This looks really interesting...but why WASM-only? Naively it seems like WASM-ification would be a 2nd step, after lib-ification.

Obviously missing something...

OvbiousError 8 hours ago | parent | next [-]

If I understand correctly, what this project does is take the actual postgresql sources, which are written in C, compile them to wasm and provide typescript wrappers. So you need the wasm to be able to use the C code from js/ts.

mpweiher 7 hours ago | parent [-]

Yes. I would like to use the code as a library from something other than js/ts.

mirrir 3 hours ago | parent | next [-]

You can use it in Rust if you like. I've used pglite through wasmer before. Also [pglite-oxide](https://lib.rs/crates/pglite-oxide) is pretty usable.

embedding-shape 3 hours ago | parent | prev | next [-]

Sounds you only need to create the APIs for calling into WASM if so, so as long as your language of choice can do that, you're good to go.

monster_truck 6 hours ago | parent | prev [-]

So compile it and use it?

intrasight 8 hours ago | parent | prev | next [-]

WASM means you only need to develop for one target run time. That's my guess as to why.

saurik 7 hours ago | parent | prev [-]

Yeah... I was super excited by this project when it was first announced--and would even use it from Wasm--but since it ONLY works in Wasm, that seemed way too niche.