4 ms·
This works for erlang 'cuz it's functional. Not gunna work for something like Go. Something like ARC would work for Go though (right?), & I agree it's a really
by dilap 11y ago
This works for erlang 'cuz it's functional. Not gunna work for something like Go.
Something like ARC would work for Go though (right?), & I agree it's a really nice approach, and I don't really get why it's not more widely used.
- vezzy-fnord 11y agoIt 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.