SQL.js: SQLite Compiled to JavaScript via Emscripten
badassjs.com
badassjs.com
>sql.js is a port of SQLite to JavaScript, by compiling the SQLite C code with Emscripten.
sql.js itself is 1 line of (incomprehensible) code, 907kB in size.
Uh, wow.
It would be interesting to see the performance of Emscripten SQLite.
Can node.js and the V8 engine itself be compiled to JS? Could be interesting for sandboxing.
That way if you have some new type of architecture that's not supported by SQLite, but you do have a JavaScript VM available you could really easily whip up an SQLite based app without going to the trouble of porting SQLite itself.
If you're running Windows and can't compile the existing driver.
I'm guessing this is in memory, the main purpose would be for you to use sqlite in the browser since node already has a sqlite driver, as such, IO blocking is not an issue because there is no IO, it can block the same way that cpu intensive code can block however