dotJS 2019 - James Long - CRDTs for Mortals
Channel:dotconferences · Length:20:44 · Published:2020-01-09 · Views:17907
Summary
James Long's dotJS 2019 talk on how CRDTs enable local-first apps and how simple they can be to implement. He shows how to use them to build robust offline-capable frontends.
Why HN recommends it
Recommended as an approachable introduction to CRDTs and the local-first idea behind apps like Actual.
the same one who made a great talk on using CRDTs called CRDTs for Mortals — HN, 2023
Web development · Distributed systems · Algorithms & data structures
Subtitles (excerpt)
yeah [Applause] [Music] so I'm gonna start with a question why haven't offline first apps taken off the big problem with the web is that it does not work offline and even if you are online if you're on a slow internet connection your app feels terrible that sucks take a step back that seems like a really big limitation of writing apps so there's this idea where you write apps that are that work offline by taking offline into consideration from the very beginning and what where that really leads to is basically just writing a full local app so the entire apps code and the entire and all your data is completely local that's really what it leads to you because to work on flying and to boot it up offline you kind of just have to do that so it's a complete reaaahhr texture and personally I actually like the term local first apps better so the main problem why I think they haven't taken off because syncing is very very hard and if you're a full local app you have to deal with syncing where if you have these apps across devices then you have to sync your data across the devices and turns out this is actually super super hard you cannot just queue up changes into an array when you are offline and then when you come back on online
On Hacker News
Worth noting that the author, James Long, is the same one who made a great talk on using CRDTs called CRDTs for Mortals [0], and he uses them in Actual as well. He was a great source of inspiration when I was looking into using them for my offline-first, local-first apps [1]. [0] [VIDEO] [1] [LINK] — satvikpendem, 2023-10
We are in the same need right now. Something that we have researched and think it has a lot of potential, at least for us is James Long sync implementation. You can check out his talks and demos at: * [LINK] * [VIDEO] And his demo implementation (and annotated fork): * [LINK] * htps://github.com/clintharris/crdt-example-app_annotated/blob/master/NOTES.md I wonder why there isn't some open source … — azteceagle, 2021-10
Yeah. The trick to managing the offline states is to have it as cache. So updating and solely relying on the server, and only serve when offline. On the interactivity side, I feel that a lot of tools that I use daily justifies the use of SPA/PWA. Definitely can be passable with HTML SSR, but there's not much examples of it yet. Todoist: No hassle offline handling. It will sync on it's own. Twitte… — raihansaputra, 2020-12
The author has a conference talk talking about CRDT and the timestamp technique he uses. Really useful if anyone else wonders what's the problem with wall clock timestamps. dotJS 2019 - James Long - CRDTs for Mortals (20:44): [VIDEO] EDIT: btw, out of all the comments on the timestamp here, seems like only yours is not complaining about the format, and even points out that the article did not go … — raihansaputra, 2020-06
Based on the author's talk [0], looks like it's grow-only sets. I haven't looked at the code though so it might have changed since he gave that talk in 2019. [0] [VIDEO] — satvikpendem, 2023-10
Related videos
- Before Flutter | Rubber Duck Engineering | Episode #100 · RubberDuckEng · 1:10:00
- Designing the Ideal Bootstrapped Business with Jason Cohen · Rob Walling · 1:05:37
- The Strange Math That Predicts (Almost) Anything · Veritasium · 32:32
- How to Build a Startup Without Funding by Pieter Levels @ Dojo Bali · @levelsio · 1:00:00
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- Erlang Factory 2014 - That's 'Billion' with a 'B': Scaling to the Next Level at WhatsApp · Erlang Solutions · 49:15
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- "Turning the database inside out with Apache Samza" by Martin Kleppmann · Strange Loop Conference · 47:42
- The Fast Fourier Transform (FFT): Most Ingenious Algorithm Ever? · Reducible · 28:23
- Modern Dictionaries by Raymond Hettinger · SF Python · 1:07:41