Re: Benchmark of D against other languages

2015-04-27 Thread Isaac Gouy via Digitalmars-d
On Friday, 3 April 2015 at 02:20:24 UTC, Laeeth Isharc wrote: not evaluated by the Computer Language Benchmarks Game any more. iirc Some people in the D community were going to make their own measurements of benchmarks game tasks and publish them. Has that happened? I just noticed someone

Re: Benchmark of D against other languages

2015-04-06 Thread Manu via Digitalmars-d
On 3 April 2015 at 05:00, deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thursday, 2 April 2015 at 09:06:52 UTC, Manu wrote: virtual by default is completely wrong for D. And don't say 'speculative' devirtualisation. What an abomination! Just fix the problem; don't have

Re: Benchmark of D against other languages

2015-04-04 Thread Ary Borenszweig via Digitalmars-d
On 4/2/15 11:20 PM, Laeeth Isharc wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the benchmark.

Re: Benchmark of D against other languages

2015-04-02 Thread bearophile via Digitalmars-d
Martin Nowak: Your persistent interest in integer overflow checks make we wonder if you were responsible for this? http://www.around.com/ariane.html I am not responsible for that, but I try to not be responsible for future molecular biology mistakes equivalent to that Ariane fiasco. Bye,

Re: Benchmark of D against other languages

2015-04-02 Thread anonymous via Digitalmars-d
On Thursday, 2 April 2015 at 09:09:04 UTC, Martin Nowak wrote: I'm not asking for a linear algebra library in phobos, although we need one in dub and should consider having one in Phobos at some point too. But it would be nice if std.numeric came with a multiply(T)(T[][] a, T[][] b, T[][]

Re: Benchmark of D against other languages

2015-04-02 Thread anonymous via Digitalmars-d
On Wednesday, 1 April 2015 at 22:49:55 UTC, Martin Nowak wrote: ³: Places 2, 3, and 4 thanks to std.numeric.dotProduct. An optimized dense matrix multiplication would get us #1. According to https://github.com/JuliaLang/julia#Required-Build-Tools-External-Libraries building Julia requires

Re: Benchmark of D against other languages

2015-04-02 Thread Martin Nowak via Digitalmars-d
On Thursday, 2 April 2015 at 08:32:13 UTC, anonymous wrote: It would be nice to have such a good matrix multiplication in Phobos but I think there are more important things to work on (GC, AA, ...), I'm not asking for a linear algebra library in phobos, although we need one in dub and should

Re: Benchmark of D against other languages

2015-04-02 Thread bearophile via Digitalmars-d
weaselcat: was it a conscious decision to make the AA [] operator not work like map/etc in C++? What do you mean? accessing a non-existing element in C++'s map/unordered_map inserts the default instead of raising an exception int main(int argc, char *argv[]) {

Re: Benchmark of D against other languages

2015-04-02 Thread Manu via Digitalmars-d
On 2 April 2015 at 08:15, Martin Nowak via Digitalmars-d digitalmars-d@puremagic.com wrote: On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? You could do it as part of LTO or whole program optimization. It requires another compiler/linker phase,

Re: Benchmark of D against other languages

2015-04-02 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 21:55:59 UTC, Iain Buclaw wrote: On 1 April 2015 at 04:17, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 31 March 2015 at 23:53:07 UTC, weaselcat wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository

Re: Benchmark of D against other languages

2015-04-02 Thread Iain Buclaw via Digitalmars-d
On 1 April 2015 at 04:17, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 31 March 2015 at 23:53:07 UTC, weaselcat wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such

Re: Benchmark of D against other languages

2015-04-02 Thread Iain Buclaw via Digitalmars-d
On 2 April 2015 at 00:15, Martin Nowak via Digitalmars-d digitalmars-d@puremagic.com wrote: On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? You could do it as part of LTO or whole program optimization. It requires another compiler/linker phase,

Re: Benchmark of D against other languages

2015-04-02 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the benchmark. https://github.com/kostya/benchmarks Thanks for

Re: Benchmark of D against other languages

2015-04-02 Thread lobo via Digitalmars-d
On Thursday, 2 April 2015 at 09:06:52 UTC, Manu wrote: On 2 April 2015 at 08:15, Martin Nowak via Digitalmars-d digitalmars-d@puremagic.com wrote: On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? You could do it as part of LTO or whole program

