Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I once had to intercept every call malloc/free/realloc and log it to find a leak. I wound up turning that into an immensely useful tool.


It would also stomp on all memory returned by malloc, and all memory that free free'd. This uncovered amazing numbers of bugs.

Over time, though, it got less and less effective, as I got better and better at avoiding writing such bugs in the first place.

Most bugs I create these days are due to misunderstanding the problem I'm solving, rather than memory misuse.


If you are the same Walter Bright who invented the D programming language then this comment should win a fun comment award

also there should be an HN comments award show or something


The one and only Walter Bright.


There can be only one.


valgrind?


I wish. Mine instrumented the source code, not the executable.


This was my first guess, but according to wikipedia[0], the author of valgrind is Julian Seward[1].

  [0] - https://en.wikipedia.org/wiki/Valgrind
  [1] - https://en.wikipedia.org/wiki/Julian_Seward



Maybe WalterBright is his pseudonym on HN?


Fairly sure this is the Walter Bright that wrote the D language, a C++ compiler etc


It was my evil twin. Of course, he claims the evil one is me. Don't listen to him!


No, no, he's the bad one!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: