Hacker News new | ask | show | jobs
by eru 605 days ago
A smart enough compiler can and will fuse your loops / iterators.

GHC does for example.

1 comments

Relying 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.