Andrei's list of barriers to D adoption

Jim Hewes via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 7 11:13:36 PDT 2016


On 6/6/2016 9:31 AM, Shachar Shemesh wrote:
> With the *possible* exception of C#, none of those are systems
> programming languages. D presents itself as one.
>
> Shachar

I think that is true.

I understand that some disciplines might need to avoid a GC for whatever 
reason, like games or small embedded systems.

But the thing that always gets me about GC is not performance. It's that 
garbage collection always lumps all resources together with memory. I 
understand that there have been countless long discussions about GC. But 
my eyes glaze over because the discussion is usually about performance. 
Coming from C++ I like to use RAII. I like to depend on deterministic 
destruction of resources. I don't care about memory or when it's 
released (depending on the type of application) but I do care when other 
types of resources are released. If I'm wrong to be thinking this way 
I'm happy to be convinced otherwise.

I know the library has Unique which is in std.typcons. But I thought I 
also read once that there are certain cases where it doesn't always work 
correctly. Maybe I'm mistaken; I'm not clear on that. As a developer 
coming from C++, okay, I've bought into the idea that D is a better C++. 
The first thing I want to know is, "How do I accomplish all the things 
in D that I normally do in C++?" For the case of deterministic 
destruction it might take someone a while to figure that out. (Not scope 
guards; they don't handle lifetimes longer than functions.)


More information about the Digitalmars-d mailing list