Re:Ask HN: Why do langs with alleged “automatic memory manag...
by jarjarbinks455 on Thursday July 18, 2019 @02:23PM
(#20472601)
Well the point of gc is to allow the algorithm to focus on the problem domain. and not worry about mechanical implementation details of a computer. Everything has a trade off. An obvious win still must pay a cost elsewhere. In the case of GC it's simply not a good trade off for many resources. Sometimes it cannot be used even if you were willing to accept a trade.
[ Parent
| on HN ]
Re:Ask HN: Why do langs with alleged “automatic memory manag...
by ErotemeObelus on Thursday July 18, 2019 @02:33PM
(#20472698)
Managing resources by hand is managing the mechanical implementation details of a computer. So in order to have garbage collection that manages more than just a sliver of memory so small that it counts as a rounding error by the same you get to the size of real world projects, you need a custom operating system and possibly even custom hardware too.
Re:Ask HN: Why do langs with alleged “automatic memory manag...
by AnimalMuppet on Thursday July 18, 2019 @06:12PM
(#20474432)
Your statement is false for many real world projects. (For some, you are correct. Those projects should not be written in a garbage-collected language, or should be written to run on a custom OS and custom hardware.)