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

Muhammed erfayun at gmail.com
Sat Dec 20 10:17:20 UTC 2025


On Saturday, 20 December 2025 at 09:10:03 UTC, bauss 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. But also I started to learn Dlang 
>> and 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 
>> 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#?
>>
>
> In general D is on pair with C/C++.
>
> You can't really count on those benchmarks online, because they 
> often have specific languages tailor their benchmarks to get 
> the best possible performance.
>
> It is __not__ a reflection of every day usage.
>
>> -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?
>>
>
> Somewhat yeah.
>
>> -How should I use it to avoid both a performance drop due to 
>> GC and sacrificing Dlang's high-level features?
>>
>
> You don't have to allocate with the GC, it is completely 
> optional.
>
>> -Is Dlang's GC indeed slower than Java&C#'s GC?
>>
>
> I think they're just fundamentally different in how they handle 
> memory.
>
> You will not notice a performance difference unless you do 
> real-time operations, in which you could probably skip the GC 
> overall.
>
> In 99% of applications it won't matter and you won't notice a 
> difference.
>
>>
>> These are my only questions and as I said, I like both C++ and 
>> Dlang; I don't find using either of them difficult.
>
> Totally fair.
>
> People worry a lot about the GC, but there is really no need to 
> worry.

I had forgot, Thank you very much as well.


More information about the Digitalmars-d mailing list