May 07, 2017
On Sunday, 7 May 2017 at 10:33:25 UTC, k-five wrote:
> On Sunday, 7 May 2017 at 09:46:22 UTC, Patrick Schluter wrote:
>> On Saturday, 6 May 2017 at 10:15:03 UTC, k-five wrote:
>
>> If you want to learn the basis of the range concept and their link to C++ Iterators, you should definitively read Andrei's article on them in the InformIT magazine. Here is the link
>> http://www.informit.com/articles/printerfriendly/1407357
>> required read for every aspiring D programmer ;-)
>
> ---------------------------------------------------
>
> Thanks for the article.
>
> 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?

Because everyone is asking this question instead of actually doing something about it :)
To be fair, D has a good amount of usage even today, it's just not being screamed about ecstatically.

> I am a big fan of Perl-one-liner and after seeing
> rdmd --evel='one-line-code'
> I gasped! Oh, really? a one-liner with D!
>
> Or even Unix Command Line, that D has Uniform Function Call Syntax.
> line.sort.uniq.writeln();
>
> It may you know about the future of D or may introduce some other articles about the future of D to me. Since after learning C++ I am not very comfortable with.

Today is the last day of the D Conference 2017, last three days it was livestreaming. There were quite a bit of talks on current developments and future progress. The videos from those streams should appear at https://www.youtube.com/user/sociomantic/videos hopefully early next week. They also have previous conference videos out there.
May 07, 2017
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
May 07, 2017
On Sunday, 7 May 2017 at 12:29:20 UTC, Stanislav Blinov wrote:
> On Sunday, 7 May 2017 at 10:33:25 UTC, k-five wrote:
>> [...]
>
> Because everyone is asking this question instead of actually doing something about it :)
> To be fair, D has a good amount of usage even today, it's just not being screamed about ecstatically.
>
>> [...]
>
> Today is the last day of the D Conference 2017, last three days it was livestreaming. There were quite a bit of talks on current developments and future progress. The videos from those streams should appear at https://www.youtube.com/user/sociomantic/videos hopefully early next week. They also have previous conference videos out there.

Some of them have started to appear already 3 hours ago.
May 07, 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/
May 08, 2017
On Sunday, 7 May 2017 at 20:50:10 UTC, Patrick Schluter wrote:
> 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:
-------------------------------------------------------

When I want to learn to code, I asked in some forums about it, and almost everyone told: Learn C++, C++ is powerful, and so. After practicing and collecting more than 2000 example on my githum with C++, I founded even though C++ is not so powerful, it is a kind of dirty or messy. A collection of modern code after C++11 beside of old C code. No standard library for time, for socket, for file, or ....

For learning C++ I printed out the whole website: en.cppreference.com and cplusplus.com. They really have a lot examples for each part. Whereas some pages of reference library here, even have no examples in the entire page!

I downloaded a pdf 2015 from tutorialspoint.com, but some of its examples would not even compile.

The pest part of here in my opinion is tour part. https://tour.dlang.org/

And the best way (in my opinion ) to make D more popular than now is sharing so many practical examples or nice code. I am now trying to port my C++ code to D and share a collection of examples in my github. Hopefully it can help even though I got familiar with D for two weeks.
May 08, 2017
On Sunday, 7 May 2017 at 20:50:10 UTC, Patrick Schluter wrote:
> 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

Tiobe is a "hoax".

Stack overflow counts for alternative languages:

"swift": 146,374
"scala": 65,594
"go": 22,212
"rust": 6,596
"d": 2,211
"nim": 167

May 08, 2017
Here is another metric, number of star the main compiler has on github:

Chapel: 437
Coq: 618
Ocaml: 1,258
Dmd: 1,574
Haxe: 1,865
Nim: 3,598
Crystal: 8,064
Scala: 8,158
Julia: 8,569
Rust: 21,684
TypeScript:  21,748
Go: 27,702

May 08, 2017
On Monday, 8 May 2017 at 10:51:52 UTC, Ola Fosheim Grøstad wrote:
> On Sunday, 7 May 2017 at 20:50:10 UTC, Patrick Schluter wrote:
>> 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
>
> Tiobe is a "hoax".
>
> Stack overflow counts for alternative languages:
>
> "swift": 146,374
> "scala": 65,594
> "go": 22,212
> "rust": 6,596
> "d": 2,211
> "nim": 167

Stack-Overflow usage is clearly not representative of language usage.
1) Our forum is flourishing, why would any D developer use SO?
2) The number of questions is directly proportional with the difficulty of the language.(D is quite easy to learn, especially compared to rust).

May 08, 2017
On Monday, 8 May 2017 at 11:41:02 UTC, Daniel N wrote:
> Stack-Overflow usage is clearly not representative of language usage.
> 1) Our forum is flourishing, why would any D developer use SO?
> 2) The number of questions is directly proportional with the difficulty of the language.(D is quite easy to learn, especially compared to rust).

But D is much older... Anyway look at Github:

Idris: 1770 stars

...and that is a brand new and odd language.

May 08, 2017
On 05/06/2017 02:24 AM, Stanislav Blinov wrote:

> auto input = args[1].splitter('/').filter!((string s) { return !s.empty;
> })();
>
> or a template lambda:
>
> auto input = arga[1].splitter('/').filter!((s) => !s.empty)();

Not necessarily better but worth mentioning:

    import std.functional : not;

    auto input = args[1].splitter('/').filter!(not!empty)();

Ali