www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Rosettacode example collection

reply "David Nadlinger" <code klickverbot.at> writes:
Hi all,

Somebody (I think bearophile) mentioned a while back that they 
had a folder with all the D solutions from Rosettacode.

I'm looking for some small stand-alone compiler benchmarks, so 
I'd very much appreciate if whoever it was could contact me via 
mail.

Thanks,
David
Jun 15 2014
next sibling parent "bearophile" <bearophileHUGS lycos.com> writes:
David Nadlinger:

 Somebody (I think bearophile) mentioned a while back that they 
 had a folder with all the D solutions from Rosettacode.

 I'm looking for some small stand-alone compiler benchmarks, so 
 I'd very much appreciate if whoever it was could contact me via 
 mail.
Yes, I have such archive and I think it can be useful for your purposes, but it requires some care, so I think it's better to meet a moment on IRC in #D. Later, bearophile
Jun 15 2014
prev sibling next sibling parent reply "Thomas Mader" <thomas.mader gmail.com> writes:
Nothing exciting, but I tried to port the Java implementations of 
the benchmark game [1] to D. [2]
My focus was to use the same algorithm/abstraction used in the 
Java implementation.
I haven't finished the porting of all benchmarks but you can use 
them if they help you.

May I ask you what you try to do?
It sounds a bit we share some intent.
My intent with that repo is to build a little benchmarking 
platform to compare languages, compilers and algorithms.
My primary goal for now is to compare the benchmark game 
implementations of Java to see how D performs against them in 
terms of compilation time and performance.

But it's a hobby project to get to write some D code for learning 
purposes first of all.
And it will come forward very slowly because I don't intent to 
put much effort/time into it.

[1] http://benchmarksgame.alioth.debian.org/
[2] https://github.com/ThomasMader/benchmark/tree/master/src

On Sunday, 15 June 2014 at 12:25:39 UTC, David Nadlinger wrote:
 Hi all,

 Somebody (I think bearophile) mentioned a while back that they 
 had a folder with all the D solutions from Rosettacode.

 I'm looking for some small stand-alone compiler benchmarks, so 
 I'd very much appreciate if whoever it was could contact me via 
 mail.

 Thanks,
 David
Jun 15 2014
parent reply "bearophile" <bearophileHUGS lycos.com> writes:
Thomas Mader:

 My primary goal for now is to compare the benchmark game 
 implementations of Java to see how D performs against them in 
 terms of compilation time and performance.
So you are missing most of the point of using D, and you are perhaps even relying too much on the D GC, that is much worse than the JavaVM GC. Bye, bearophile
Jun 15 2014
parent "Thomas Mader" <thomas.mader gmail.com> writes:
On Sunday, 15 June 2014 at 17:19:42 UTC, bearophile wrote:
 So you are missing most of the point of using D, and you are 
 perhaps even relying too much on the D GC, that is much worse 
 than the JavaVM GC.
I am aware of the D GC issue and know that I need to take another route to get the most out of D, but to compare languages it's also interesting to see how they compare with similar implementation. The GC might never be as performant as Java's but it's nice if you can estimate to what extent it is slower and maybe trace improvement of the GC implementation over time. The usual way of microbenchmarking is another perspective which should be looked into too but this viewpoint might show weaknesses better and might lead to clues on what should/can be improved.
Jun 15 2014
prev sibling parent "Trass3r" <un known.com> writes:
 Somebody (I think bearophile) mentioned a while back that they 
 had a folder with all the D solutions from Rosettacode.
Yeah that would indeed be nice to have.
Jul 12 2014