3 ms·
That adds extra unnecessary complexity. The code is written in C. There are C compilers for all CPUs. So just call the C code from <other language that's not JS
by dboreham 11mo ago
That adds extra unnecessary complexity. The code is written in C. There are C compilers for all CPUs. So just call the C code from <other language that's not JS>.
- hombre_fatal 11mo agoWell, a project has scope. Looking at the repo, it started as postgres-in-the-browser. An abstract interface with C and wasm as targets is just more scope. But it looks like the hard part of patching postgres to librar-ify it is already done agnostically in C. So you just need to ctrl-f for "#if defined(__EMSCRIPTEN__)" to impl those else branches and port the emmake file to make.