Re: Benchmark of D against other languages

2015-04-02 Thread Daniel Kozák via Digitalmars-d
On Thu, 02 Apr 2015 11:00:12 + lobo via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thursday, 2 April 2015 at 09:06:52 UTC, Manu wrote: On 2 April 2015 at 08:15, Martin Nowak via Digitalmars-d digitalmars-d@puremagic.com wrote: On 04/01/2015 10:31 PM, novice2 wrote: Can DMD

Re: Benchmark of D against other languages

2015-04-02 Thread deadalnix via Digitalmars-d
On Thursday, 2 April 2015 at 09:06:52 UTC, Manu wrote: virtual by default is completely wrong for D. And don't say 'speculative' devirtualisation. What an abomination! Just fix the problem; don't have every function be virtual in the first place! I'm not sure why you don't use struct in

Re: Benchmark of D against other languages

2015-04-01 Thread bearophile via Digitalmars-d
Andrei Alexandrescu: Oh boy all classes with one-liner non-final methods. Manu must be dancing a gig right now :o). -- Andrei Yes, the right default for D language should be final, because lot of programmers are lazy and they don't add attributes. Bye, bearophile

Re: Benchmark of D against other languages

2015-04-01 Thread Russel Winder via Digitalmars-d
On Tue, 2015-03-31 at 19:52 -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 3/31/15 7:17 PM, weaselcat wrote: posting this knowing that andrei is about to yell at me for not posting this in the reddit thread ;) Yep, while reading I had this loaded in my chamber: Remember that

Re: Benchmark of D against other languages

2015-04-01 Thread Andrei Alexandrescu via Digitalmars-d
On 4/1/15 3:06 AM, Russel Winder via Digitalmars-d wrote: On Tue, 2015-03-31 at 19:52 -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 3/31/15 7:17 PM, weaselcat wrote: posting this knowing that andrei is about to yell at me for not posting this in the reddit thread ;) Yep, while

Re: Benchmark of D against other languages

2015-04-01 Thread bearophile via Digitalmars-d
Martin Nowak: GCC5 comes with a big announcement about devirtualization. https://www.gnu.org/software/gcc/gcc-5/changes.html#general I have a small question. That page says: A new set of built-in functions for arithmetics with overflow checking has been added: __builtin_add_overflow,

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 22:49:55 UTC, Martin Nowak wrote: On 03/31/2015 08:20 PM, cym13 wrote: https://github.com/kostya/benchmarks We made a massive jump towards the upper ranks. #4 ¹ https://github.com/kostya/benchmarks/tree/master/brainfuck#user-content-benchmark-benchb #2

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 04:32:26 UTC, Martin Nowak wrote: On Thursday, 2 April 2015 at 04:11:02 UTC, weaselcat wrote: was it a conscious decision to make the AA [] operator not work like map/etc in C++? What do you mean? accessing a non-existing element in C++'s map/unordered_map

Re: Benchmark of D against other languages

2015-04-01 Thread Martin Nowak via Digitalmars-d
On Thursday, 2 April 2015 at 04:11:02 UTC, weaselcat wrote: was it a conscious decision to make the AA [] operator not work like map/etc in C++? What do you mean?

Re: Benchmark of D against other languages

2015-04-01 Thread Andrei Alexandrescu via Digitalmars-d
On 4/1/15 3:49 PM, Martin Nowak wrote: On 03/31/2015 08:20 PM, cym13 wrote: https://github.com/kostya/benchmarks We made a massive jump towards the upper ranks. [snip] This is amazing work. Thanks! -- Andrei

Re: Benchmark of D against other languages

2015-04-01 Thread Martin Nowak via Digitalmars-d
On 04/02/2015 01:39 AM, bearophile wrote: built-in functions for arithmetics with overflow checking Your persistent interest in integer overflow checks make we wonder if you were responsible for this? http://www.around.com/ariane.html

Re: Benchmark of D against other languages

