On Friday, 31 May 2013 at 05:49:55 UTC, finalpatch wrote:
Thanks Nazriel,

It is very cool you are able to narrow the gap to within 1.5x of c++ with a few simple changes.

I checked your version, there are 3 changes (correct me if i missed any):

* Change the (float) constructor from v= [x,x,x] to v[0] = x; v[1] = x; v[2] = x;
* Get rid of the (float[]) constructor and use 3 floats instead

I thought GDC or LDC have something like:
float[$] v = [x, x, x];
which is converted to
flot[3] v = [x, x, x];

Am I wrong?
DMD need something like this too.

Reply via email to