Jump to page: 1 2
Thread overview
D programs broken at Language Shootout
Jan 04, 2007
Christof Boeckler
Jan 04, 2007
janderson
Jan 04, 2007
kmk
Jan 04, 2007
Dave
Jan 04, 2007
kmk
Jan 05, 2007
Christof Boeckler
Jan 05, 2007
kmk
Jan 05, 2007
Frits van Bommel
Jan 06, 2007
Dave
Jan 06, 2007
Bradley Smith
Jan 09, 2007
Don Clugston
Jan 09, 2007
Sean Kelly
Jan 05, 2007
Stewart Gordon
Jan 05, 2007
Lutger
Jan 04, 2007
Bradley Smith
Jan 05, 2007
Stewart Gordon
January 04, 2007
Hi all,

I am no D programmer yet, but I noticed that five of the programs at The Computer Language Shootout Benchmarks (http://shootout.alioth.debian.org/) broke after updating the compiler to version 1.00 on the Gentoo machine. It seems to be a simple fix although.

In the meantime D fell back to rank 5 in the default "all benchmarks"/"all languages" view.

Regards
	Christof
January 04, 2007
Christof Boeckler wrote:
> Hi all,
> 
> I am no D programmer yet, but I noticed that five of the programs at The Computer Language Shootout Benchmarks (http://shootout.alioth.debian.org/) broke after updating the compiler to version 1.00 on the Gentoo machine. It seems to be a simple fix although.
> 
> In the meantime D fell back to rank 5 in the default "all benchmarks"/"all languages" view.
> 
> Regards
>     Christof

http://shootout.alioth.debian.org/debian/benchmark.php?test=all&lang=dlang&lang2=gcc

I note that D is worse on everything then gcc except for a few cases where the differences are extream.  I think D's score would be much lower without chameneos and cheap-concurrency.  It would be nice if someone could work out exactly what is causing the performance drop in each of the other algorithms.  There maybe somethings that Walter could tweak in the compiler.

-Joel
January 04, 2007
I noticed the performance drop too. At closer inspection, it appears
the benchmark is taking into account those 5 programs even though they didn't run
(compilation errors due to the 'arrays not implicitly converted to pointers'
change). If you "zero" out those 5 benchmarks, D jumps up to #2.

I submitted revised versions of each of the broken programs.
January 04, 2007
It is also interesting how the regex-dna benchmark has changed.

Comparing D Digital Mars to C gcc: http://shootout.alioth.debian.org/debian/benchmark.php?test=all&lang=dlang&lang2=gcc regex-dna 495, -3.3, 1.1

http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=dlang&lang2=gcc
regex-dna -1.2, -10.6, 2.2

It appears the implementation has changed, and perhaps is not even the same algorithm anymore.

  Bradley


Christof Boeckler wrote:
> Hi all,
> 
> I am no D programmer yet, but I noticed that five of the programs at The Computer Language Shootout Benchmarks (http://shootout.alioth.debian.org/) broke after updating the compiler to version 1.00 on the Gentoo machine. It seems to be a simple fix although.
> 
> In the meantime D fell back to rank 5 in the default "all benchmarks"/"all languages" view.
> 
> Regards
>     Christof
January 04, 2007
kmk wrote:
> I noticed the performance drop too. At closer inspection, it appears
> the benchmark is taking into account those 5 programs even though they didn't run
> (compilation errors due to the 'arrays not implicitly converted to pointers'
> change). If you "zero" out those 5 benchmarks, D jumps up to #2.
> 
> I submitted revised versions of each of the broken programs.

I did that last night and it looks to be fixed already.
January 04, 2007
"I did that last night and it looks to be fixed already."

Yes, D is back to #3

I tried to get them to add GDC but they said it was too much work.
January 05, 2007
janderson wrote:
<snip>
> I note that D is worse on everything then gcc except for a few cases where the differences are extream.
<snip>

How do you determine whether a language is better or worse than a compiler?

Stewart.
January 05, 2007
http://shootout.alioth.debian.org/gp4/miscfile.php?file=benchmarking&title=Flawed%20Benchmarks

"Do your programs avoid library re-use, like these benchmarks?"

What does it mean by "library re-use" exactly?

Stewart.
January 05, 2007
janderson wrote:
> I note that D is worse on everything then gcc except for a few cases where the differences are extream.

For what it's worth, not that much worse than gcc C, and actually scores better than gcc C++. GDC is probably on par with C? That is, better than C++ with the same backend optimizer. Or are the D programs just optimized better?
January 05, 2007
kmk schrieb:
> "I did that last night and it looks to be fixed already."
> 
> Yes, D is back to #3

Strange though that on the AMD Sempron machine (see http://shootout.alioth.debian.org/debian/) DMC is even #1 with quite a gap between C and C++.

> I tried to get them to add GDC but they said it was too much work.
« First   ‹ Prev
1 2