On Tuesday, 26 July 2016 at 10:35:12 UTC, Etranger wrote:
I'll have time 2 months from now as I'm getting married in 2
weeks :)
Congratulations!
On Saturday, 23 July 2016 at 23:55:44 UTC, ag0aep6g wrote:
On 07/23/2016 01:05 PM, Etranger wrote:
[...]
To avoid the string mixin, you can let VecExpression take an
alias of the mixin template (Vec_impl/VecSum_impl) and the list
of arguments:
[...]
Thanks ! that's way much cleaner and t
On Sunday, 24 July 2016 at 10:53:41 UTC, Ilya Yaroshenko wrote:
On Saturday, 23 July 2016 at 11:05:57 UTC, Etranger wrote:
[...]
Yes, but it is more complicated in terms of multidimensional
and generic abstraction.
First we need to finish and test general matrix multiplication
[2].
[...]
ional case.
It would be more flexible than expression templates. But it
requires more complex architecture analysis.
4- Do you known any D libs that uses expression template for
linear algebra ?
I don't know. ndslice provides operations like `a[] += b` [1]. I
just opened a PR to optimise
On Saturday, 23 July 2016 at 23:36:40 UTC, Etranger wrote:
is there any good benchmarking lib like the #[bench] in rust
that I can use ?)
dunno, i'm usually just using std.datetime.benchmark.
On 07/23/2016 01:05 PM, Etranger wrote:
1- Is there a cleaner way to do it ? I had to use struct because I want
every thing to happen at compile time and on the stack (without gc). And
I had to use string mixins because template mixin does not work the way
I tried to use it ( see the error last l
On Saturday, 23 July 2016 at 19:08:45 UTC, ketmar wrote:
2OP: sorry, i can barely read that code. this has nothing to do
with your skills, it is the topic -- i've never seen clean lazy
evaluation code. after all, this is a hack.
still, i think that such a library worth at least some work.
as
2OP: sorry, i can barely read that code. this has nothing to do
with your skills, it is the topic -- i've never seen clean lazy
evaluation code. after all, this is a hack.
still, i think that such a library worth at least some work.
as for "is my code/approach is good enough", i know only two
On Saturday, 23 July 2016 at 12:27:39 UTC, rikki cattermole wrote:
Either way I recommend you not worry about it. Compilers can be
smart and dmd is mostly good enough in this department.
he has something to worry about. remember, this is scientific
department, where ours 4x4 matrices are child
On Saturday, 23 July 2016 at 12:09:18 UTC, Etranger wrote:
On Saturday, 23 July 2016 at 11:19:34 UTC, rikki cattermole
wrote:
On 23/07/2016 11:05 PM, Etranger wrote:
[snip]
[...]
My goodness that code is awful.
I have a fair idea what you are attempting to do here.
So I'm going to point you
On Saturday, 23 July 2016 at 12:27:39 UTC, rikki cattermole wrote:
If you evaluate it as v = a + b + c instead of v = a + (b + c)
you will still have a temporary value. Remember structs are
just the values they carry and are basically optimized out.
Either way I recommend you not worry about
ruct because I want
every thing to happen at compile time and on the stack (without gc). And
I had to use string mixins because template mixin does not work the way
I tried to use it ( see the error last line).
2- Is there a safer way to do it (without using pointers) ?
3- Do you think I'll h
happen at compile time and on the stack
(without gc). And
I had to use string mixins because template mixin does not
work the way
I tried to use it ( see the error last line).
2- Is there a safer way to do it (without using pointers) ?
3- Do you think I'll hit a wall with this approach
ing mixins because template mixin does not work the way
I tried to use it ( see the error last line).
2- Is there a safer way to do it (without using pointers) ?
3- Do you think I'll hit a wall with this approach ?
4- Do you known any D libs that uses expression template for linear
algebra ?
I had to use string mixins because template
mixin does not work the way I tried to use it ( see the error
last line).
2- Is there a safer way to do it (without using pointers) ?
3- Do you think I'll hit a wall with this approach ?
4- Do you known any D libs that uses expression template for
linear algebra ?
I thank you in advance for your help and wish you a nice weekend
(and apologize for my bad english) :)
On Thu, 07 May 2009 03:31:46 +0200, The Anh Tran wrote:
Trass3r wrote:
The Anh Tran schrieb:
One of my C++ struct is Vector3. It is a wrapper from D3DXVECTOR3.
I would like to use expression template to calculate where to point
the gun. In C++, it is provided by boost::proto or boost
Trass3r wrote:
The Anh Tran schrieb:
One of my C++ struct is Vector3. It is a wrapper from D3DXVECTOR3.
I would like to use expression template to calculate where to point
the gun. In C++, it is provided by boost::proto or boost::ublas.
You calculate where to point the gun at compile-time
The Anh Tran schrieb:
One of my C++ struct is Vector3. It is a wrapper from D3DXVECTOR3.
I would like to use expression template to calculate where to point the
gun. In C++, it is provided by boost::proto or boost::ublas.
You calculate where to point the gun at compile-time?
Hi,
I'm converting my pet project from C++ to D. It is an aimbot game cheat.
One of my C++ struct is Vector3. It is a wrapper from D3DXVECTOR3.
I would like to use expression template to calculate where to point the
gun. In C++, it is provided by boost::proto or boost::ublas.
My
19 matches
Mail list logo