You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
andp1/1
andp2/1
. Running theday/0
method would run thebefore/1
and then runp1/1
andp2/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?
The text was updated successfully, but these errors were encountered: