-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Goal: Only build the "world state" once, run both methods on it so that IO is performed only once. I could even run both concurrently I suppose.
Use a Protocol or something where each day has to implement before/1 and p1/1 and p2/1. Running the day/0 method would run the before/1 and then run p1/1 and p2/2 on the state object that is resulting?
I could also consider using an Agent or GenServer to hold the world state? Interesting… I suppose if I can think in a concurrent model that would work. Maybe some simulation where each cell only needs to be aware of its neighbors?
Metadata
Metadata
Assignees
Labels
No labels