Re:SQLite in the browser with WASM/JS - OFFICIAL
by wruza on Friday October 28, 2022 @08:12PM
(#33379623)
It’s an ubiquitous need for any app that has a dynamic collection view. You can’t take all sites, see that 99% of them are static documents developed as degenerate apps and then conclude that “most apps” have no reason to use it. It’s like saying that most cats are on jpegs, so cat food is kind of a niche thing for a cat owner.
Re:SQLite in the browser with WASM/JS - OFFICIAL
by Beltalowda on Friday October 28, 2022 @09:46PM
(#33380162)
> “most apps”
Please do not put words in quotes as if I said them when, in fact, I did not. Thank you.
Re:SQLite in the browser with WASM/JS - OFFICIAL
by wruza on Saturday October 29, 2022 @05:04AM
(#33382299)
What would that trivial correction change, in your opinion?
Re:SQLite in the browser with WASM/JS - OFFICIAL
by ilyt on Friday October 28, 2022 @11:15PM
(#33380644)
> I don't really see the problem with that. Looking at the sql.js demo[1] the WASM binary is 610K (305K compressed/transferred), and it seems to run pretty fast even on my slow laptop.
...and that is small by your standards ?
Re:SQLite in the browser with WASM/JS - OFFICIAL
by Beltalowda on Saturday October 29, 2022 @11:29AM
(#33384879)
It's not small; it's also not huge. For the type of website that has use for this it's not really all that much.
Re:SQLite in the browser with WASM/JS - OFFICIAL
by sgbeal on Saturday October 29, 2022 @12:53AM
(#33381095)
> Most websites have no reason to use it; simple key/value localStorage is enough for many sites or apps that need some sort of storage.
In case you hadn't noticed it, the new sqlite features include using localStorage and sessionStorage as db backend storage :).
I don't really see the problem with that. Looking at the sql.js demo[1] the WASM binary is 610K (305K compressed/transferred), and it seems to run pretty fast even on my slow laptop.
> Maybe if half the sites on the web start using it
Most websites have no reason to use it; simple key/value localStorage is enough for many sites or apps that need some sort of storage. It's kind of a niche thing. Many regular desktop applications have no need SQLite, either.