Re: DMD is slow for matrix maths?

2015-10-29 Thread jmh530 via Digitalmars-d
On Thursday, 29 October 2015 at 08:24:19 UTC, Iain Buclaw wrote: std.algorithm.sum was the slowest of the bunch. I would be a little careful making comparisons with std.algorithm.sum because it uses a variety of different algorithms.

Re: DMD is slow for matrix maths?

2015-10-29 Thread Iain Buclaw via Digitalmars-d
On 29 October 2015 at 14:41, jmh530 via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Thursday, 29 October 2015 at 08:24:19 UTC, Iain Buclaw wrote: > >> >> std.algorithm.sum was the slowest of the bunch. >> >> > I would be a little careful making comparisons with std.algorithm.sum >

Re: DMD is slow for matrix maths?

2015-10-29 Thread Iain Buclaw via Digitalmars-d
On 27 Oct 2015 9:15 pm, "David Nadlinger via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On Tuesday, 27 October 2015 at 18:19:38 UTC, Etienne Cimon wrote: >> >> On Tuesday, 27 October 2015 at 18:18:36 UTC, Etienne Cimon wrote: >>> >>> LDC couldn't inline it either. My only options at

Re: DMD is slow for matrix maths?

2015-10-28 Thread Marco Leise via Digitalmars-d
Am Mon, 26 Oct 2015 11:37:16 + schrieb Etienne Cimon : > On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: > > On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via > > Digitalmars-d wrote: > > > > If you must use DMD, I recommend filing an enhancement

Re: DMD is slow for matrix maths?

2015-10-27 Thread Iain Buclaw via Digitalmars-d
On 27 Oct 2015 4:25 am, "Laeeth Isharc via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > 3) what exactly is the opportunity cost of Iain working on gdc ? It's hardly a fixed size cake. And I don't know, but the relationships between different back end people doesn't from public

Re: DMD is slow for matrix maths?

2015-10-27 Thread burjui via Digitalmars-d
On Tuesday, 27 October 2015 at 05:27:22 UTC, Jack Stouffer wrote: My intentions are to call things as they are. If people are demoralized after learning that one person working in his spare time can't match the productivity of several people working full time, then they need a reality check.

Re: DMD is slow for matrix maths?

2015-10-27 Thread ponce via Digitalmars-d
On Tuesday, 27 October 2015 at 11:23:37 UTC, burjui wrote: On Tuesday, 27 October 2015 at 05:27:22 UTC, Jack Stouffer wrote: My intentions are to call things as they are. If people are demoralized after learning that one person working in his spare time can't match the productivity of several

Re: DMD is slow for matrix maths?

2015-10-27 Thread Etienne Cimon via Digitalmars-d
On Monday, 26 October 2015 at 20:30:51 UTC, rsw0x wrote: On Monday, 26 October 2015 at 11:37:17 UTC, Etienne Cimon wrote: On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via Digitalmars-d wrote: If you must use DMD, I

Re: DMD is slow for matrix maths?

2015-10-27 Thread Etienne Cimon via Digitalmars-d
On Tuesday, 27 October 2015 at 18:18:36 UTC, Etienne Cimon wrote: On Monday, 26 October 2015 at 20:30:51 UTC, rsw0x wrote: On Monday, 26 October 2015 at 11:37:17 UTC, Etienne Cimon wrote: On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: [...] I'd really like the performance

Re: DMD is slow for matrix maths?

2015-10-27 Thread Walter Bright via Digitalmars-d
On 10/25/2015 7:37 PM, Etienne Cimon wrote: I think the best option would be for an inline feature in DMD that works, but I'm wondering what the stance is right now about the subject? There have been some recent changes to improve inlining in dmd:

Re: DMD is slow for matrix maths?

2015-10-27 Thread David Nadlinger via Digitalmars-d
On Tuesday, 27 October 2015 at 18:19:38 UTC, Etienne Cimon wrote: On Tuesday, 27 October 2015 at 18:18:36 UTC, Etienne Cimon wrote: LDC couldn't inline it either. My only options at this point is to write the assembly or link to a C library. Btw, DMD and LDC had similar performance. This

Re: DMD is slow for matrix maths?

2015-10-26 Thread Etienne Cimon via Digitalmars-d
On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via Digitalmars-d wrote: If you must use DMD, I recommend filing an enhancement request and bothering Walter about it. T I'd really like the performance benefits to be

Re: DMD is slow for matrix maths?

2015-10-26 Thread Jack Stouffer via Digitalmars-d
On Monday, 26 October 2015 at 21:29:47 UTC, default0 wrote: On Monday, 26 October 2015 at 20:30:51 UTC, rsw0x wrote: dmd will never reach gdc/ldc performance, gcc and LLVM have entire teams of people that actively contribute to their compilers. We have a Walter though :-) Walter has a

Re: DMD is slow for matrix maths?

