Top all-time · #23049
Shuang Rimu
Personal blog · shuangrimu.com/postsmathprogramming
Shuang Rimu's personal blog at shuangrimu.com covers math and programming. Since 2020, 3 different Hacker News readers have linked it 8 times, most often “A Language Agnostic Introduction to Dependent Types”. The last post was in 2021, but the archive is still widely read.
Most-linked posts?
- A Language Agnostic Introduction to Dependent Types2 people · 3 mentions · first linked 2021-10-02
What Hacker News says?
Dependent types are not totally orthogonal of FP. They generally require immutability and function purity to work well and become extremely difficult to work with in the absence of those features. See e.g. https://shuangrimu.com/posts/language-agnostic-intro-to-depe...
Comment linking /posts/language-agnostic-intro-to-dependent-types.html
on “Functional programming is not popular because it is weird (2016)”Submitted A language agnostic introduction to dependent types as a story · 3 points
HN discussionDependent types aren't terribly complicated intrinsically, see e.g. https://shuangrimu.com/posts/language-agnostic-intro-to-depe... for one explanation of dependent pairs. Nor do I think the value of dependent types comes from proofs, which I agree are still too cumbersome to really use at a large scale for most codebases. My hypothesis for the sweet spot for dependent types is to express invariants, and then use ot…
Comment linking /posts/language-agnostic-intro-to-dependent-types.html
on “The λ-Cube”Submitted Extensible Unions Types in Elm as a story · 3 points
HN discussionIf Scala syntax is more up your alley, here's an intro to dependent types that has more Scala-esque syntax: https://shuangrimu.com/posts/language-agnostic-intro-to-depe... Scala has only a very limited version of dependent types. Even its "dependent function types" are a more restricted version of general dependent function types. Full dependent types can in a certain sense be even simpler than non-dependently-typed…
Comment linking /posts/language-agnostic-intro-to-dependent-types.html
on “Idris 2: Quantitative Type Theory in Practice”Submitted A Language Agnostic Introduction to Dependent Types as a story · 2 points
HN discussionI find the often ML-inspired syntax too high of a bar for most programmers to clear when being introduced to a language. I think a syntax more similar to something like what is introduced here: https://shuangrimu.com/posts/language-agnostic-intro-to-depe... more accessible for a lot of programmers. I separately think that proofs are actually a bit overblown when it comes to dependent types and that dependent types a…
Comment linking /posts/language-agnostic-intro-to-dependent-types.html
on “A dependently typed language for proofs that you can implement in one day”Submitted Defining definable real numbers is hard (maybe every real number is definable) as a story · 1 points
HN discussion