digitalmars.D - Rosettacode example collection
- David Nadlinger (8/8) Jun 15 2014 Hi all,
- bearophile (6/11) Jun 15 2014 Yes, I have such archive and I think it can be useful for your
- Thomas Mader (20/28) Jun 15 2014 Nothing exciting, but I tried to port the Java implementations of
- bearophile (6/9) Jun 15 2014 So you are missing most of the point of using D, and you are
- Thomas Mader (12/15) Jun 15 2014 I am aware of the D GC issue and know that I need to take another
- Trass3r (1/3) Jul 12 2014 Yeah that would indeed be nice to have.
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
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
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
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
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
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