4 ms·
The memory management is almost broken. They decided not crashing was better than mashing memory.
by groundzeros2015 9mo ago
The memory management is almost broken. They decided not crashing was better than mashing memory.
- DowsingSpoon 9mo agoMemory management in Swift is almost broken? How so? This is a fascinating assertion, and I’d love to learn more.
- groundzeros2015 9mo ago- it adds locking to almost every line of code using classes - anytime you start holding complex references to classes you get cycles which will not be released - it’s extremely hard to debug. You have to capture memgraphs at runtime and track dependencies - it coexists with old systems like auto release pools so resources are still not released when all references go away Try to implement a linked list in swift and you’ll get a sense of how absurd this is. And remember linked lists are a special case of graphs.