3 ms·
A smart enough compiler can and will fuse your loops / iterators. GHC does for example.
by eru 2y ago
A smart enough compiler can and will fuse your loops / iterators.
GHC does for example.
- eigenspace 2y agoRelying on a sufficiently smart compiler to turn bad algorithms into good algorithms is unreliable. It's much better to just have a way of expressing efficient algorithms naturally, which is what transducers excel at.