Re:Hosting SQLite Databases on GitHub Pages
by doliveira on Wednesday October 12, 2022 @08:12PM
(#33185514)
Which was the right choice, web standards shouldn't be tied to a single project.
[ Parent
| on HN ]
Re:Hosting SQLite Databases on GitHub Pages
by brigandish on Thursday October 13, 2022 @09:49AM
(#33190896)
It's an open source project, they could've forked it and got their wish to keep the API unaffected by any changes to SQLite. This blog post[1], this amazing blog post gives us all the insight needed to know this was going to go badly. The bit about whiteboarding a replacement, is that better or worse than believing Javascript is really a replacement for SQL? Or that IndexedDB is somehow elegant? I can't tell, the whole thing makes me cringe.
[1] https://hacks.mozilla.org/2010/06/beyond-html5-database-apis...
Re:Hosting SQLite Databases on GitHub Pages
by simula67 on Thursday October 13, 2022 @01:13AM
(#33187505)
Usually standards will have holes. Therefore, it is necessary to ask: what happens when a competing standard notices a hole in the current standard? In this case, it is better to have a reference implementation, matching which, the competing implementation should have programs that depend on the standard to continue to work.
Therefore, tying a standard to a reference implementation, especially one as reputed as SQLite, might not have been a bad outcome overall.
Re:Hosting SQLite Databases on GitHub Pages
by LAC-Tech on Wednesday October 12, 2022 @09:42PM
(#33186168)
Making a standard for WebSQL would have been the path of least resistance.
Re:Hosting SQLite Databases on GitHub Pages
by matharmin on Thursday October 13, 2022 @04:52AM
(#33188733)
SQLite is a massive library, with a lot of functionality and optional extensions, and behaviour is added or changed over versions. Codifying all the behaviour into a standard would be a massive effort. And then you're either stuck on that version of SQLite, or your standard depends on what an external project is doing with new releases - which is really not what you want for a web standard.
Alternatively, you need to pick a small stable subset of SQLite functionality to expose. But that would mean you can't just use plain SQLite anymore - you either need to modify it significantly, or need to wrap it somehow. Which either way adds a lot of overhead again.