www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Anyone wants to show the power of D?

reply "marwy" <mariusz.wyrozumski gmail.com> writes:
There are two threads that came up lately, where people compare 
their language's speed.
1) http://codegolf.stackexchange.com/q/26323
2) http://codegolf.stackexchange.com/q/26371 (this one is newer)

Both of them still lack the D lang.
Anyone up for a little pissing contest? ;-).
May 01 2014
parent reply "bearophile" <bearophileHUGS lycos.com> writes:
marwy:

 There are two threads that came up lately, where people compare 
 their language's speed.
 1) http://codegolf.stackexchange.com/q/26323
 2) http://codegolf.stackexchange.com/q/26371 (this one is newer)

 Both of them still lack the D lang.
 Anyone up for a little pissing contest? ;-).
Currently here we are rather distracted, busy turning D up on its head :-) Regarding the first "contest", this is a D version of the C++ code by Stefan, to be compiled with LDC2 (I have not tested gdc2): http://dpaste.dzfl.pl/cc8317cd0489 I have not yet translated the Fortran version of the code. Bye, bearophile
May 01 2014
parent "bearophile" <bearophileHUGS lycos.com> writes:
And a D solution for the second contest, still for LDC2 compiler, 
translated from C++ code by "ilmale":

http://dpaste.dzfl.pl/f029aa2c0a46

Timing comparisons are welcome.

Bye,
bearophile
May 01 2014