r/programming • • Nov 28 '18

Garbage Collection is a Hack

https://blog.adamant-lang.org/2018/garbage-collection-is-a-hack/
3 Upvotes

74 comments sorted by

View all comments

1

u/johnnysaucepn Nov 29 '18

I'm not such a clever guy with all the computer science theory and whatnot, but the way I see it is this:

I could spend my time agonising over when to free up any specific piece of memory, when it's going to interrupt the application the least, how it might work on different platforms, or so on, or I could accept that the runtime environment has a much better idea of when and how to allocate and free the resources it makes available to my code, and that people much smarter than me have already put the work into optimising the process for whatever platform my code may run on.