News for hackers. Stuff that matters.
Re:Beautiful Binary Search in D by layer8 on Saturday February 18, 2023 @04:16PM (#34851175)
I mean, the same is true for C++. If some C++ library you use employs GC, you can’t abstract that away either. The actual difference is how frequent such libraries are in the respective ecosystem.
Re:Beautiful Binary Search in D by masklinn on Saturday February 18, 2023 @04:33PM (#34851327)
> The actual difference is how frequent such libraries are in the respective ecosystem.

That’s a difference without a distinction: people will use the defaults unless they can’t.

So in C++ libraries will avoid GCs unless their work basically requires it, whereas in D they’ll require it unless the author is constrained to a nogc requirement.

Re:Beautiful Binary Search in D by dataflow on Saturday February 18, 2023 @04:19PM (#34851213)
I basically said as much https://news.ycombinator.com/item?id=34850130

Though, I'm not sure you could even have a precise GC for C++ even if you wanted to, given the way most C++ is written.