I’m quite liking how minimal Gleam’s gleam/otp/actor
is. Having a single function that returns a Continue
or Stop
tuple clearly reveals how keeping state is just a loop in a process.
https://github.com/jeffkreeftmeijer/shine/blob/stats/src/shine/reporter.gleam