I have been playing with a concept of Actor driven systems. Each actor gets a curio Queue for receiving messages, and runs CPU bound operations using the process or thread executors. This creates a rather handy detachment meaning that state even sent isn’t shared when using the process executor.
Firstly, would it be possible for curio to pre-spin some processes ahead of time to cut down on the cost of spawning one at call time.
Secondly, is a system such as this practical?
Is some example code I have been toying with.
Any and all input will be greatly noted.