Comment by stuartaxelowen
2 days ago
My dream is, instead of separating data storage, state machines, valid state constraints, and the logic that transitions between valid states, we can actually unify these into some kernel of app state. Honestly, Postgres already has a lot of these capabilities, but I don’t see an obvious story on the app or product level, providing provably correct sets of states that apps can transition between, and which they can automatically expose to clients in informative ways (this user can like this post, but not edit). It looks colored Petri net shaped to me, but I don’t yet see a simple app state paradigm in the same way that the database has obvious successful boundaries.
This has been tried, but thousand-line stored procedures are truly a nightmare.
was it due to the language expressiveness forcing too much verbosity ? (honest question)
lack of version control, clunky language mechanics, performance issues, etc.
5 replies →
Temporal.io comes kind of close to this with the ability to do queries, signals, and updates. I'm not sure it's a full unification though.
this sounds like convex.dev or https://spacetimedb.com/ (full disclosure I don't use either)