Looking for an equivalent to C++ std::getline in D

Patrick Schluter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 7 13:50:10 PDT 2017


On Sunday, 7 May 2017 at 13:16:16 UTC, bachmeier wrote:
> On Sunday, 7 May 2017 at 10:33:25 UTC, k-five wrote:
>
>> Although I found D for being more better, nicer,and fun than 
>> C++ is, but there is a few questions on Stack-Over-Flow, 
>> videos on Youtube, and  some other forums in my country. So, 
>> why D is not popular?
>
> If by popular you mean C++ or Java levels of usage, that's a 
> pretty high standard. While D is not among the most used 
> languages in large enterprises, it is definitely not an obscure 
> language. For example, just a few days ago I was reading about 
> the new Scala Native project. Among the motivations for that 
> project is
>
> "Scala Native provides an interop layer that makes it easy to 
> interact with foreign native code. This includes C and other 
> languages that can expose APIs via C ABI (e.g. C++, D, Rust 
> etc.)" [0]
>
> You have to be careful about using stackoverflow as a measure 
> of language popularity. Most activity takes place on this 
> mailing list, which was going long before stackoverflow, and 
> there was little motivation to move there (Google searches will 
> bring you here).
>
> One of the few quantitative measures (and even that's of 
> limited use) is DMD downloads from this site. Most recently 
> they have been at about 50,000 per month.[1]
>
> [0] http://www.scala-native.org/en/latest/user/interop.html
> [1] http://erdani.com/d/downloads.daily.png

If you look on TIOBE [1] newest stats, D does not look so bad 
after all. It's ranked 23 with a 1.38% share. The so fashionable 
and noisy Rust is only ranked 40 with 0.41% of share and classics 
like COBOL, FORTRAN, Lisp, Scala, Ada, bash are all behind. So 
it's not yet in the top 20 but I think that it will continue 
growing, slowly and steadily.

[1]: https://www.tiobe.com/tiobe-index/


More information about the Digitalmars-d-learn mailing list