2015-04-01 Thread Martin Nowak via Digitalmars-d
On 04/02/2015 03:35 AM, weaselcat wrote: the benchmark pointed out two sore areas in D(AA and std.json,) would be nice to see AA get updated as I often completely avoid using the built-in AA. I filed two ERs already, both are pretty isolated and not too hard to implement. I hope I don't have

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Thursday, 2 April 2015 at 03:55:53 UTC, Martin Nowak wrote: On 04/02/2015 03:35 AM, weaselcat wrote: the benchmark pointed out two sore areas in D(AA and std.json,) would be nice to see AA get updated as I often completely avoid using the built-in AA. I filed two ERs already, both are

Re: Benchmark of D against other languages

2015-04-01 Thread Namespace via Digitalmars-d
On Wednesday, 1 April 2015 at 08:52:06 UTC, bearophile wrote: Andrei Alexandrescu: Oh boy all classes with one-liner non-final methods. Manu must be dancing a gig right now :o). -- Andrei Yes, the right default for D language should be final, because lot of programmers are lazy and they

Re: Benchmark of D against other languages

2015-04-01 Thread Martin Nowak via Digitalmars-d
On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? Even more interesting a complete blog post about devirtualization. http://hubicka.blogspot.de/2014/02/devirtualization-in-c-part-4-analyzing.html

Re: Benchmark of D against other languages

2015-04-01 Thread Martin Nowak via Digitalmars-d
On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? You could do it as part of LTO or whole program optimization. It requires another compiler/linker phase, so it's not easy to achieve, maybe the LDC/GDC people have LTO running? GCC5 comes with a big

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 20:31:18 UTC, novice2 wrote: I am sorry for so dumb question, but: when peoples talking about D and speed, then they always say mark method final. Can DMD compiler do it itself, as one of optimizations? afaik there's no reason the compiler couldn't infer it for

Re: Benchmark of D against other languages

2015-04-01 Thread Russel Winder via Digitalmars-d
On Wed, 2015-04-01 at 07:48 -0700, Andrei Alexandrescu via Digitalmars-d wrote: Everybody compared to nobody. It's a statistics thing :o). You keep pulling me up for linguistic and logical inexactness, I feel no compunction… I trust your bit of the Alexandrescu tribe is doing well given the

Re: Benchmark of D against other languages

2015-04-01 Thread novice2 via Digitalmars-d
I am sorry for so dumb question, but: when peoples talking about D and speed, then they always say mark method final. Can DMD compiler do it itself, as one of optimizations?

Re: Benchmark of D against other languages

2015-04-01 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 22:15:42 UTC, Martin Nowak wrote: On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? You could do it as part of LTO or whole program optimization. It requires another compiler/linker phase, so it's not easy to achieve,

Re: Benchmark of D against other languages

2015-04-01 Thread deadalnix via Digitalmars-d
On Wednesday, 1 April 2015 at 22:30:55 UTC, weaselcat wrote: On Wednesday, 1 April 2015 at 22:15:42 UTC, Martin Nowak wrote: On 04/01/2015 10:31 PM, novice2 wrote: Can DMD compiler do it itself, as one of optimizations? You could do it as part of LTO or whole program optimization. It

Re: Benchmark of D against other languages

2015-04-01 Thread Martin Nowak via Digitalmars-d
On 03/31/2015 08:20 PM, cym13 wrote: https://github.com/kostya/benchmarks We made a massive jump towards the upper ranks. #4 ¹ https://github.com/kostya/benchmarks/tree/master/brainfuck#user-content-benchmark-benchb #2

Re: Benchmark of D against other languages

2015-03-31 Thread weaselcat via Digitalmars-d
On Wednesday, 1 April 2015 at 02:17:29 UTC, weaselcat wrote: ... forgot to label second test, it's the brainfuck one. p.s., D loses because of AA slowness.

Re: Benchmark of D against other languages

2015-03-31 Thread Andrei Alexandrescu via Digitalmars-d
On 3/31/15 7:17 PM, weaselcat wrote: posting this knowing that andrei is about to yell at me for not posting this in the reddit thread ;) Yep, while reading I had this loaded in my chamber: Remember that statistically NOBODY is on forum.dlang.org and EVERYBODY is on reddit! -- Andrei

Re: Benchmark of D against other languages

2015-03-31 Thread weaselcat via Digitalmars-d
On Tuesday, 31 March 2015 at 23:53:07 UTC, weaselcat wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the

Re: Benchmark of D against other languages

