by lawl · 5y ago · 0 comments
I don't consider pointers and mutability to be features, but I consider immutability and trying to hide pointers a feature. One that I don't want. Allocating too much/too often has been like 95% of the performance issues i had.
Computers use pointers and data in ram is mutable. How is pretending that's not the case removing a feature? It's the exact opposite. One of the reasons I like go is that I can have some control over memory when necessary. But most of the time I don't need to think about it unless the profiler tells me that's where the bottleneck is.
Small edit to not be so negative: The language looks interesting and I think it's well presented. Just not for me, and that above irked me in particular.
An algorithm written for such an abstraction is also much more easily adapted to work across multiple machines (e.g. map-reduce).
For example, you could pass all values by reference implicitly, because they can't be mutated.
There are probably others. It seems like the paradigm is different enough that the pitfalls are also slightly different.