书名:The Little Typer
作者:DanielP.Friedman/DavidThraneChristiansen/DuaneBibby/RobertHarper/ConorMcbride
译者:
ISBN:9780262536431
出版社:MITPress
出版时间:2018-10-16
格式:epub/mobi/azw3/pdf
页数:424
豆瓣评分: 9.9
书籍简介:
An introduction to dependent types, demonstrating the most beautiful aspects, one step at a time. A program's type describes its behavior. Dependent types are a first-class part of a language, and are much more powerful than other kinds of types; using just one language for types and programs allows program descriptions to be as powerful as the programs they describe. The Little Typer explains dependent types, beginning with a very small language that looks very much like Scheme and extending it to cover both programming with dependent types and using dependent types for mathematical reasoning. Readers should be familiar with the basics of a Lisp-like programming language, as presented in the first four chapters of The Little Schemer. The first five chapters of The Little Typer provide the needed tools to understand dependent types; the remaining chapters use these tools to build a bridge between mathematics and programming. Readers will learn that tools they know from programming-pairs, lists, functions, and recursions-can also capture patterns of reasoning. The Little Typer does not attempt to teach either practical programming skills or a fully rigorous approach to type. Instead, it demonstrates the most beautiful aspects as simply as possible, one step at a time.
作者简介:
Daniel P. Friedman is Professor of Computer Science in the School of Informatics, Computing, and Engineering at Indiana University and is the author of many books published by the MIT Press, including The Little Schemer and The Seasoned Schemer (with Matthias Felleisen); The Little Prover (with Carl Eastlund); and The Reasoned Schemer (with William E. Byrd, Oleg Kiselyov, and Jason Hemann).
书友短评:
@ Sam 以前看完一部喜欢的长篇小说或者电视剧的时候都会多少有些失落。读完了这本关于编程的书之后竟然也有了类似的感觉。Friedman 的书都是有温度的。写了一篇算是读后感的东西,http://mxm.ink/post/ 打个五星吧。。。不过我只看了最后几章。。。 @ 流光 语言略微繁琐,但全书从基本type开始,通过一个个小故事的叙述,引出dependent type是如何与theorem proving相辅相成,并在最后指出如何拓展Pie到一个成熟的theorem prover。喜欢! @ 刨沙艺术家 最终还是迷失在iter-Cap, rec-Cap, ind-Cap中了。 @ emerald 在看前面几章,犹如在看哲学书,尽是一些毫无意义的定义,满是一些脱裤子放屁的做法。 说是不能用recursion写function,那还玩个屁,于是强行定义了个iter-nat来用,可iter-nat他妈不recursive吗,最后出个rec-nat…再强加解释说这样做有什么什么好处好自圆其说,跟哲学家一个德行。Friedman的书很多都很喜欢,不过这本书讲述的理论,似乎不太行。放弃。 @ suspended 行文步步推进,节奏略慢,同时过多的专注于自然数,略为trivial。没有引入inductive type,导致自然数,列表等都是作为语言的原语生硬引入,这是最大的硬伤。万丈高楼本可平地起,奈何基础设施不够。 @ 浅海 一直感觉Fieldman的书是“高山滚石”式的布局的典范,前期节奏平缓注重体系的自洽和对读者的引导,后半则信息量很大却又水到渠成 @ 刨沙艺术家 最终还是迷失在iter-Cap, rec-Cap, ind-Cap中了。 @ emerald 在看前面几章,犹如在看哲学书,尽是一些毫无意义的定义,满是一些脱裤子放屁的做法。 说是不能用recursion写function,那还玩个屁,于是强行定义了个iter-nat来用,可iter-nat他妈不recursive吗,最后出个rec-nat…再强加解释说这样做有什么什么好处好自圆其说,跟哲学家一个德行。Friedman的书很多都很喜欢,不过这本书讲述的理论,似乎不太行。放弃。
添加微信公众号:好书天下获取
评论前必须登录!
注册