[julia-users] Re: array concatenation without copying?

2015-07-06 Thread Tom Breloff
I threw together a first draft of the concept I'm looking for: https://github.com/tbreloff/Blox.jl. I only implemented the 1D case so far as I'm just playing around to figure out what I want the interface to look like. This is very similar to ChainedVectors in the 1D case I think. I plan on

Re: [julia-users] Re: array concatenation without copying?

2015-07-06 Thread Tim Holy
On Monday, July 06, 2015 10:59:48 AM Tom Breloff wrote: I plan on adding views to this as well, which will probably just check to see if the indices are contained within a sub-array to return an ArrayViews::view, otherwise a light wrapper around a BlockView You're not going to be able to do

Re: [julia-users] Re: array concatenation without copying?

2015-07-06 Thread Tom Breloff
Yes for the general behavior I had in mind it would be nearly impossible to keep the view constructor type-safe. For certain uses, that's less important than keeping the subsequent operations fast and type-safe, but that may be a very steep hill to climb. As I'm thinking about the problem a

Re: [julia-users] Re: array concatenation without copying?

2015-07-06 Thread Tom Breloff
*when I said type-safe, I actually meant type-stable as Tim was discussing On Monday, July 6, 2015 at 7:48:23 PM UTC-4, Tom Breloff wrote: Yes for the general behavior I had in mind it would be nearly impossible to keep the view constructor type-safe. For certain uses, that's less