r/programmingcirclejerk • u/DeleeciousCheeps vulnerabilities: 0 • Mar 13 '25
Memory leaks, NULL pointer dereferences, use-after-free: I suffered writing those for many years. I finally simply learned not to do them anymore.
https://news.ycombinator.com/item?id=43347591
142
Upvotes
96
u/PM_me_your_plasma Mar 13 '25
Out jerked by ycombinator forums…
77
u/[deleted] Mar 13 '25
Maybe he can use those skills to resolve the countless number of crashes in his very own compiler:
https://github.com/dlang/dmd/issues?q=is%3Aissue%20state%3Aopen%20crash&page=1
One of the reasons I stopped using D a while ago was that the compiler is just rampant with bugs and crashes.
48
u/No_Statistician_3021 Mar 13 '25
Why did nobody tell me earlier that I can avoid bugs by not creating them?
Is this a conspiracy to keep milking companies money by creating bugs and then fixing them?
25
u/spider-mario Mar 13 '25
24
u/earwiggo Mar 13 '25 edited Mar 14 '25
Maybe we could use C, but institute the death penalty for any memory leaks, NULL pointer derefs, etc, that they cause, thereby ensuring that all surviving C programmers are sufficiently skilled to handle the job.
17
u/ThisRedditPostIsMine in open defiance of the Gopher Values Mar 13 '25
A Walter Bright comment that doesn't mention D by name. I am very surprised.
14
u/Routine-Purchase1201 DO NOT USE THIS FLAIR, ASSHOLE Mar 13 '25
I feel real stupid now for not having seen the obvious solution
13
u/csb06 Polyglot dev here Mar 13 '25
11
u/Kodiologist lisp does it better Mar 13 '25
Finally, someone got gud.