Designing a matrix library for D
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 23 14:33:52 PDT 2014
On Mon, Jun 23, 2014 at 09:09:03PM +0000, bearophile via Digitalmars-d wrote:
> H. S. Teoh:
>
> >The key to success, then, lies in how we design the generic matrix
> >API. If we do it right, then it should be easy to implement features
> >like compile-time size verifications, etc.. Otherwise it can be very
> >painful.
>
> One point of my post was to see if it could be useful to extend and
> improve the current D type system. Apparently you are saying this is
> not needed for efficiency reasons (but perhaps some type system
> improvements could be useful to reduce template bloat with the usage
> of this matrix library. The idea is to perform the compile-time tests
> of the sizes, and then remove such types in most cases, avoiding the
> template bloat. There are manual ways to do this, but here it's better
> to receive help from the type system).
[...]
I'm not against using / extending the type system to improve performance
or reduce template bloat. But it would be far more ambitious than to
implement something that works with the current language.
T
--
Laissez-faire is a French term commonly interpreted by Conservatives to mean 'lazy fairy,' which is the belief that if governments are lazy enough, the Good Fairy will come down from heaven and do all their work for them.
More information about the Digitalmars-d
mailing list