garrison
Elixir's Immutability is Not Magic
Still trying to write shorter posts. Did better this time. Most here probably know this stuff but it’s still good to write things like this down.
Most Liked
Asd
Good post. One thing I noted is that persistent_term copy on write is the least problem of writing. Rewriting or deleting an entry in persistent_term triggers global garbage collection (global as in “in every process”). Since the data is not copied on read, processes store pointers to this data directly, not in their heap, but in this persistent_term storage. So when you change the entry, each process needs to copy the old value from the persistent term into their heap and replace the pointer to the heap one.
adamu
My experience reading this was:
Beginning: haha cute, this is aimed at newbies.
End: oh, really? I need to do more reading.
Popular in Blog Posts
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









