digitalmars.D - Re: Is [] mandatory for array operations?
- Kagamin <spam here.lot> May 07 2010
- Johan Granberg <lijat.meREM OVEgmail.com> May 07 2010
Johan Granberg Wrote:There is another use for array ops as well, that is to create a nice syntax for doing the same operation over all elements in an array. Matlab is doing this in a very nice way and it is far from all uses that requiers optimal speed.
I actually saw butthurt about matlab being not a speed demon.
May 07 2010
Kagamin wrote:Johan Granberg Wrote:There is another use for array ops as well, that is to create a nice syntax for doing the same operation over all elements in an array. Matlab is doing this in a very nice way and it is far from all uses that requiers optimal speed.
I actually saw butthurt about matlab being not a speed demon.
It is true that in some cases the lack of speed hurts. But if the coice is about not being able to do this array operations at all. I think it is an acceptable tradeof that the people that need optimal speed write there code in a more uncompressed formm using manual loops or wathewer. Then the cases not on the criitical path of the program can be written more compactly using a slightly slower but much faster to write style. I also think this would hur D less than matlab as it is more obvoius what is slow in D than in matlab because D is a systems programing language.
May 07 2010