cr-sqlite
linux-surface
cr-sqlite | linux-surface | |
---|---|---|
28 | 481 | |
2,434 | 4,485 | |
3.2% | 2.3% | |
9.6 | 9.1 | |
8 days ago | 3 days ago | |
Rust | Shell | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cr-sqlite
-
Show HN: RemoteStorage – sync localStorage across devices and browsers
I'm a happy user of https://github.com/vlcn-io/cr-sqlite/
-
Marmot: Multi-writer distributed SQLite based on NATS
If you're interested in this, here are some related projects that all take slightly different approaches:
- LiteSync directly competes with Marmot and supports DDL sync, but is closed source commercial (similar to SQLite EE): https://litesync.io
- dqlite is Canonical's distributed SQLite that depends on c-raft and kernel-level async I/O: https://dqlite.io
- cr-sqlite is a Rust-based loadable extension that adds CRDT changeset generation and reconciliation to SQLite: https://github.com/vlcn-io/cr-sqlite
Slightly related but not really (no multi writer, no C-level SQLite API or other restrictions):
- comdb2 (Bloombergs multi-homed RDMS using SQLite as the frontend)
- rqlite: RDMS with HTTP API and SQLite as the storage engine, used for replication and strong consistency (does not scale writes)
- litestream/LiteFS: disaster recovery replication
- liteserver: active read-only replication (predecessor of LiteSync)
-
Offline eventually consistent synchronization using CRDTS
Theory is great, but how can we apply this in practice? Instead of starting from 0, and writing a CRDT, let's try and leverage an existing project to do the heavy lifting. My choice is crSQLITE, an extension for SQLite to support CRDT merging of databases. Under the hood, the extension creates tables to track changes and allow inserting into an event log for merging states of separated peers.
-
Local-first software: You own your data, in spite of the cloud (2019)
Also https://github.com/vlcn-io/cr-sqlite/ which is SQLite + CRDTs
Runs/syncs to the browser too which is just lovely.
-
I'm All-In on Server-Side SQLite
If you need multiple writers and can handle eventual correctness, you should really be using cr-sqlite[1]. It'll allow you to have any number of workers/clients that can write locally within the same process (so no network overhead) but still guarantee converge to the same state.
[1] https://github.com/vlcn-io/cr-sqlite
-
Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
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.
-
Launch HN: Tiptap (YC S23) – Toolkit for developing collaborative editors
I didn't know that. Especially the first approach sounds interesting to me, because as far as I know the transactions of Yjs seem to be a problem on heavily changing documents. https://github.com/vlcn-io/cr-sqlite#approach-1-history-free... Thanks!
- Scaling Linear's Sync Engine
-
Mycelite: SQLite extension to synchronize changes across SQLite instances
I wonder how this compares to https://vlcn.io?
-
Ask HN: Incremental View Maintenance for SQLite?
The short ask: Anyone know of any projects that bring incremental view maintenance to SQLite?
The why:
Applications are usually read heavy. It is a sad state of affairs that, for these kinds of apps, we don't put more work on the write path to allow reads to benefit.
Would the whole No-SQL movement ever even have been a thing if relational databases had great support for materialized views that updated incrementally? I'd like to think not.
And more context:
I'm working to push the state of "functional relational programming" [1], [2] further forward. Materialized views with incremental updates are key to this. Bringing them to SQLite so they can be leveraged one the frontend would solve this whole quagmire of "state management libraries." I've been solving the data-sync problem in SQLite (https://vlcn.io/) and this piece is one of the next logical steps.
If nobody knows of an existing solution, would love to collaborate with someone on creating it.
[1] - https://github.com/papers-we-love/papers-we-love/blob/main/design/out-of-the-tar-pit.pdf
linux-surface
- Linux Kernel for Surface Devices
-
Notes on My Remarkable Tablet
Apart from camera, almost everything is working correctly. Camera doesn't work at all.
https://github.com/linux-surface/linux-surface
I use this kernel, you can use this with most operating systems.
I use xournal++ for note writing, and using GNOME is necessary. KDE doesn't have support for screen rotation etc. When you use GNOME, make sure to disable gestures and screen edge detection, because that might occasionally cause problems.
So, the workflow is quite simple with xournal++, you run a `inotify` based watched which automatically compiles and pushes stuff on every save. I of course assume that only `xournal++` on tab can change those handwritten notes. You can get some fancier git logic if needed.
```
while inotifywait -e modify,create,delete,move $INPUT;
-
Microsoft's next Surface laptops will reportedly be its first true 'AI PCs'
There's support for Linux on the Surface range:
https://github.com/linux-surface/linux-surface/wiki/Supporte...
But actual users seem to say it's a bit of a mixed bag.
If someone's looking for a laptop (that doesn't need touchscreen support), then Apple laptops are probably the better choice.
- Trying out the thermald configuration for the Surface Laptop Go 2 on the Surface Laptop Go 1
-
Surface Pro 2017 didn't boot USB flash drive(s) and system
How to get out of this situation? Links https://github.com/linux-surface/linux-surface/issues/1240 - the same problem as I have and the same puncture, but the person managed to get out of the situation https://www.reddit.com/r/SurfaceLinux/comments/16d40vs/kill_my_surface_pro_2017_need_help/ - my similar post in a nearby subreddit, but since I'm here, the problem turned out to be bigger than I thought
-
Giving up the iPad-only travel dream
https://github.com/linux-surface/linux-surface
Should have you covered.
I went the 12” MacBook route which can also install Linux.
-
New Linux Tablet from Star Labs
I have a surface with Ubuntu and the Surface Kernel (https://github.com/linux-surface/linux-surface) , and it works really wonderfully. I will say, before installing the Surface Kernel, it was very janky.
-
Linux distribution on Surface Laptop?
I know about https://github.com/linux-surface/linux-surface but I'm looking for practical feedback from people who did the operation in order to orient my choice.
- Status of the surface laptop 5
What are some alternatives?
electric - Local-first sync layer for web and mobile apps. Build reactive, realtime, local-first apps directly on Postgres.
iptsd - Userspace daemon for Intel Precise Touch & Stylus
marmot - A distributed SQLite replicator built on top of NATS
surface-uefi-firmware - UEFI firmware updates for surface using fwupd. WIP, be careful.
vlcn-orm - Develop with your data model anywhere. Query and load data reactively. Replicate between peers without a central server.
libwacom-surface - Patches to support Microsoft Surface Devices with `libwacom`.
edgedb-go - The official Go client library for EdgeDB
void-packages - The Void source packages collection
imdbench - IMDBench — Realistic ORM benchmarking
TLP - TLP - Optimize Linux Laptop Battery Life
edgedb-cli - The EdgeDB CLI
Linux-Surface-Wizard - Quickly get your Surface device running Debian/Arch/Fedora distros in a working state.