SaaSHub helps you find the best software and product alternatives Learn more →
rrb-tree Open-Source Projects
-
immer
Postmodern immutable and persistent data structures for C++ — value semantics at scale (by arximboldi)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I've been working on an editor (not text) in C++ and pretty early got into undo/redo. I went down the route of doIt/undoIt for commands but that quickly got old. There was both the extra work needed to implement undo separately for every operation, but also the nagging feeling that the undo operation for some operation wasn't implemented correctly.
In the end, I switched to representing the entire document state using persistent data structures (using the immer library). This vastly simplified things and implementing undo/redo becomes absolutely trivial when using persistent data structures. It's probably not something that is suitable for all domains, but worth checking out.
https://github.com/arximboldi/immer
rrb-tree related posts
-
Text Editor Data Structures: Rethinking Undo
-
Show HN: A hash array-mapped trie implementation in C
-
value semantics and spans/views
-
Purely Functional Data Structure by Chris Okasaki [pdf]
-
Persistent and immutable data structures written in C++14
-
What are some architectural patterns for creating a game editor.
-
TypeScript Without Side Effects
-
A note from our sponsor - SaaSHub
www.saashub.com | 2 May 2024
Index
Sponsored