Matt Bauman
Matt Bauman
> `Julia` the language has semantics that are independent of `julia` the program, although `julia` the program is required to be a correct implementation of `Julia` the language. Ahhh, thank...
One thing that's a little fuzzy to me is the various concepts and the wordings that are used for them: * `Julia`-the-language can be any of: * Julia * the...
I'm becoming radicalized against `eltype`, too. It can be useful to _overlay_ certain optimizations, but it really cannot be used to define the fundamental behaviors. Yes, dealing with values purely...
This is an intentional feature. Zero-dimensional arrays act like scalars in broadcast.
Oh my, you're right — I missed your third example there. That indeed is a bug.
In short: we have long depended upon broadcasting to implement a number of array functions that implicitly work elementwise. We just add additional size checks. Unfortunately we now also need...
Yes, I'm in complete agreement. That's the bug, and it needs to be fixed. Edit (a year later): I'm confused by my comment. I'm pretty sure I didn't mean to...
Here's the crux of the problem: What should `1 .+ 2` return? Is it `3` or is it `fill(3)`? As far as broadcast is concerned, it's exactly the same as...
> I don't see any principled reason for `1 .+ 2` to be `3`. I tend to agree; I have a strong distaste for behaviors like this on principle. The...
It's just that folks would see zero-dimensional arrays much more frequently; making them more capable and allowing them to do things like `fill(2) * rand(3,3)` would ameliorate some of the...