Lurker News
Well written books can serve as eye openers and warp your understanding of a topic when read at the correct time in your life.

Can you name a few books of that type that really were of such high value in your field of work or study?

Comments (262) 124 threads

Show all comments

Showing thread 10 of 124

madsbuch3 replies#
Types and programming languages, Benjamin Pierce: https://www.cis.upenn.edu/~bcpierce/tapl/

Its contents is what I consider the meta game of programming. Understanding types seems to be a real boost to think about architecture, implementation, etc.

mananaysiempre#
It’s also surprisingly approachable, unlike most serious mathematical-logic(-adjacent) books. The three-page elementary treatment of the Knaster–Tarski fixed point theorem is worth reading even if you’re interested in cases for which it’s not sufficient (seriously infinite or order-theoretic things).
civilized1 reply#
I'm tripping on the first sentence of the blurb:

> A type system is a syntactic method for enforcing levels of abstraction in programs.
Why is it called a syntactic method? Because type errors are caught at compile time, by analyzing the source code?

lake_vincent1 reply#
My 2c: I think the point is that types themselves are just syntax. It's all bits at the lowest level, so there's really no such thing as a 'type' on a Turing Machine tape. It can be expressed syntactically on the tape, but that's the point.
civilized1 reply#
But what's the difference between this type syntax on the tape and the number 2 on the tape, which is presumably something other than "just syntax"?

This gets especially confusing when you bring in dispatch, where the types are now deciding what functions get called.

Continue this thread — 1 reply

curious16#
Have you read Robert Harper's Practical Foundations of Programming Languages?