3 ms·
> they're essentially sharing data by copying the data. No. Go only copies the immediate values, if you send a pointer the pointee is shared for instance. Go's
by masklinn 13y ago
> they're essentially sharing data by copying the data.
No. Go only copies the immediate values, if you send a pointer the pointee is shared for instance. Go's concurrency is shared-memory.
Erlang copies (almost[0]) the data sent between processes, and has process-local heaps.
[0] binaries above 64 bytes (IIRC) are refcounted and shared.