Hacker News new | ask | show | jobs
by pjmlp 387 days ago
The new allocators, some corner cases of the destroy and destructors, not everything on Phobos is @nogc friendly, BetterC still chockes on many common C extensions, DIP 1000, the whole set of @live semantics.

Now there is a new GC being redesigned, and there are discussions about a possible Phobos V3.

3 comments

> still chockes on many common C extensions

I play with ImportC occasionally, a lot of those can actually be opt out by undef'ing __GNUC__ on the preprocessor invocation, idk why they don't do that. Oh, now it chokes on C23 features as well because system cpp defines __STDC_VERSION__=202311L now. Edit: that was solved: dlang/dmd/pull/21372

You mean ImportC and not BetterC, right?
Right, got that one wrong.

Although, on the context of BetterC, there is the debate about having more regular features available in that mode as well.

thanks.

interesting, didn't know about the new GC, or possible Phobos V3