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.

Ask HN: Favourite resources for learning programming type theory?

6 pointsby stephantul2 months ago
Hello HN,<p>Recently, I&#x27;ve been massively enjoying diving into type checkers and how to effectively use them (mostly in Python).<p>I lack foundational knowledge about the topic (I never studied CS), however, so I am looking for introductory textbooks&#x2F;blogs&#x2F;resources on the topic.<p>More specifically: I see terms being thrown around like &quot;Algebraic sum type&quot;, &quot;covariant&quot;, &quot;contravariant&quot;, and I would like to understand more about what they mean and imply in a practical sense.<p>Thanks!

4 comments

kingkongjaffaabout 2 months ago
This blog is chock full of these ideas, start here:<p><a href="https:&#x2F;&#x2F;jrsinclair.com&#x2F;articles&#x2F;2019&#x2F;algebraic-data-types-what-i-wish-someone-had-explained-about-functional-programming&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jrsinclair.com&#x2F;articles&#x2F;2019&#x2F;algebraic-data-types-wh...</a>
评论 #43473060 未加载
nbaksalyar2 months ago
&gt; introductory textbooks&#x2F;blogs&#x2F;resources on the topic<p>Books on TypeScript, OCaml, Rust or Haskell are usually great resources for that.<p>There&#x27;s also &quot;Thinking with Types&quot; which addresses this topic in a lot of depth:<p><a href="https:&#x2F;&#x2F;thinkingwithtypes.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;thinkingwithtypes.com&#x2F;</a>
评论 #43422125 未加载
i_don_t_know2 months ago
Types and Programming Languages by Benjamin Pierce, sometimes also referred to as TAPL.
评论 #43473058 未加载
randomNumber72 months ago
I enjoyed some papers of Luca cardelli (when I remember the name correctly). There is also one overview&#x2F;introduction about dependent type systems he wrote.<p>This is all very theoretically heavy though.
评论 #43422132 未加载