News for hackers. Stuff that matters.
Re:Lovely Week with Elixir by overkalix on Wednesday May 20, 2020 @05:39PM (#23252144)
Isn't that the basis/point of the actor model? Actors can message each other and processing the message can trigger state mutation of the recipient, but they can't directly mutate each other.
Re:Lovely Week with Elixir by lpil on Wednesday May 20, 2020 @05:43PM (#23252209)
All data is immutable on the BEAM with a few exceptions, so no mutation within actors.
Re:Lovely Week with Elixir by dnautics on Wednesday May 20, 2020 @08:34PM (#23253654)
No, that's not true. Actors in elixir/erlang mutate their state through tail call recursion through the loop function.
Re:Lovely Week with Elixir by lpil on Thursday May 21, 2020 @04:59AM (#23256265)
I said data is immutable on the BEAM, actors can update their state.