4 ms·
Matlab does in fact make all those temporary arrays. So does R. See my comment above [1] – the idea is not that you should devectorize everything, but that you
by StefanKarpinski 13y ago
Matlab does in fact make all those temporary arrays. So does R. See my comment above [1] – the idea is not that you should devectorize everything, but that you can if you need to. Automatic devectorization of general purpose code is not something anyone knows how to do – even in Haskell, which is the best candidate language for such things – see moomin's comment below [2].
[1] https://news.ycombinator.com/item?id=6341406 https://news.ycombinator.com/item?id=6341406
[2] https://news.ycombinator.com/item?id=6341187 https://news.ycombinator.com/item?id=6341187