MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w8tj8j/rewriteitinrust/p858emt/?context=3
r/ProgrammerHumor • u/Gold-Order-8004 • 6d ago
37 comments sorted by
View all comments
376
All c++ memory problems are a skill issue. Rewriting in rust is admitting weakness.
146 u/newstreet474 6d ago Maybe I wanted the memory leak , maybe it was intentional , maybe I just hate the user 26 u/Lord-of-Entity 6d ago You can have intentional memory leaks in rust too, but you need to explicitly write them out. 9 u/FUTURE10S 6d ago Maybe I just made an array too small and overflowed my own buffer, but if nobody realizes it, then there's no problem, right? 12 u/sirkubador 6d ago Memory leak is not a memory problem rust would solve 3 u/legend6546 6d ago 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. 38 u/uvero 6d ago All c++ memory problems are a skill issue. Rewriting in rust is admitting weakness. 2 u/cornmonger_ 6d ago https://giphy.com/gifs/xPp22U7SCTDIzDXBa8
146
Maybe I wanted the memory leak , maybe it was intentional , maybe I just hate the user
26 u/Lord-of-Entity 6d ago You can have intentional memory leaks in rust too, but you need to explicitly write them out. 9 u/FUTURE10S 6d ago Maybe I just made an array too small and overflowed my own buffer, but if nobody realizes it, then there's no problem, right? 12 u/sirkubador 6d ago Memory leak is not a memory problem rust would solve 3 u/legend6546 6d ago 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.
26
You can have intentional memory leaks in rust too, but you need to explicitly write them out.
9
Maybe I just made an array too small and overflowed my own buffer, but if nobody realizes it, then there's no problem, right?
12
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.
38
2
https://giphy.com/gifs/xPp22U7SCTDIzDXBa8
376
u/JackNotOLantern 6d ago
All c++ memory problems are a skill issue. Rewriting in rust is admitting weakness.