Hacker News new | past | comments | ask | show | jobs | submit login

I don't believe GHC actually does implement stream fusion. I think stream fusion happens with rewrite rules.



pardon my ignorance, but what would be the difference between the two? Don't rewrite rules happen in GCH anyway?


Sorry, I should have been clearer. The rewriting happens in GHC, but it's the application programmer who creates the rules. So, stream fusion isn't implemented by the compiler AFAIK.


ah that makes sense, thanks.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: