3 ms·
FFS. The fix for absolutely bonkers CoW costs is to stop buying in to this idiotic notion that “immutability is easier to reason about”. If you’re having diffi
by wredue 3y ago
FFS. The fix for absolutely bonkers CoW costs is to stop buying in to this idiotic notion that “immutability is easier to reason about”.
If you’re having difficulty reasoning about how to deal with major performance issues then your position is not easier to reason about. Full stop.
Stop the madness!
- cryptonector 3y agoIt is easy to reason about the performance issues of CoW, and it's easy enough to reason about how to work around those issues. Ease of reasoning is a big deal when you're dealing with hundreds of millions of lines of code, as some of us do. Cognitive load is a big deal in today's world. It's why we're migrating from C to memory-safe languages.
- kragen 3y agoit's correct that aliasing makes performance harder to reason about but there are other things you might want to reason about, such as whether a subroutine terminates at all and what it returns, and immutability does make it easier to reason about those things
- namibj 3y agoTell that to NVMe zoned namespaces. Outside of RAM, immutable data structures exist for device technology (e.g. MLC NAND) inherent reasons.