News for hackers. Stuff that matters.
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by webmobdev on Sunday September 20, 2020 @12:29PM (#24534939)
If everything you said is accurate, somebody should make another pitch for WebSQL ( https://en.wikipedia.org/wiki/Web_SQL_Database ) with a custom version of DuckDb!

Every browser maker was interested in implementing it but the W3C couldn't go ahead with it because everyone chose to implement it using SQLite, where as W3C required more than one db back-end implementation to move forward.

Re:DuckDB – An embeddable SQL database like SQLite, but supp... by wffurr on Sunday September 20, 2020 @12:42PM (#24535033)
Having sqlite included in all browsers with standard bindings would have been great.
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by jansommer on Sunday September 20, 2020 @02:02PM (#24535846)
It would! But it would also be a security nightmare. Exploit SQLite and you could use it in Safari, Chrome and Firefox - everybody could be affected.
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by andyfleming on Sunday September 20, 2020 @02:24PM (#24536046)
How would that be different from someone editing something in window.localStorage?
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by jansommer on Sunday September 20, 2020 @02:48PM (#24536284)
If that's all you need, it wouldn't make sense to include SQLite in the browser. If you're going to include a relational database you might as well use it
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by CRConrad on Sunday September 20, 2020 @03:58PM (#24536887)
I think that meant: How would that be more of a security nightmare than some malicious site editing your browser's whatever.localstorage?
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by hajile on Monday September 21, 2020 @09:20AM (#24543009)
Ironically, all the IndexDB implementations were just thin layers on top of sqlite last I checked.
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by WorldMaker on Monday September 21, 2020 @05:52PM (#24548864)
The original slow IndexedDB implementations were done that way, but my understanding is that anything fast and "modern" probably isn't in 2020 as most of the browsers moved to their own IndexedDB storage implementations that are not SQLite-based. IndexedDB has very different expected performance characteristics than a pure relational DB (as it is a key/value store with indexes closer to most "NoSQL" DBs than to SQLite) and it did not (and does not) make long term sense to use SQLite below the hood.
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by afiori on Monday September 21, 2020 @05:01AM (#24541233)
This could work if there is a subset of SQL where duckDB and SQLite behave almost identically
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by webmobdev on Tuesday September 22, 2020 @07:17PM (#24561153)
I often wondered why someone didn't do it with BerkleyDb too? I know Oracle owns it, but it is open source and someone like Mozilla could have implemented it in their browser just to get the W3C rolling on WebSQL.
Re:DuckDB – An embeddable SQL database like SQLite, but supp... by afiori on Wednesday September 23, 2020 @01:23AM (#24563277)
The problem with WebSQL would remain the same, it would be necessary to specify a subset of SQL as a web standard.