General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Inconspicuous Chap
Low Level
comments
Comments by "Inconspicuous Chap" (@InconspicuousChap) on "i wrote my own memory allocator in C to prove a point" video.
Some of my coursemates were writing garbage collectors as a mandatory thing. Even hopelessly dumb at programming managed to pass that somehow. Comparing that to today's tech screenings... kids asking childish questions pretending to be rocket scientists. Able to use a standard library hash map, what an achievement.
43
A good start, why not. Of course your coalescing does not protect from heap fragmentation: suppose the case when the caller frees every second chunk keeping the others for himself. There could be and actually are more complicated scenarios. Whatever you do or do not do, whatever tricky memory guessing strategies you employ, you end up with fragmented unusable heap, so you have to take more memory from the OS (to eventually spoil them too), and you end up with memory leaks. Java fights that using indirect addressing and costly memory degragmentation in GC, which does not fully address the problem, just defers the inevitable program crash and restart. The same thing happens to other resources in one or another form. That's how modern software works.
4
@LuXxenatorX Ok. I'll better shut up indeed. I'm not good at talking to people whose understanding of a problem consists of primitive slogans.
1