Re:Alan Kay: Smalltalk is not about objects, it’s about mess...
by bsaul on Monday December 23, 2019 @03:54AM
(#21862317)
I see many challenges :
- not all states transitions need to be durable. If performance matters you’ll have to get your actors to call something like a « saveState » from time to time, otherwise every single property change is going to have an overhead in terms of performance.
- what does « durable » mean ? Surely, just having the state of an actor saved in the memory of the supervisor isn’t enough. If the two are on the same server and the server shuts down, it’s game over. You need a « persistence » service / actor, but that thing is going to have to persist the state of all the actors in your system. I don’t see how that can work if you’ve got millions of actors running in parallel.
Re:Alan Kay: Smalltalk is not about objects, it’s about mess...
by ProfHewitt on Tuesday December 24, 2019 @04:11PM
(#21874935)
Durability is a matter of degree. Lowest is to record in RAM. Next is persistent local storage. After that comes storage on other machines.
The key insight is that an actor is a tiny VM and you just need to make the VM state durable.