Re:What Should I Know About Garbage Collection as a Java Dev...
by CyberDildonics on Thursday January 12, 2023 @11:07AM
(#34355617)
Good luck implementing lock free algorithms without the help a GC
The magic is called productivity
that doesn't mean the authors had any fun
You went from implying that it can't be done, to saying a GC is about productivity, to saying it's about "fun". The goal posts are all over the place here.
Meanwhile, I've done it over and over in C++. The reality is that memory allocation shouldn't be a big part of a fast data structure anyway, let alone a good lock free algorithm, because if you're relying on allocation that much you are hopping around in memory, not to mention leaving a big part of your data structure to a black box.
Unfortunately Modern C++ is mostly found in conference talks.Most the real life code looks quite Orthodox C++ to me, including from big name ISO members on their SDKs.
I don't know what either of these is supposed to mean.
If you want to be explicit, tell me what algorithms need a garbage collector, because this all sounds a lot more like something you want to be true or want other people to agree with than something learned from extensive experience.
The magic is called productivity
that doesn't mean the authors had any fun
You went from implying that it can't be done, to saying a GC is about productivity, to saying it's about "fun". The goal posts are all over the place here.
Meanwhile, I've done it over and over in C++. The reality is that memory allocation shouldn't be a big part of a fast data structure anyway, let alone a good lock free algorithm, because if you're relying on allocation that much you are hopping around in memory, not to mention leaving a big part of your data structure to a black box.
Unfortunately Modern C++ is mostly found in conference talks. Most the real life code looks quite Orthodox C++ to me, including from big name ISO members on their SDKs.
I don't know what either of these is supposed to mean.
If you want to be explicit, tell me what algorithms need a garbage collector, because this all sounds a lot more like something you want to be true or want other people to agree with than something learned from extensive experience.