Chris Elrod

Results 816 comments of Chris Elrod

But I also need to ask to clarify -- what is the actual memory layout you have in mind? Do you only intend the array to be iterated in a...

> and I dispatch using `ArrayInterface.size`. It seems to me this would only be entirely static when _all_ sizes are known statically. Not sure what you meant here, but `ArrayInterface.size`...

> Then, if you're building a generated function, ArrayInterface.size doesn't help, because it fails on types. It's helpful to know about known_size. Looking at your earlier example, something like this...

What is the benefit of that?

Would fix: https://github.com/JuliaSIMD/LoopVectorization.jl/issues/365

Out of curiosity, what do you think of [BangBang.jl](https://github.com/JuliaFolds/BangBang.jl)? It maybe nice to try and support a more uniform interface, e.g. `x = push!!(x, 2)`. Of course, the methods changing...

> I'm going to do a slight refractor of `layout_plan` to resolve world age issues. I'll have to look at this later, but on the subject of world age issues,...

```julia julia> A = zeros(3, 4, 5); julia> A[:] = 1:60; julia> Aview = view(A, :, 2, :); julia> ArrayInterface.StrideIndex(Aview)[1,1] 1 julia> Aview[ArrayInterface.StrideIndex(Aview)[1,1]] 4.0 julia> Aview[1,1] 4.0 ``` What's the...

Also, methods like `pointer` do the offsetting for you: ```julia julia> using ArrayInterface julia> A = zeros(3, 4, 5); julia> A[:] = 1:60; julia> Aview = view(A, :, 2, :);...

What about something for extracting static/known size information? Something like: ```julia known_start(::Any) = nothing known_stop(::Any) = nothing known_start(::Type{