This is a little bit out-of-context, but could you qualify this a little 
bit more?

On Tuesday, February 17, 2015 at 5:07:03 PM UTC+1, Tim Holy wrote:
>
> This has nothing to do with isa. In julia, a scalar is different from a 1- 
> element array. Matlab doesn't make that distinction, because in Matlab 
> _everything_ is an array. Which is much of why Matlab is slow for many 
> things. 
>
>
Matlab has issues and one prominent thing is the copy on write or the 
general function call overhead (see recursive fib benchmark). That scalars 
as 1x1 matrices slows down the execution is new to me. In the same sense 
you could call julia slow because it focuses on scalars and creates (afaiu) 
unecessary copies of arrays in a += b, even it could modify a in-place.

 

Reply via email to