199 points · by sea6ear · 11y ago · 55 comments
I've no doubt it will be a hit, thank you very much for taking the time to create this.
http://www.brianbondy.com/blog/168/sql-on-khan-academy-enabl...
https://www.khanacademy.org/computing/computer-programming/s...
1. Not API compatible with node-sqlite3, so you can't just drop it in and use it with knex or other wrappers.
2. Doesn't support in-place editing of a db. You have to load the entire DB into memory, modify it, and then save it back, making it unsuitable for any concurrent application.
I love the idea of the project though, and it would be awesome not to have to deal with compiling sqlite or using node-pregyp to build embedded chromium apps.
I wonder why that is. Is it just a fuction they simply didn't create a binding for? Or is it some performance concern?
https://hacks.mozilla.org/2010/06/beyond-html5-database-apis...
The perf works would remain to be done, though, after the whole thing is made to work.
"Few people will use a Rust library because they'd need a Rust compiler" doesn't make sense to me, because odds are good that the Rust compiler can target the platform you used to post this comment.
---
Now this is really, completely OT, but since you seem to be an expert with Lightroom catalogs, I wonder if you would know the answer to the following problem.
I had been using Lightroom 3 for a very long time, with newer cameras the RAWs of which it couldn't read, so I converted the RAW files to DNG using the Adobe utility. This was fine but used double disk space.
Now I finally upgraded Lightroom; I still have the original RAW files and was wondering if I could somehow replace the pointers to the DNGs with the original RAWs in the .lrcat catalog file; would that work, or completely break everything? (The point being, to get rid of the DNG files on disk).
If you just want a single file, you can bundle all the assets into one and emit some metadata so you know where each file starts and ends. Emscripten's file packager does this, for example.