Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderI semi-recently implemented a malloc tester (am TAing an OS course). Students write their own implementation of malloc and free, and then I "intercept" their calls to brk and sbrk by using macros to re-define those symbols as my own versions of those functions. It is quite nice: I have knobs to "fuzz" the alignment of returned addresses from sbrk, as well as to inject arbitrary EAGAINs, to see if they're following the man pages. Another thing that I looked…
There are so many complaints here about how simplistic this is and how it is nowhere near what a "good" malloc does. That's kind of the point. Let's implement the most brain-dead version of this code. This is code you can quickly understand and reason about. It gives you a baseline to understand all the improvements that are included in a "real" malloc. It would have been nice to include a list of the types of changes that a modern…
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 2
- Total points
- 338
- Total comments
- 48
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2014-12-05 | A quick tutorial on implementing C memory management functionsFirst breakout · Best thread | redraga | 202 | 19 |
| 2017-04-17 | A quick tutorial on implementing and debugging malloc, free, calloc, and realloc | ingve | 1 | 0 |
| 2017-12-04 | A quick tutorial on implementing and debugging malloc, free, calloc, and realloc | 10-6 | 4 | 0 |
| 2022-09-17 | Malloc Tutorial (2014) | mmphosis | 2 | 0 |
| 2023-11-26 | Let's Write a MallocLatest 20+ point return | yla92 | 129 | 29 |
