Comment by rayneorshine
9 hours ago
>Having a garbage collector makes so many compiler algorithms and data structures easier.
Does it really? Compilers tend to be programs that just appends a bunch of data to lists, hashmaps, queues and trees, processes it, then shuts down. So you can just make append-only data structures and not care too much about freeing stuff.
I never worry about memory management when I write compilers in C.
No comments yet
Contribute on Hacker News ↗