I am new at Dlang and I have questions in my head

Muhammed erfayun at gmail.com
Sat Dec 20 09:46:14 UTC 2025


On Saturday, 20 December 2025 at 09:33:45 UTC, Sergey wrote:
> On Saturday, 20 December 2025 at 07:46:00 UTC, Muhammed wrote:
>> Hello, I have been trying to learn +1 year C and C++ but 
>> fortunately I gained much experience and I don't have as much 
>> trouble learning C and C++ as I used to and I think I will be 
>> good level at C&C++ soon.
>
> The main issue with C++ that even after 30 years of production 
> development in C++ they are not good at it. And this is why 
> industry is trying to migrate away from it.
>
>> don't misunderstand me, I will use C++ for recquiring a job 
>> and I love C++ but I started to love too much Dlang.
>>
>> Here are some questions that are confusing me:
>>
>> -How high-performing is Dlang really? I saw that in some 
>> places even C# has surpassed Dlang. C# on
>
> It depends on the implementation. Some problems will be slower 
> than C#, others will be faster than C++.
> It will depends on many factors, including the effort that you 
> will put into implementation.
>
>> https://programming-language-benchmarks.vercel.app/. Will be 
>> the apps(GUI, Web etc) very good quality that I will write 
>> with Dlang? Like Java and C#?
>
> No, the ecosystem and tooling support in D is much worse than 
> C#/Java worlds and even C++. Though you can write both GUI and 
> Web with D as well.
>
>> -Is Dlang excellent language for low level and bare metal? 
>> Because I am particularly interested in low level apps. For 
>> example Dlang's inline assembly is excellent quality?
>
> You can do this with "betterC". But I think it is not 
> "excellent" as Zig or C, but okeish
>
>> -How should I use it to avoid both a performance drop due to 
>> GC and sacrificing Dlang's high-level features?
>
> Implement your own stuff (core lib) or stick with other's core 
> libs: there are plenty of them are available in D ecosystem. 
> Because people need them, but DLF don't have strong opinion on 
> that part (as well as many others parts).
>
>> -Is Dlang's GC indeed slower than Java&C#'s GC?
>
> It is different in many ways, but of course less advanced as 
> JVM (as it is top research GC all over every other). But it has 
> their own drawbacks. So D's GC is fine and newGC project is 
> trying to improve situation even more.
>
>> These are my only questions and as I said, I like both C++ and 
>> Dlang; I don't find using either of them difficult.
>
> C++ is a bad language.. many people are even saying it is the 
> worst ever language (from the design perspective).


Thank you very much, Mr. Sergey, have a good day.


More information about the Digitalmars-d mailing list