Comment by thethirdone
5 years ago
Not caring amount memory leaks is not the same as not caring about memory consumption. The next line shows exactly why the choice is made.
> It is because most objects that are allocated during an execution of mold are needed until the very end of the program.
Using free would not affect that memory consumption much because most consumption would be freed at the end of the program.
Raymond Chen has an amusing story about this[1]:
> Since the missile will explode when it hits its target or at the end of its flight, the ultimate in garbage collection is performed without programmer intervention.
[1]: https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98...
I also submitted it here in 2017[0].
[0] https://news.ycombinator.com/item?id=14233542
...
But, again, that line does not, in any way, say that this project does nor care about memory consumption.