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.

The Little Typer

312 pointsby kakashi19over 6 years ago

17 comments

KirinDaveover 6 years ago
The book is fantastic. If you think this model is interesting, please consider trying Idris and reading the Idris book:<p><a href="https:&#x2F;&#x2F;www.manning.com&#x2F;books&#x2F;type-driven-development-with-idris" rel="nofollow">https:&#x2F;&#x2F;www.manning.com&#x2F;books&#x2F;type-driven-development-with-i...</a>
评论 #18050618 未加载
cmrx64over 6 years ago
This book is a real joy to read. I got to peek at a draft at OPLSS 2017 and have been waiting impatiently for it to come out. The detailed, carefully worked examples one after another that this style of book is famous for is adapted beautifully to dependent type theory. Check it out! The code implementing the language in the book is here: <a href="https:&#x2F;&#x2F;github.com&#x2F;the-little-typer&#x2F;pie" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;the-little-typer&#x2F;pie</a>
评论 #18049034 未加载
plaflover 6 years ago
I&#x27;m going to order it right now. I highly recommend the little schemer and the seasoned schemer too! I have read all the titles (MLer and Java too) in the series and those are my favorites. The only one I have not finished is the reasoned schemer although I hope to try again in the future.
评论 #18047091 未加载
评论 #18051672 未加载
jedharrisover 6 years ago
Several comments elaborate on the big gap between normal programming practice (e.g. structurally recursive algorithms) and the great difficulty of dependent typing those practices. Some of these comment on how dependent types are &quot;just out of the lab&quot;.<p>This brings into focus a question I&#x27;ve had for a long time: Why this gap, and especially in this direction? E.g. in aerodynamics we had Bernoulli&#x27;s principle for a couple of hundred years before we could build airplanes, which depend on it. In formal language theory we had lambda calculus, Turing&#x27;s universality results, etc. decades before we had Lisp and Fortran.<p>We often see the difficulty of building a practice to exploit theory.<p>So it seems very strange to me that we are able to write &#x2F; plug together literally world-spanning software systems -- which do have bugs but fact work correctly nearly all the time. But we can&#x27;t easily well-type even simple algorithms with extremely well understood properties.<p>Why this huge gap, in this direction?
评论 #18053309 未加载
DoofusOfDeathover 6 years ago
I can&#x27;t tell if my question is off-topic or not, but..<p>Can anyone recommend a book (or whatever) that introduces the aspects of type theory relevant to a would-be language designer?
评论 #18048600 未加载
评论 #18049483 未加载
评论 #18050647 未加载
zitterbewegungover 6 years ago
Source code of pie (used in the book) at <a href="https:&#x2F;&#x2F;github.com&#x2F;the-little-typer&#x2F;pie" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;the-little-typer&#x2F;pie</a>
Mythroatover 6 years ago
Is there a reason dependent types are not more common?
评论 #18049041 未加载
评论 #18048091 未加载
评论 #18048278 未加载
评论 #18048854 未加载
评论 #18050679 未加载
评论 #18048861 未加载
mcguireover 6 years ago
As an aside, it&#x27;s great that Duane Bibby is still providing the art for these. Without him, nothing would be the same.
评论 #18048958 未加载
nigwil_over 6 years ago
Will there be a Kindle edition eventually?
评论 #18047808 未加载
lylecubedover 6 years ago
&gt; An introduction to dependent types, demonstrating the most beautiful aspects, one step at a time.<p>Is there a companion book detailing the ugly downsides of dependent types and how to avoid them, one step at a time?
评论 #18047197 未加载
评论 #18047865 未加载
评论 #18047054 未加载
评论 #18047115 未加载
urdaover 6 years ago
I&#x27;m glad I checked HN today because this sounds like a fantastic read. I went ahead and picked up a copy of it for myself!
georgewsingerover 6 years ago
What language does this book use? A dependently typed LISP? Or something Haskelly?
评论 #18047373 未加载
zitterbewegungover 6 years ago
Is there a place where you can download the source code that is used in the book?
评论 #18047564 未加载
jedharrisover 6 years ago
See related HN thread &lt;<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18050706&gt;" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18050706&gt;</a>
pkruminsover 6 years ago
<p><pre><code> This space reserved for JELLY STAINS!</code></pre>
sandGorgonover 6 years ago
I know that typescript doesn&#x27;t have advanced types, but can a book like this be adapted to use typescript ?
评论 #18047597 未加载
评论 #18050285 未加载
sillysaurus3over 6 years ago
Sad to say the book isn&#x27;t on Library Genesis, so you&#x27;ll have to drop $40 if you want the knowledge. <a href="http:&#x2F;&#x2F;libgen.io&#x2F;search.php?req=little+typer" rel="nofollow">http:&#x2F;&#x2F;libgen.io&#x2F;search.php?req=little+typer</a><p>Also Library Genesis is amazing: <a href="http:&#x2F;&#x2F;libgen.io&#x2F;search.php?req=knuth" rel="nofollow">http:&#x2F;&#x2F;libgen.io&#x2F;search.php?req=knuth</a><p>It&#x27;s everything I dreamed of when I was a kid. I used to spend hours at the local library scouring through crummy &quot;Learn C++ in 24 hours&quot; type books.<p><a href="http:&#x2F;&#x2F;custodians.online&#x2F;" rel="nofollow">http:&#x2F;&#x2F;custodians.online&#x2F;</a> is worth a read too.
评论 #18048900 未加载
评论 #18048887 未加载
评论 #18047968 未加载
评论 #18049257 未加载
评论 #18047727 未加载
评论 #18048246 未加载
评论 #18047715 未加载
评论 #18049777 未加载
评论 #18049449 未加载
评论 #18048940 未加载
评论 #18049297 未加载
评论 #18048236 未加载
评论 #18056650 未加载
评论 #18048480 未加载