TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Haskell Optimization Handbook

61 pointsby ghuntleyalmost 2 years ago

4 comments

doyougnualmost 2 years ago
Author here! I figured it was only a matter of time before this showed up on HN after the haskell foundation announced we had moved it the HF org. If you have any recommendations then by all means please open an issue, but bear in mind that the book is still very much a work in progress. And most chapters are just todos at the moment.<p>My goal is to have a handbook that consolidates and demystifies optimizing GHC Haskell because I think this resource is sorely missing in the Haskell community. So that includes reading and understanding Core, Stg, and Cmm as well as understanding the tools that already exist for GHC Haskell but are under documented in addition to the real advanced features, like altering the RunTimeRep your data types to control their behavior at runtime. Needless to say there is a lot to do :)
paulddraperalmost 2 years ago
Link to site: <a href="https:&#x2F;&#x2F;haskell.foundation&#x2F;hs-opt-handbook.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;haskell.foundation&#x2F;hs-opt-handbook.github.io&#x2F;</a><p>(rather than the source code)
_queryalmost 2 years ago
In case this got you interested in Haskell, and you want a good way to start your Haskell journey (and have something to apply the optimization handbook to), check out IHP. It&#x27;s the Rails&#x2F;Laravel of the Haskell world. Here&#x27;s a demo video <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=UbDtS_mUMpI">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=UbDtS_mUMpI</a> You can start here <a href="https:&#x2F;&#x2F;ihp.digitallyinduced.com&#x2F;Guide&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;ihp.digitallyinduced.com&#x2F;Guide&#x2F;index.html</a> or check it out on GitHub here <a href="https:&#x2F;&#x2F;github.com&#x2F;digitallyinduced&#x2F;ihp">https:&#x2F;&#x2F;github.com&#x2F;digitallyinduced&#x2F;ihp</a>
chowellsalmost 2 years ago
That long list of topics, and yet nothing on the critical one: understanding laziness. It turns out cargo-culting around a lack of understanding doesn&#x27;t lead to good performance.
评论 #36128177 未加载
评论 #36128532 未加载
评论 #36128280 未加载