Best way to get to CAS/fetch-and-add on unboxed vectors?
Jan-Willem Maessen
jmaessen at alum.mit.edu
Wed Nov 20 15:21:07 UTC 2013
On Wed, Nov 20, 2013 at 10:06 AM, Ryan Newton <rrnewton at gmail.com> wrote:
> (3) The most invasive (but best for the user) change would be to extend
> the basic MVector interface to include notions of concurrency-related
> operations right inside the vector package (CAS, etc). But they should
> still probably go in a separate class (not class MVector), just because
> they will be specific to Unboxed and Storable vectors rather than boxed
> ones....
>
Any reason we shouldn't be able to CAS on boxed vectors? Every
architecture supports a pointer-sized CAS. What "equality" means for CAS,
of course, has to be rather carefully defined, but that's equally true for
the unboxed types.
-Jan
>
> -Ryan
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20131120/3b44d1ed/attachment.html>
More information about the Libraries
mailing list