luke5542 / LanguageComparison

A comparison of various programming languages for similar problems to demonstrate the syntactic and run-time differences.
0 stars 3 forks source link

Additional Dlang Compilers #20

Open luke5542 opened 8 years ago

luke5542 commented 8 years ago

We should probably work to include LDC and GDC compilers for D, in a similar manner to Clang vs GCC that we already have for C/C++.

georgevanburgh commented 8 years ago

Do you see a huge performance difference between the compilers? Also - how difficult are they to install (e.g. are there aptitude repos?)

luke5542 commented 8 years ago

There is a rather significant performance difference between them. Mainly it's down to the GCC and LLVM backends (for GDC and LDC compilers respectively) being much more mature in their optimizations. It's not unheard of to see a 20% performance increase.

As for the ease of installation, that's where the problem is. I'm not entirely certain how easy it is to install them and that's what needs looking into.

luke5542 commented 8 years ago

Okay, so LDC, at least, can be installed via Brew on OSX, so should be easily installable on Linux as well, though i cannot confirm this.

luke5542 commented 8 years ago

Based on this, GDC should be easily installable under Linux.

It looks like it shouldn't be too much of a problem to get the compilers installed for the docker image, but rather getting dub setup correctly for their use. I'll look into that next.