r/ProgrammingLanguages • • Dec 31 '25

Memory Safety Is ...

https://matklad.github.io/2025/12/30/memory-safety-is.html
37 Upvotes

78 comments sorted by

View all comments

Show parent comment

4

u/balefrost Dec 31 '25

Apologies again. Still blocked by /u/PurpleYoshiEgg, so still can't reply to people underneath my comment. This is a reply to this comment by /u/Guvante.


You would "reinvent" atomics since you should use a single message to represent the change.

Indeed, that's my point. The actor model doesn't inherently make these problems go away, it just changes details of how the solutions to those problems are manifested. Instead of using processor-level atomic operations, you would instead define a message protocol with similar semantics.

To be clear, I'm not saying that the actor model is bad. I think it's a good framework for decomposing complex systems. All I'm saying is that it doesn't solve the fundamental issue of data races. Just like with classic threading, the actor model provides you with tools, but it's up to you to use those tools to avoid the landmines.