Re: Programming language benchmark

2011-06-28 Thread Caligo
Kind of off topic, but a good place to get benchmark results for many of the programming languages is Sphere Online Judge: http://www.spoj.pl/problems/classical/ They accept solutions in D, but not many have been submitted. I found a few: http://www.spoj.pl/ranks/FCTRL/lang=D http://www.spoj.pl/

Re: Programming language benchmark

2011-06-26 Thread Walter Bright
On 6/26/2011 2:24 PM, Don wrote: You may also want to have a look at this paper: http://www.agner.org/optimize/optimizing_cpp.pdf I don't know if it still accurately reflects the current state though. It's a little out of date, DMD now does a couple of things it didn't do when Agner did the t

Re: Programming language benchmark

2011-06-26 Thread Don
Timon Gehr wrote: Don wrote: bearophile wrote: Don: Sorry for my slow answer, I was quite busy for days. I've never heard that claim before. Do you have evidence for that? I compare/convert code to D every day, so I am aware that D code compiled with DMD is often slower than C/C++ code co

Re: Programming language benchmark

2011-06-26 Thread Timon Gehr
Don wrote: > bearophile wrote: >> Don: >> >> Sorry for my slow answer, I was quite busy for days. >> >> >>> I've never heard that claim before. Do you have evidence for that? >> >> I compare/convert code to D every day, so I am aware that D code compiled >> with DMD is often slower than C/C++ code

Re: Programming language benchmark

2011-06-26 Thread Don
bearophile wrote: Don: Sorry for my slow answer, I was quite busy for days. I've never heard that claim before. Do you have evidence for that? I compare/convert code to D every day, so I am aware that D code compiled with DMD is often slower than C/C++ code compiled with GCC. Since some ye

Re: Programming language benchmark

2011-06-24 Thread bearophile
Don: Sorry for my slow answer, I was quite busy for days. > I've never heard that claim before. Do you have evidence for that? I compare/convert code to D every day, so I am aware that D code compiled with DMD is often slower than C/C++ code compiled with GCC. Since some years I even keep a c

Re: Programming language benchmark

2011-06-23 Thread Don
bearophile wrote: Piotr Szturmaj: I don't know why there's no DMD flavor, though. The author of that bench has said: I have not evaluated DMD because I am running the programs on a Linux server I have no control of. The “libc” is quite old and incompatible with the binary release of dmd.<

Re: Programming language benchmark

2011-06-22 Thread Andrei Alexandrescu
On 6/22/11 6:52 AM, Dmitry Olshansky wrote: for (q = buf; *q; ++q); if (q > buf) *(q-1) = 0;//was that triming '\n'? Now that's an interesting line. Andrei

Re: Programming language benchmark

2011-06-22 Thread Dmitry Olshansky
On 22.06.2011 15:41, bearophile wrote: Piotr Szturmaj: I don't know why there's no DMD flavor, though. The author of that bench has said: I have not evaluated DMD because I am running the programs on a Linux server I have no control of. The “libc” is quite old and incompatible with the binar

Re: Programming language benchmark

2011-06-22 Thread bearophile
Piotr Szturmaj: > I don't know why there's no DMD flavor, though. The author of that bench has said: >I have not evaluated DMD because I am running the programs on a Linux server I >have no control of. The “libc” is quite old and incompatible with the binary >release of dmd.< > It clearly sho

Programming language benchmark

2011-06-22 Thread Piotr Szturmaj
Hi, I've just found this benchmark which includes GDC and LDC compilers. I don't know why there's no DMD flavor, though. Here's the link: http://attractivechaos.wordpress.com/2011/06/22/my-programming-language-benchmark-analyses/ It clearly shows that D is really fast (co