> Hmm, makes me wonder if this data structure would also support CRDTs. Collaborative editing is a nice thing to be able to support.
Text CRDTs are not very difficult, but representing an AST as a CRDT is an open problem. See [1]. There has thankfully been some progress from HN's own dmulligan, see [2].
[1]: https://writer.zohopublic.com/writer/published/grcwy5c699d67...