www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Questions about D

reply Walter <kousei riseup.net> writes:
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?
Nov 27 2020
parent reply Ola Fosheim Grostad <ola.fosheim.grostad gmail.com> writes:
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.
Nov 27 2020
parent reply Walter <kousei riseup.net> writes:
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
Nov 27 2020
next sibling parent Ola Fosheim Grostad <ola.fosheim.grostad gmail.com> writes:
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.
Nov 27 2020
prev sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
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
Nov 27 2020