TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

CRDTs and Collaborative Playground

111 点作者 emreb5 个月前

3 条评论

paulgb5 个月前
Great write-up!<p>&gt; If we extend it further with a fairly simple distributed mutex mechanism, we can now persist and share state across any service which can access the Redis instance!<p>I’m curious to hear more about the approach you took here. Does the first server to open the document hold the mutex, or do servers only hold the mutex when briefly while they persist data?<p>(I’ll also shamelessly plug Y-Sweet, an open source Yjs server with persistence that I contribute to <a href="https:&#x2F;&#x2F;github.com&#x2F;jamsocket&#x2F;y-sweet">https:&#x2F;&#x2F;github.com&#x2F;jamsocket&#x2F;y-sweet</a>)
评论 #42448725 未加载
thoughtlede5 个月前
&gt; Beyond this, if you want to determine causality, e.g. whether events are &quot;causally related&quot; (happened before or after each other) or are &quot;concurrent&quot; (entirely independent of), you can look at Vector Clocks—I won&#x27;t go down that rabbit-hole here, though.<p>If anyone want to go down that rabbit hole: <a href="https:&#x2F;&#x2F;www.exhypothesi.com&#x2F;clocks-and-causality&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.exhypothesi.com&#x2F;clocks-and-causality&#x2F;</a>
评论 #42451482 未加载
oDot5 个月前
I&#x27;ll add Loro[0] to the author&#x27;s list. While I utilise Yjs heavily for another project, Loro is fairly featureful and so I picked it to build a screenplay editor[1], which requires things like Peritext or tree structures. It&#x27;s fairly young, though.<p>I&#x27;ll also commend the author&#x27;s attempt at DIY! Even if your case does not require a custom solution, it&#x27;s healthy to understand how your tools work.<p>[0] <a href="https:&#x2F;&#x2F;loro.dev" rel="nofollow">https:&#x2F;&#x2F;loro.dev</a><p>[1] <a href="https:&#x2F;&#x2F;www.weedonandscott.com&#x2F;tech&#x2F;project-realm" rel="nofollow">https:&#x2F;&#x2F;www.weedonandscott.com&#x2F;tech&#x2F;project-realm</a>
评论 #42463703 未加载
评论 #42451475 未加载