Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Working with unzipped structures (xs+ys instead of xys) can be a bit of a pain. It seems like a transformation that a compiler should be able to do easily, given enough information about structure and (ugh) aliasing. I wish C had real array types. :(


Happily, in Haskell the standard array library does the struct of arrays format for unboxed arrays. It's super handy!


I thought the array package was deprecated. Its mutable API is nicer than vector’s, though, if I recall correctly.


Vector does the SOA represetation too.


yup, Vector is the one i have mind. (Vector is also an array lib)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: