-
Notifications
You must be signed in to change notification settings - Fork 93
Add ChunkedUArray #109
Add ChunkedUArray #109
Conversation
Foundation/Array/ArrayUArray.hs
Outdated
-- | | ||
-- Module : Foundation.Array.ArrayUArray | ||
-- License : BSD-style | ||
-- Maintainer : Vincent Hanquez <[email protected]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should be you, or "Foundation" :)
so far it look fine ! One thing that might be a good idea would be to find a better name for this structure; while |
|
|
|
|
I have to agree with @JanGe. MultiArray makes me think of something with dimensions. There's also a good side too so I guess I could warm up to it |
Good point guys! I don't mind Something we still haven't figured out though is how to handle the "boxed" variant. So far |
I would go for ChunkedUArray and ChunkedArray. The semantics is that data is stored in chunks. Anything mentioning array twice, or 2, or multi, conjures up the wrong idea. |
I'm slowly making progress on this! I have fixed the implementation for |
I've added the implementation for Only 200 failing tests to go 😂 😂 |
I'ld recommend just doing the basic, and have everything else using |
That's actually a good suggestion! I think once I implement |
I'm definitely still on this (just working on it very sporadically due to life getting in the way). Once I get a correct |
Hey @vincenthz ! I have just completed the first pass of the I'm puzzled about why Travis is failing on some builds, do you have any idea here? Thank you guys! |
That looks like the issue we fixed in #127 and should go away when you rebase your branch on master. |
Hey @JanGe ! Thanks for chiming in. I already merged The weird thing is that is failing only for certain environments (and thus not consistently) with vague errors or How do you guys think is the best approach to troubleshoot this? Use @ndmitchell 's technique to identify space leaks trying to pinpoint if the cause is my code or if is lurking elsewhere? |
The stack overflow is due to old ghc that doesn't have support the MINIMUM pragma in typeclass, and not implementing the new methods |
Ouch, that's embarrassing, @vincenthz ! I totally missed the extra methods for Looks like we have a green build now, many thanks! (at the moment of writing Travis successfully built all the mandatory envs and is completely the last "failable" one). What do you reckon should be the next steps in order to make progress on this? At which point do you feel we should merge this and spin up ancillary tickets to improve the implementation of the stubbed methods? |
No worries about the collection new methods, there were added whilst you were adding this, so this is somewhat expected. yes, I think we shouldn't wait for merging this. It's an awesome step already, and well done for completing the initial phase ! We can now incrementally add and improve things. |
Thanks man! Feel free to merge whenever that makes sense. 🎉 |
This is a wip implementation of
ChunkedUArray
. Please chime in if you think what I have got so far looks fishy.Feature list:
Sequential
instance functionsIndexedCollection
instance functionsCollection
instance functionsindex
unsafeIndex
read
write