News for hackers. Stuff that matters.
Re:Facebook is using D in production starting today by scott_s on Friday October 11, 2013 @09:26AM (#6532900)
I think that D2 is really interesting. But I think it doesn't get as much traction because it was an improvement over C++03, but there was no fundamental change in how one developed. I think people switch languages when there's a huge change in how they develop programs - such as a new abstraction that opens up a new programming model. Many, smaller improvements don't seem to add up quite the same way.

Now, I'm less clear on how D2 compares to C++11. Certainly some of the smaller improvements matter less, as C++11 has them.

Re:Facebook is using D in production starting today by sol1684 on Friday October 11, 2013 @12:30PM (#6534146)
My feeling is that you really have to try it out for some time to see why it really makes a difference* . And, although C++11 indeed has caught up in some areas, there are in fact many smaller and some larger things that still do make a big difference in practice. But in general the fact that it's not just one or maybe a few primary features indeed probably makes it more difficult to judge the actual benefits from the outside.

The drawbacks today are in my eyes mostly the relatively minimal support for non-PC platforms and that a number of language features are not yet completely finished. But if the main target are x86 based systems and the use of cutting edge features is not the primary concern, D2 is a great development tool today.

* I can only really talk about my experiences going from C++ -> D, but it was a long process where my way of designing systems and solving problems was gradually altered in many areas - much to the better. And the immediate reward of course is the extreme gain in productivity due to concise syntax, fast compilation times and, last but not least, the lack of a need for header files.

Re:Facebook is using D in production starting today by he_the_great on Friday October 11, 2013 @03:39PM (#6535438)
Much of the initial design come from improving the language grammar and syntax. That limited improvement didn't last long, but it was an initial motivator (Walter being a compiler writer and C++ being horrible language to parse).

The D community has greatly pushed D away from this initial improvement. In C++ there is a separation of the developer tools and the library writer tools. I think that separation still exists in D, but it is in an area even library writers don't/can't reach for in C++.

Ultimately D doesn't force a fundamental change, but as one learns to use the language, the result is a fundamental change.

Re:Facebook is using D in production starting today by WalterBright on Friday October 11, 2013 @04:20PM (#6535720)
> Ultimately D doesn't force a fundamental change, but as one learns to use the language, the result is a fundamental change.

Right. One can do a line by line translation of C++ to D, but idiomatic D can be very unlike C++.