On Friday, 23 March 2012 at 10:48:55 UTC, Dmitry Olshansky wrote:
On 23.03.2012 9:57, Comrad wrote:
On Thursday, 22 March 2012 at 10:43:35 UTC, Trass3r wrote:
What is the status at the moment? What compiler and with
which
compiler flags I should use to achieve maximum performance
On Friday, 23 March 2012 at 11:20:59 UTC, Trass3r wrote:
The flags you want are -O, -inline -release.
If you don't have those, then that might explain some of the
slow down
on slicing, since -release drops a ton of runtime checks.
-noboundscheck option can also speed up things.
dmd is
I'd like to try d in computational physics. One of the most
appealing features of the d is implementation of arrays, but to
be really usable this has to work FAST.
So here http://dlang.org/arrays.html it is stated, that:
Implementation note: many of the more common vector
operations
On Thursday, 22 March 2012 at 10:43:35 UTC, Trass3r wrote:
What is the status at the moment? What compiler and with which
compiler flags I should use to achieve maximum performance?
In general gdc or ldc. Not sure how good vectorization is
though, esp. auto-vectorization.
On the other hand
On Thursday, 8 March 2012 at 08:19:02 UTC, Kapps wrote:
On Thursday, 8 March 2012 at 07:53:02 UTC, Jonathan M Davis
wrote:
It would be nice, but I honestly don't understand the people
who think that
the lack of it is crippling. It's just one of those
nice-to-have features.
Most languages
1 struct A
2 {
3 double[2] _x;
4 }
5
6 @property ref double y(ref A a) {return a._x[1];}
7
8 void main()
9 {
10 A a1;
11 a1.y=2.;
12 }
dmd test.d gives me:
Error: no property 'y' for type 'A'
On Thursday, 8 March 2012 at 00:04:55 UTC, Ali Çehreli wrote:
On 03/07/2012 03:54 PM, Ali Çehreli wrote:
On 03/07/2012 03:21 PM, Comrad wrote:
1 struct A
2 {
3 double[2] _x;
4 }
5
6 @property ref double y(ref A a) {return a._x[1];}
7
8 void main()
9 {
10 A a1;
11 a1.y=2.;
12 }
dmd
On Thursday, 8 March 2012 at 06:43:45 UTC, Jonathan M Davis wrote:
On Wednesday, March 07, 2012 22:40:02 H. S. Teoh wrote:
On Thu, Mar 08, 2012 at 07:32:18AM +0100, Comrad wrote:
[...]
Basically, I was following Andrei's book, where this feature
is
described. It's a pity, that it's