top | item 13220991

(no title)

wangchow | 9 years ago

Alas, having no garbage collector at all is a blissful state of simplicity when performance matters. It's not very difficult to clean up one's objects manually in a well-thought-out codebase.

discuss

order

tomp|9 years ago

Experience (i.e. the number of memory-related bugs) suggests otherwise.

wangchow|9 years ago

What about smart pointers? It gives the flexibility and benefits of garbage-collection without the performance degradation. It's not a silver bullet but it helps.

What I'm getting at is, Rust is the only modern language (in vogue at the moment) that does not use garbage collection. It would be nice if more languages didn't require a garbage collector but gave the option to use one.

If there are some more of such languages please chime in and provide a link to them! :)

topspin|9 years ago

GC isn't the the only way to achieve memory safety.

pjmlp|9 years ago

> well-thought-out codebase.

Which in real life means a single developer ownership codebase.

hood_syntax|9 years ago

Or a meticulous team of very high quality engineers with top notch documentation and design practices. Note that I do agree with you, however, because as you said:

> in real life

gnaritas|9 years ago

> It's not very difficult to clean up one's objects manually in a well-thought-out codebase.

Given the rarity of a well thought out codebase, I'd say it is. As soon as multiple people work on something confusion always ensues.