2015-10-26 Thread rsw0x via Digitalmars-d
On Monday, 26 October 2015 at 11:37:17 UTC, Etienne Cimon wrote: On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via Digitalmars-d wrote: If you must use DMD, I recommend filing an enhancement request and bothering Walter

Re: DMD is slow for matrix maths?

2015-10-26 Thread default0 via Digitalmars-d
On Monday, 26 October 2015 at 20:30:51 UTC, rsw0x wrote: dmd will never reach gdc/ldc performance, gcc and LLVM have entire teams of people that actively contribute to their compilers. We have a Walter though :-)

Re: DMD is slow for matrix maths?

2015-10-26 Thread Márcio Martins via Digitalmars-d
On Monday, 26 October 2015 at 02:37:18 UTC, Etienne Cimon wrote: I've been playing around with perf and my web server and found that the bottleneck is by far the math module of Botan: https://github.com/etcimon/botan/blob/master/source/botan/math/mp/mp_core.d [...]

Re: DMD is slow for matrix maths?

2015-10-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 October 2015 at 23:13:22 UTC, Jack Stouffer wrote: On Monday, 26 October 2015 at 21:29:47 UTC, default0 wrote: On Monday, 26 October 2015 at 20:30:51 UTC, rsw0x wrote: dmd will never reach gdc/ldc performance, gcc and LLVM have entire teams of people that actively contribute to

Re: DMD is slow for matrix maths?

2015-10-26 Thread rsw0x via Digitalmars-d
On Tuesday, 27 October 2015 at 02:21:40 UTC, Laeeth Isharc wrote: On Monday, 26 October 2015 at 23:13:22 UTC, Jack Stouffer wrote: [...] Someone who says never is certainly making a bold claim in an uncertain world at a time when the basic factors governing the fate of D are visibly

Re: DMD is slow for matrix maths?

2015-10-26 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 27 October 2015 at 03:14:55 UTC, rsw0x wrote: On Tuesday, 27 October 2015 at 02:21:40 UTC, Laeeth Isharc wrote: On Monday, 26 October 2015 at 23:13:22 UTC, Jack Stouffer wrote: [...] Someone who says never is certainly making a bold claim in an uncertain world at a time when the

Re: DMD is slow for matrix maths?

2015-10-26 Thread Laeeth Isharc via Digitalmars-d
On Tuesday, 27 October 2015 at 03:10:43 UTC, H. S. Teoh wrote: On Tue, Oct 27, 2015 at 02:21:38AM +, Laeeth Isharc via Digitalmars-d wrote: [...] So I would suggest it isn't productive to think about whether Dmd will catch up. Maybe, maybe not. Doesn't matter. Making it faster will help

Re: DMD is slow for matrix maths?

2015-10-26 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 27 October 2015 at 02:21:40 UTC, Laeeth Isharc wrote: In addition, it's mildly demoralising to others to say such things, no matter how good ones intent might be. My intentions are to call things as they are. If people are demoralized after learning that one person working in his

Re: DMD is slow for matrix maths?

2015-10-26 Thread H. S. Teoh via Digitalmars-d
On Tue, Oct 27, 2015 at 02:21:38AM +, Laeeth Isharc via Digitalmars-d wrote: [...] > So I would suggest it isn't productive to think about whether Dmd will > catch up. Maybe, maybe not. Doesn't matter. Making it faster will > help many - this defeatist attitude of 'why bother - just use GDC

Re: DMD is slow for matrix maths?

2015-10-26 Thread H. S. Teoh via Digitalmars-d
On Mon, Oct 26, 2015 at 11:37:16AM +, Etienne Cimon via Digitalmars-d wrote: > On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: > >On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via Digitalmars-d > >wrote: > > > >If you must use DMD, I recommend filing an enhancement

Re: DMD is slow for matrix maths?

2015-10-26 Thread Dmitry Olshansky via Digitalmars-d
On 26-Oct-2015 16:44, H. S. Teoh via Digitalmars-d wrote: On Mon, Oct 26, 2015 at 11:37:16AM +, Etienne Cimon via Digitalmars-d wrote: On Monday, 26 October 2015 at 04:48:09 UTC, H. S. Teoh wrote: On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via Digitalmars-d wrote: If you must

DMD is slow for matrix maths?

2015-10-25 Thread Etienne Cimon via Digitalmars-d
I've been playing around with perf and my web server and found that the bottleneck is by far the math module of Botan: https://github.com/etcimon/botan/blob/master/source/botan/math/mp/mp_core.d I'm probably a bit naive but I was wishing for some inlining to happen. I see LOTS of CPU time

Re: DMD is slow for matrix maths?

2015-10-25 Thread H. S. Teoh via Digitalmars-d
On Mon, Oct 26, 2015 at 02:37:16AM +, Etienne Cimon via Digitalmars-d wrote: > I've been playing around with perf and my web server and found that > the bottleneck is by far the math module of Botan: > https://github.com/etcimon/botan/blob/master/source/botan/math/mp/mp_core.d > > I'm