3 ms·
Messages are deep-copied in Erlang. There are other techniques possible such as uniqueness types, which allow "transfer of ownership", Rust uses those but Erlan
by JulianMorrison 13y ago
Messages are deep-copied in Erlang. There are other techniques possible such as uniqueness types, which allow "transfer of ownership", Rust uses those but Erlang does not.
- lpgauth 13y agoThat's not exactly true... in Erlang, any binary with size > 64 bytes will not be copied. Instead a pointer to a shared memory area will be passed.
- cpeterso 13y agoIf pointers are sent between Erlang processes, how does the per-process GC work without stopping the world?
- JulianMorrison 13y agoBig binaries (which yeah, I forgot about) live off to the side and are not GC'd. They're ref counted.