Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more helper utilities for the .Mutable modules in Vector #64

Closed
cartazio opened this issue Dec 9, 2014 · 12 comments
Closed

add more helper utilities for the .Mutable modules in Vector #64

cartazio opened this issue Dec 9, 2014 · 12 comments

Comments

@cartazio
Copy link
Contributor

cartazio commented Dec 9, 2014

the .Mutable modules are currently a bit impoverished. could use some more utilities

@cartazio
Copy link
Contributor Author

cartazio commented Dec 9, 2014

and hopefully this could be done for the 0.11 release

@archblob
Copy link
Contributor

If you have anything in mind I can whip up a PR for this.

@cartazio
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor

Yeah, I see. Also the documentation has some holes. I will have a go.

@cartazio
Copy link
Contributor Author

you rock! (this is a lot of work mind you, lemme know if you want help!)

@osa1
Copy link

osa1 commented 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
Copy link
Contributor

archblob commented Sep 7, 2015

Yes it is, but as you can see I'm really lazy so it may take a while.

@cartazio
Copy link
Contributor Author

@archblob any chance this is still lying in your queue? :) or it is open season?

@archblob
Copy link
Contributor

archblob commented 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
Copy link

Is this still planned?

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?

@Shimuuar
Copy link
Contributor

Closed in favor of #334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants