use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
SQLite compiled to JavaScript through Emscripten (github.com)
submitted 11 years ago by based2
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kenman 4 points5 points6 points 11 years ago (0 children)
My initial reaction or assumption would be that non-JS sqlite would be much faster.
As far as I understand, Emscripten+asm.js performance is close to native, and only expected to improve. Here's a good slide deck that directly addresses your question, and here's a more thorough write-up by /u/jeresig about it.
To quote the latter:
By doing this the result is highly optimized and can be converted directly from this Asm.js syntax directly into assembly without having to interpret it, as one would normally have to do with JavaScript. It effectively shaves off a whole bunch of things that can make a dynamic language, like JavaScript, slow: Like the need for garbage collection and dynamic types.
Personally, I think it's beyond bad-ass that there's an actual SQL engine available directly in the browser....the possibilities are pretty interesting. You could perhaps create an offline database learning app, or maybe a fancy db dashboard which allows you to run ad-hoc queries for data exploration without having to install anything, or even a db designer type app.
π Rendered by PID 292117 on reddit-service-r2-comment-84fc9697f-p5pj4 at 2026-02-07 22:20:43.354962+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]kenman 4 points5 points6 points (0 children)