Live data from Hacker News

The Little Typer (2018)

thelittletyper.com

21–30 of 45 posts

Re: The Little Typer (2018)

#21

As a retired electrician attempting hobby-level "learn to code" (i.e. I don't know anything about modern programming and did not even understand anything from OP's link), this Amazon review helped me understand OP's link: >..I’ve been (slowly) working my way through The Little Typer. It’s a deep dive on dependent types, starting with the very basics and building up a toy language one step at a time. I can feel it gra…

I’d recommend the earlier book in the series, The Little Schemer, for what it’s worth! It’s more aimed towards beginners. Similar format to this book.

Re: The Little Typer (2018)

#22
post #21

As a retired electrician attempting hobby-level "learn to code" (i.e. I don't know anything about modern programming and did not even understand anything from OP's link), this Amazon review helped me understand OP's link: >..I’ve been (slowly) working my way through The Little Typer. It’s a deep dive on dependent types, starting with the very basics and building up a toy language one step at a time. I can feel it gra…

I’d recommend the earlier book in the series, The Little Schemer, for what it’s worth! It’s more aimed towards beginners. Similar format to this book.

>The Little Schemer

Inially wasn't sure if your comment was "a joke," but thanks for the real introduction:

amazon.com/Little-Schemer-Daniel-P-Friedman/dp/0262560992/ [link to book]

Re: The Little Typer (2018)

#23

As a retired electrician attempting hobby-level "learn to code" (i.e. I don't know anything about modern programming and did not even understand anything from OP's link), this Amazon review helped me understand OP's link: >..I’ve been (slowly) working my way through The Little Typer. It’s a deep dive on dependent types, starting with the very basics and building up a toy language one step at a time. I can feel it gra…

Check this course out:

https://www.edx.org/learn/coding/university-of-british-colum...

I think you'll really like it. It uses Racket and is based upon the How to Design Programs book. It is absolutely perfect for someone new to coding.

Re: The Little Typer (2018)

#24
post #21

Earlier quoted context omitted.

I’d recommend the earlier book in the series, The Little Schemer, for what it’s worth! It’s more aimed towards beginners. Similar format to this book.

>The Little Schemer Inially wasn't sure if your comment was "a joke," but thanks for the real introduction: amazon.com/Little-Schemer-Daniel-P-Friedman/dp/0262560992/ [link to book]

https://mitpress.mit.edu/author/daniel-p-friedman-4089/ - one of the authors on all the books in the series.

The Little Schemer and The Seasoned Schemer are both beginner books using Scheme. The Reasoned Schemer uses Scheme + Minikanren, an extension of Scheme that allows for logical/relational programming (look up Prolog and Datalog as languages in the same vein). The Little Typer is the linked book covering type systems and, specifically, dependent typing. The Little Learner covers machine learning. The Little Prover uses the same format and has you develop proofs.

Little, Seasoned, and Reasoned are, IMO, the better books in the series to start with. I found the later ones to be good but very dense and not always as clear, had to step back a lot more and reread sections. That's mostly due to the material being much harder and more technical than the earlier books, not a quality issue with the writing itself.

My recommend reading order for someone with no Racket, Scheme, or Lisp experience wanting to tackle the series would be: Little -> Seasoned -> [Optional: Reasoned] -> {Any order: Prover, Typer, Learner}. I think Prover may be better before Typer, but it's been a while since I looked at either, so a soft recommendation of Prover -> Typer.

If you have some Racket, Scheme, or Lisp experience, I'd suggest to either skim the first couple books to get used to the format or skip them entirely and use Reasoned as your first book in the series.

http://minikanren.org

Re: The Little Typer (2018)

#25
post #7
post #4

I worked through this a few years ago and it is wonderful, but I found chapter 9 on the replace function totally impenetrable, so I wrote a blog post in the same dialogue style intended as a gentler prelude to it. A few people have emailed me saying they found it and it helped them. https://ahelwer.ca/post/2022-10-13-little-typer-ch9/

This is great for me for a completely auxiliary reason, which is that I wanted to know whether this was just gonna be a book about programming Fibonacci numbers into types or some ish... and in some ways it's kinda worse, at chapter 9 you are still proving that different takes on x→x+1 are the same. (But using rewrite rules seems kinda interesting in the abstract I guess.)

