Why is D's GC slower than GO's?

Imperatorn johan_forsberg_86 at hotmail.com
Sat Oct 29 08:26:48 UTC 2022


On Saturday, 29 October 2022 at 06:28:02 UTC, Araq wrote:
> On Saturday, 29 October 2022 at 04:46:21 UTC, Walter Bright 
> wrote:
>> If there was a way around these two issues, we would have 
>> found it by now.
>
> It's very easy to "work around these two issues" but you cannot 
> see it because of DOS's NEAR and FAR pointers. If that sounds 
> totally absurd, it's because it is.
>
>> 1. It enables a killer feature - CTFE that can allocate 
>> memory. C++ doesn't do that. Zig doesn't do that.
>>
>
> And Nim does that easily too without butchering the type 
> system. There simply is no reason to conflate managed with 
> unmanaged pointers.

I agree Nim does some things a lot better, I do.
On the other hand D has a better community than Nim.

In the end, everything is a trade off.


More information about the Digitalmars-d mailing list