3 ms·
It works for Erlang because of its process model. I don't think it has anything to do with it being functional.
by vezzy-fnord 11y ago
It works for Erlang because of its process model. I don't think it has anything to do with it being functional.
- dilap 11y agoYup, you're right. I just meant that to have a program composed of many processes that can be stopped & collected independently, those processes have to communicate 'functionally', i.e., without shared mutable memory. (So this isn't a viable approach for languages like Go where all the goroutines share memory.)
- masklinn 11y ago> So this isn't a viable approach for languages like Go where all the goroutines share memory. Something Go has been criticised for since it was originally unveiled back in 2009.
- chaotic-good 11y agoIn erlang old data structures can't reference new data. This simplifies GC a lot.
- vezzy-fnord 11y agoImmutability is orthogonal to FP as a whole.