2015-03-31 Thread Meta via Digitalmars-d
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the benchmark. https://github.com/kostya/benchmarks Can you

Re: Benchmark of D against other languages

2015-03-31 Thread cym13 via Digitalmars-d
On Tuesday, 31 March 2015 at 18:32:25 UTC, Meta wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the

Re: Benchmark of D against other languages

2015-03-31 Thread Andrei Alexandrescu via Digitalmars-d
On 3/31/15 11:47 AM, Martin Nowak wrote: On 03/31/2015 08:46 PM, Andrei Alexandrescu wrote: Let's see: https://github.com/kostya/benchmarks/pull/4 Please fire up a profiler, you never know anything. True. I don't have time to put this on my plate, does anyone? -- Andrei

Re: Benchmark of D against other languages

2015-03-31 Thread Andrei Alexandrescu via Digitalmars-d
On 3/31/15 11:35 AM, cym13 wrote: On Tuesday, 31 March 2015 at 18:32:25 UTC, Meta wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard

Re: Benchmark of D against other languages

2015-03-31 Thread Andrei Alexandrescu via Digitalmars-d
On 3/31/15 11:44 AM, Andrei Alexandrescu wrote: On 3/31/15 11:35 AM, cym13 wrote: On Tuesday, 31 March 2015 at 18:32:25 UTC, Meta wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim,

Re: Benchmark of D against other languages

2015-03-31 Thread Andrei Alexandrescu via Digitalmars-d
On 3/31/15 11:45 AM, Andrei Alexandrescu wrote: On 3/31/15 11:44 AM, Andrei Alexandrescu wrote: On 3/31/15 11:35 AM, cym13 wrote: On Tuesday, 31 March 2015 at 18:32:25 UTC, Meta wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common

Re: Benchmark of D against other languages

2015-03-31 Thread Martin Nowak via Digitalmars-d
On 03/31/2015 08:46 PM, Andrei Alexandrescu wrote: Let's see: https://github.com/kostya/benchmarks/pull/4 Please fire up a profiler, you never know anything.

Benchmark of D against other languages

2015-03-31 Thread cym13 via Digitalmars-d
I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the benchmark. https://github.com/kostya/benchmarks

Re: Benchmark of D against other languages

2015-03-31 Thread ixid via Digitalmars-d
Oh boy all classes with one-liner non-final methods. Manu must be dancing a gig right now :o). -- Andrei Jig. =)

Re: Benchmark of D against other languages

2015-03-31 Thread weaselcat via Digitalmars-d
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go, python, C, etc... It uses only standard structures not to influence the benchmark. https://github.com/kostya/benchmarks dmd in

Re: Benchmark of D against other languages

2015-03-31 Thread Martin Nowak via Digitalmars-d
On 03/31/2015 09:07 PM, Andrei Alexandrescu wrote: True. I don't have time to put this on my plate, does anyone? -- Andrei Very little, here is my outcome. - brainfuck = better backend, better AA The switch in the run loop doesn't use a switch table. A lot of time is also spent on AA

Re: Benchmark of D against other languages

2015-03-31 Thread Ary Borenszweig via Digitalmars-d
On 3/31/15 3:44 PM, Andrei Alexandrescu wrote: On 3/31/15 11:35 AM, cym13 wrote: On Tuesday, 31 March 2015 at 18:32:25 UTC, Meta wrote: On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote: I found this repository (reddit!) that hosts common benchmarks for many languages such as D, Nim, Go,

Re: Benchmark of D against other languages

2015-03-31 Thread deadalnix via Digitalmars-d
On Tuesday, 31 March 2015 at 22:15:58 UTC, Ary Borenszweig wrote: But in Crystal he also uses classes and doesn't mark methods as final. And it's faster than D. Not familiar with their way of doing. Can you explain the crystal semantic ?

Re: Benchmark of D against other languages

2015-03-31 Thread Ary Borenszweig via Digitalmars-d
On 3/31/15 7:27 PM, deadalnix wrote: On Tuesday, 31 March 2015 at 22:15:58 UTC, Ary Borenszweig wrote: But in Crystal he also uses classes and doesn't mark methods as final. And it's faster than D. Not familiar with their way of doing. Can you explain the crystal semantic ? You can read