Thread overview
Questions about D
Nov 27, 2020
Walter
Nov 27, 2020
Walter
November 27, 2020
Hi, I have some questions to ask regarding D:

1) Should I learn D ?

2) Can I cross-compile D programs?

3) Is it a low-level language?

4) Which type of applications is D most used in?

5) Is it fast and not bloated with useless features?
November 27, 2020
On Friday, 27 November 2020 at 19:34:41 UTC, Walter wrote:
> Hi, I have some questions to ask regarding D:
>
> 1) Should I learn D ?

Why not? What are you looking for?

> 2) Can I cross-compile D programs?

You should be able to with ldc/gdc if you have some experience.

> 3) Is it a low-level language?

Lower than high, higher than low. It is if you want it to be.

> 4) Which type of applications is D most used in?

Good question. I would assume command line applications, batch. Like C++.

> 5) Is it fast and not bloated with useless features?

It is fast, but I think you'll find one or two useless features if you go looking for it.

November 27, 2020
On Friday, 27 November 2020 at 19:46:52 UTC, Ola Fosheim Grostad wrote:
> Why not? What are you looking for?
I'm looking for a general purpose which I can use everywhere
November 27, 2020
On Friday, 27 November 2020 at 19:56:38 UTC, Walter wrote:
> On Friday, 27 November 2020 at 19:46:52 UTC, Ola Fosheim Grostad wrote:
>> Why not? What are you looking for?
> I'm looking for a general purpose which I can use everywhere

It is fairly general, but I don't think it is the best option for targeting 16 bit or 8 bit cpus. In that case C would probably be better.
November 27, 2020
On 11/27/20 2:56 PM, Walter wrote:
> On Friday, 27 November 2020 at 19:46:52 UTC, Ola Fosheim Grostad wrote:
>> Why not? What are you looking for?
> I'm looking for a general purpose which I can use everywhere

Depends on how you define "everywhere".

If you mean can it be used in all manner of purposes, yes, it can. It is used in video games, in web development, in command line tools, high performance computing, server software, etc.

If you mean can it be used on all the platforms you want to use, it depends on the platform. In general, if gcc or llvm supports your platform, you can probably get it to work. Some platforms are not as mature in D as others, or may require more effort.

So it's hard to definitively answer your question.

-Steve