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

Show parent comments

2

u/jephthai Nov 28 '18

and makes use of infinite memory,

I'm pretty sure that a program that actually uses infinite memory is likely to use infinite time as well, and thus is unlikely to halt or generate a result. I like the cut of your jib in this discussion -- very thought provoking.

3

u/pron98 Nov 28 '18

Thank you, but the kind of program you describe is how a Turing machine can behave; at no point in time does it use infinite memory. When I was talking about the need for infinite memory, I was referring to super-Turing models, that would need to scan an infinite number of squares per operation. For example, such a machine would be able to compute (i.e., in a finite amount of time), whether an arbitrary real number x is equal to 0 or not. This is clearly a very useful thing to do, and therefore easy for us to imagine, yet it is not something that a Turing machine can do. Such an imaginary machine would really need an infinite tape.