This series of books has always been aimed at people who want to implement the underlying systems. If you’re more interested in the application side of dependent types you might like the book Functional Programming in Lean by the same author, which is freely available online!

Re: The Little Typer (2018)

#26
post #21

Earlier quoted context omitted.

I’d recommend the earlier book in the series, The Little Schemer, for what it’s worth! It’s more aimed towards beginners. Similar format to this book.

>The Little Schemer Inially wasn't sure if your comment was "a joke," but thanks for the real introduction: amazon.com/Little-Schemer-Daniel-P-Friedman/dp/0262560992/ [link to book]

Friedman's books are all great. All of them. But they don't work for everybody.

If you can be relaxed and think of the interaction as play, they're very good. If you're feeling more of a "serious business" mindset, it can be hard to get in the groove of his style.

There are a lot of jokes about food and encouragement to take breaks. If you can get into the learning as play mindset, I'd strongly encourage taking the recommended breaks. maybe grab a snack, but spend some time noodling around with the ideas in each section. I think that's the real point, food is a good excuse to pause and get your hands off the keyboard.

Racket should be easy to install. Big download button for a ton of platforms here - https://racket-lang.org

I believe HN still runs on the racket runtime. it may appear to be a toy, but thoughtful design can take you a long long way. it's well supported and a great way to get started.

If Friedman doesn't work out for you, the racket docs link to how to design programs - https://htdp.org/2024-8-20/Book/index.html Which is also pretty darn good.

The other classic is the wizard book - https://sarabander.github.io/sicp/html/index.xhtml the structure and interpretation of computer programs. This'll walk you up to and somewhat through compilation.

There are a ton of programming languages all with amazing assortments of features.

Scheme is much more "there's nothing left to take away". I think it's very much the undisputed champion in that regard. While still being able to ship software. Scheme may not be the optimal choice for all people in all situations (obviously). It's a spectacular place to start though. It may not turn out to be the language for you. That's totally fine! But it'll get you deep enough to figure out what you like and don't like. And, when it comes down to it, you can shape it into pretty much anything.

Yeah, I hope you enjoy the little schemer.

Re: The Little Typer (2018)

#27
post #11

What modern scheme is best to use for these "the little x'er" book series? Some of them suggest their dialect (like learner suggests Racket I think), but what about others? In short, what scheme is the most practical and useful nowadays? Here is the result of my research so far, in order of preference according to the above requirements: Guile: most active community, GNU glue language, Guix Chicken: most pragmatic on…

I don't know what is the best Scheme implementation, but this book has little to do with Scheme though. Pie uses S-expressions for syntax, and happens to be implemented in Racket, but you don't interact with Racket directly.

Gerbil scheme works great with the Schemer series of books.

Re: The Little Typer (2018)

#28
I read it 2 years ago while I was sick with COVID. It was a lot of fun, it was pretty easy, but also very interesting. It was not a big time commitment. I learned a lot about dependent types. I recommend it.

Re: The Little Typer (2018)

#29
post #8

Is there an online community for this where you can ask questions? E.g. a discord server or an IRC channel?

The Gay Haskell discord server has a channel for dependent types. There is also a discord server for Type Theory Forall, a podcast.

Re: The Little Typer (2018)

#30

Earlier quoted context omitted.

>The Little Schemer Inially wasn't sure if your comment was "a joke," but thanks for the real introduction: amazon.com/Little-Schemer-Daniel-P-Friedman/dp/0262560992/ [link to book]

https://mitpress.mit.edu/author/daniel-p-friedman-4089/ - one of the authors on all the books in the series. The Little Schemer and The Seasoned Schemer are both beginner books using Scheme. The Reasoned Schemer uses Scheme + Minikanren, an extension of Scheme that allows for logical/relational programming (look up Prolog and Datalog as languages in the same vein). The Little Typer is the linked book covering type sy…

With no Scheme or programming background, I'd study HtDP (https://htdp.org) as an interlude, after The Little Schemer. Pace is gentle, and explanations about program design are long and very lucid. After those two, I'd try The Little MLer. The other books are quite advanced, better to build solid foundations first.
Post reply on HN