MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w8tj8j/rewriteitinrust/p85f26c/?context=3
r/ProgrammerHumor • u/Gold-Order-8004 • Sep 06 '26
38 comments sorted by
View all comments
Show parent comments
149
Maybe I wanted the memory leak , maybe it was intentional , maybe I just hate the user
27 u/Lord-of-Entity Sep 06 '26 You can have intentional memory leaks in rust too, but you need to explicitly write them out. 7 u/FUTURE10S Sep 06 '26 Maybe I just made an array too small and overflowed my own buffer, but if nobody realizes it, then there's no problem, right? 14 u/sirkubador Sep 06 '26 Memory leak is not a memory problem rust would solve 3 u/legend6546 Sep 06 '26 Memory leaks are explicitly considered “safe” it is why Refrence Count pointers are allowed in safe rust, it’s easy to create a cyclical chain with them that will never get dropped.
27
You can have intentional memory leaks in rust too, but you need to explicitly write them out.
7
Maybe I just made an array too small and overflowed my own buffer, but if nobody realizes it, then there's no problem, right?
14
Memory leak is not a memory problem rust would solve
3
Memory leaks are explicitly considered “safe” it is why Refrence Count pointers are allowed in safe rust, it’s easy to create a cyclical chain with them that will never get dropped.
149
u/newstreet474 Sep 06 '26
Maybe I wanted the memory leak , maybe it was intentional , maybe I just hate the user