Chronolog is a programmable, distributed state machine for arbitrary deterministic state reducers, including (deterministic) SQLite or git -- and you can probably play Doom on it as well.
Within Chronolog state you can store arbitrary programs and you can define reducer rules as well as rules for how to change the reducer rules -- (including things like setting what can't be changed).
Right now it's an NPM package and it is targeted mainly at decentralized applications that want to share a database, want to encrypt their data selectively, and want to share application code asking with their data.
It includes some affordances, such as pre- and post-conditions, in the SQLite version that it has, to make it easy to handle the fact that your transaction might be in a race condition with another transaction. (Which is the main catch -- we're consistent but uncertain that our transaction will apply -- unless we use a concept of finality which is supported in extensions).
The approach goes back to Martin Kleppmann's undo-do-redo method for making CRDTs for data structures that don't naturally want to commute. -- just applied to arbitrary fold computation.
I would love to see if anybody likes this. It feels like a really malleable, interesting primitive to me!
werg•11m ago
Within Chronolog state you can store arbitrary programs and you can define reducer rules as well as rules for how to change the reducer rules -- (including things like setting what can't be changed).
Right now it's an NPM package and it is targeted mainly at decentralized applications that want to share a database, want to encrypt their data selectively, and want to share application code asking with their data.
It includes some affordances, such as pre- and post-conditions, in the SQLite version that it has, to make it easy to handle the fact that your transaction might be in a race condition with another transaction. (Which is the main catch -- we're consistent but uncertain that our transaction will apply -- unless we use a concept of finality which is supported in extensions).
The approach goes back to Martin Kleppmann's undo-do-redo method for making CRDTs for data structures that don't naturally want to commute. -- just applied to arbitrary fold computation.
I would love to see if anybody likes this. It feels like a really malleable, interesting primitive to me!