News for hackers. Stuff that matters.
Re:Show HN: ElectricSQL, Postgres to SQLite active-active sy... by mjadobson on Wednesday September 20, 2023 @12:57PM (#37586643)
I am fully on the offline-first bandwagon after starting to use cr-sqlite (https://vlcn.io), which works similar to ElectricSQL.

I thought the bundle size of wasm-sqlite would be prohibitive, but it's surprisingly quick to download and boot. Reducing network reliance solves so many problems and corner-cases in my web app. Having access to local data makes everything very snappy too - the user experience is much better. Even if the user's offline data is wiped by the browser (offline storage limits are a bit of a minefield), it is straightforward to get all synced changes back from the server.

Re:Show HN: ElectricSQL, Postgres to SQLite active-active sy... by tantaman on Wednesday September 20, 2023 @03:42PM (#37589052)
Yeah, 1mb of WASM != 1mb of JS.

WASM is much faster to start up since you don't have all the parsing and compiling overhead.