4 ms·
SQLite was one of the first large C code bases to be ported to the web. Alon Zakai (@kripken, the creator of emscripten), made the first commit to sql.js at the
by lovasoa 4y ago
SQLite was one of the first large C code bases to be ported to the web. Alon Zakai (@kripken, the creator of emscripten), made the first commit to sql.js at the start of 2012 [0]. I got involved two years later, and have been maintaining sql.js since. A lot was added since 2012, but the initial core api with 3 functions 'open', 'exec', and 'close' still works today.
https://github.com/kripken/sql.js/commit/cebd80648dbd369b34804c5a00b4d0bddc1cbf05 https://github.com/kripken/sql.js/commit/cebd80648dbd369b348...
- sgbeal 4y ago> SQLite was one of the first large C code bases to be ported to the web. Thank you very much for that info. i'll update the sqlite wasm docs with that. Edit: updated, thank you! <https://sqlite.org/wasm/info/cacc33abc5d9013f https://sqlite.org/wasm/info/cacc33abc5d9013f>
- lovasoa 4y ago> Folks have been building sqlite3 for WASM since as far back as 2012 for *the web*, not for WASM. SQLite was initially compiled to simple javascript, then to asm.js when it appeared, then to WASM when it replaced asm.js :) The sql.js project is older than the idea of WASM itself. And I like to think it contributed to showing the potential of compiling native code to the browser, and in the creation of the WASM standard.
- sgbeal 4y ago> for the web, not for WASM. Docs have been updated. Thank you for the feedback! Edit: for future feedback (from anyone reading this) i can be reached via stephan at sqlite org. i'm unlikely to catch most doc feedback posted to HN.