Slow performance compared to C++, ideas?

Rob T alanb at ucora.com
Sun Jun 9 09:41:54 PDT 2013


On Sunday, 9 June 2013 at 06:03:14 UTC, Manu wrote:
> I'm here, and interested in D due mainly to it's immediate 
> familiarity, as
> opposed to others like Rust for instance. I can actually 
> envision a
> migration. It seems like it's possible... one step at a time.
> ...it's also compiled and binary compatible, which is obviously 
> critical ;)
> .. (this is where C# fails, or everyone would already be on 
> that wagon
> without question)

I see your point, but there's a contradiction since I think a lot 
of the reason to move away from C/C++ to D is because D is 
actually different and does things in a more sane way. If you 
want to retain familiarity and 100% compatibility with C/C++, 
then just stick with C/C++. Yes D has attempted to remain sort of 
compatible with C.C++, so as to allow for a migration and to 
leverage the momentum, but that means that D is not truly 
standing on its own, and because of this, it has limited itself 
and deeply integrated some of the same bad things about C/C++ 
into D.

Rather than pollute D for sake of compatibility with all of the 
bad mistakes of the past, we should find better interfacing 
strategies. For instance, maybe a smart linker can help.

--rt


More information about the Digitalmars-d mailing list