News for hackers. Stuff that matters.
Re:Lovely Week with Elixir by ninjakeyboard on Wednesday May 20, 2020 @05:18PM (#23251915)
"I think there's a sweet spot for a language that accepts mutability inside of actors, but only allows immutable objects to be sent as messages, with an escape hatch available if needed."

That's kind of what akka is on scala or java. Messages are immutable _BY CONVENTION_ but you can do whatever you want.

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.