4 ms·
> One of the reasons why Lisp is fading into irrelevance is that GC is obsolete tech. RAII, smart pointers and ARC aren't free lunches, which is why people had
by m0th87 12y ago
> One of the reasons why Lisp is fading into irrelevance is that GC is obsolete tech.
RAII, smart pointers and ARC aren't free lunches, which is why people had moved from them to GC in the first place.
Of the top 10 languages on github [1] that require memory management, 7 of them use GC [2].
> This is also a factor in why Android phones are orders of magnitude slower than equivalently-specced iPhones
That's a pretty nutty assertion to make without data.
1: http://adambard.com/blog/top-github-languages-2014/ http://adambard.com/blog/top-github-languages-2014/
2: Discluding CSS and shell since they don't require memory management. Python's default implementation actually has both RC and GC.
- waps 12y ago> RAII, smart pointers and ARC aren't free lunches, which is why people had moved from them to GC in the first place. Yet GC solves 10% of the problem that RAII solves. Tbh I would call them "similar". GC has the advantage of being much more tolerant of sloppy programming, but if you compare the complexity of GC with the complexity of RAII, I'd say RAII has a clear advantage.
- pjmlp 12y agoMost RAII use cases can be taken with using/with/try/lambdas