2,647
questions
165
votes
13
answers
46k
views
Is D a credible alternative to Java and C++? [closed]
Is the D language a credible alternative to Java and C++? What will it take to become a credible alternative? Should I bother learning it? Does it deserve evangelizing?
The main reason I ask is that ...
140
votes
20
answers
48k
views
D Programming Language in the real world? [closed]
Is anyone out there using D for real world applications? If so, what are you using it for? I can't seem to find anything big on the web written in D.
Despite the lack of known big users, D seems like ...
140
votes
8
answers
44k
views
How fast is D compared to C++?
I like some features of D, but would be interested if they come with a
runtime penalty?
To compare, I implemented a simple program that computes scalar products of many short vectors both in C++ and ...
105
votes
3
answers
18k
views
What are the differences between concepts and template constraints?
I want to know what are the semantic differences between the C++ full concepts proposal and template constraints (for instance, constraints as appeared in Dlang or the new concepts-lite proposal for C+...
75
votes
3
answers
19k
views
Why 0.1 + 0.2 == 0.3 in D?
assert(0.1 + 0.2 != 0.3); // shall be true
is my favorite check that a language uses native floating point arithmetic.
C++
#include <cstdio>
int main()
{
printf("%d\n", (0.1 + 0.2 != 0.3))...
70
votes
10
answers
5k
views
To GC or Not To GC
I've recently seen two really nice and educating languages talks:
This first one by Herb Sutter, presents all the nice and cool features of C++0x, why C++'s future seems brighter than ever, and how M$...
65
votes
10
answers
13k
views
Metaprogramming in C++ and in D
The template mechanism in C++ only accidentally became useful for template metaprogramming. On the other hand, D's was designed specifically to facilitate this. And apparently it's even easier to ...
64
votes
7
answers
7k
views
Is D's grammar really context-free?
I've posted this on the D newsgroup some months ago, but for some reason, the answer never really convinced me, so I thought I'd ask it here.
The grammar of D is apparently context-free.
The grammar ...
58
votes
3
answers
13k
views
DMD vs. GDC vs. LDC
What are the Pros/Cons of the different D Compilers? How is the performance and the standard compliance/D2 support? How well are debuggers supported? How good are the Error messages and is the IDE ...
53
votes
10
answers
23k
views
The D Programming Language for Game Development [closed]
Recently I've been bothered because I reached a point in which C++ (even 0x) felt very limited, so I started looking for alternatives.
Forget Java, C#, Python or Ruby. I still like the low-level ...
52
votes
4
answers
59k
views
Automatically executed functions when loading shared libraries
When loading shared libraries in Windows, LoadLibrary() call causes DllMain in library to execute for each new process and thread library attaches to, and for each process and thread library ...
45
votes
6
answers
5k
views
Does the D language have multiple standard libraries and issues with GC?
I'm wondering how mature and stable D is, and if it might be a good replacement for C/C++.
I know that there are currently two standard libraries (Phobos and Tango). Is it still the case that there ...
41
votes
7
answers
10k
views
D programming without the garbage collector
I've been looking at D today and on the surface it looks quite amazing. I like how it includes many higher level constructs directly in the language so silly hacks or terse methods don't have to be ...
40
votes
4
answers
4k
views
Can a compiler automatically detect pure functions without the type information about purity?
So I'm arguing with my friend who claims that a compiler like GCC can detect a pure function automatically without any type information. I doubt that.
Languages like D or Haskell have purity in their ...
39
votes
6
answers
25k
views
Why is thread local storage so slow?
I'm working on a custom mark-release style memory allocator for the D programming language that works by allocating from thread-local regions. It seems that the thread local storage bottleneck is ...