Y
Hacker News
new
|
ask
|
show
|
jobs
by
DanWaterworth
4353 days ago
I don't believe GHC actually does implement stream fusion. I think stream fusion happens with rewrite rules.
1 comments
riffraff
4353 days ago
pardon my ignorance, but what would be the difference between the two? Don't rewrite rules happen in GCH anyway?
link
DanWaterworth
4352 days ago
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.
link
riffraff
4352 days ago
ah that makes sense, thanks.
link