You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add more helper utilities for the .Mutable modules in Vector #64
I'm thinking it'd be good to provide a bunch of the "functional" flavored operations (albeit with monadic results), plus a bunch of inplace operations.
basicaly: everything that has a reasonable definition for the .Mutable modules (though they wont fuse), and that we provide in the pure setting, we should provide, plus the inplace versions of applicable operations.
Today I needed elemIndex for a mutable vector and I was disappointed when I couldn't find anything similar. In the ideal world, elemIndex could be extremely fast on unboxed mutable vectors, like memchr fast! This would be very useful in low level algorithms.
I might have some cycles, but no working knowledge of the vector package internals. How could I help get this issue moving?
Activity
cartazio commentedon Dec 9, 2014
and hopefully this could be done for the 0.11 release
archblob commentedon Dec 10, 2014
If you have anything in mind I can whip up a PR for this.
cartazio commentedon Dec 10, 2014
I've not thought that far!
I'm thinking it'd be good to provide a bunch of the "functional" flavored operations (albeit with monadic results), plus a bunch of inplace operations.
Eg, map and imap, plus inplace versions thereof.
cartazio commentedon Dec 10, 2014
basicaly: everything that has a reasonable definition for the .Mutable modules (though they wont fuse), and that we provide in the pure setting, we should provide, plus the inplace versions of applicable operations.
like http://hackage.haskell.org/package/vector-0.10.12.2/docs/Data-Vector-Generic-Mutable.html is pretty impoverished compared with http://hackage.haskell.org/package/vector-0.10.12.2/docs/Data-Vector-Generic.html
archblob commentedon Dec 10, 2014
Yeah, I see. Also the documentation has some holes. I will have a go.
cartazio commentedon Dec 10, 2014
you rock! (this is a lot of work mind you, lemme know if you want help!)
osa1 commentedon Aug 18, 2015
Is this for adding utilities like http://hackage.haskell.org/package/vector-0.11.0.0/docs/Data-Vector-Storable.html#g:29 to mutable ones? If so , a big 👍 from me.
archblob commentedon Sep 7, 2015
Yes it is, but as you can see I'm really lazy so it may take a while.
cartazio commentedon Jul 24, 2016
@archblob any chance this is still lying in your queue? :) or it is open season?
archblob commentedon Sep 4, 2016
It seems I still have a branch on my fork. Though now that I'm reminded of this, it's pretty tempting.sigh.
But It's pretty much open season.
paraseba commentedon Jun 15, 2018
Is this still planned?
Today I needed
elemIndexfor a mutable vector and I was disappointed when I couldn't find anything similar. In the ideal world,elemIndexcould be extremely fast on unboxed mutable vectors, like memchr fast! This would be very useful in low level algorithms.I might have some cycles, but no working knowledge of the vector package internals. How could I help get this issue moving?
Shimuuar commentedon Oct 21, 2020
Closed in favor of #334