News for hackers. Stuff that matters.
Re:Carbon Language: An experimental successor to C++ by WalterBright on Wednesday July 20, 2022 @04:03AM (#32162823)
Not much of the library is dependent on the GC. For example, only one of the algorithms is.
Re:Carbon Language: An experimental successor to C++ by skl131313 on Wednesday July 20, 2022 @11:06AM (#32166820)
There's no "nogc" containers in phobos, or allocators, or an idiomatic way to do safe manual memory management. It expects you to do it the C way. It's also impossible to implement some things because of how D does moving. There's a DIP in the works to change how moving works, but it's overly complicated and bound to introduce even more bugs. https://github.com/dlang/DIPs/blob/master/DIPs/DIP1040.md