TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

"Purely Functional Data Structures" by Chris Okasaki [pdf]

55 点作者 Stasyan超过 15 年前

8 条评论

ionfish超过 15 年前
Okasaki's book of the same name, based on his thesis, is one of my favourites—I'd recommend it to all programmers, not just those doing a lot of functional programming. The explanations are lucid and insightful, and the book is full of helpful diagrams and example code. The sample code is in Standard ML, but there's an appendix with Haskell versions of all the main data structures discussed in the book.
评论 #1139107 未加载
andrewcooke超过 15 年前
i wrote a review of this (well, the book) for /. many years ago - <a href="http://books.slashdot.org/books/04/02/19/2257203.shtml" rel="nofollow">http://books.slashdot.org/books/04/02/19/2257203.shtml</a><p>it's probably a bit basic for experienced programmers - in particular "functional programming" needs a lot less explanation these days - but if you want some simple background it might help.
评论 #1139828 未加载
Deestan超过 15 年前
Just bought this book in hardcover last month; I can't recommend it enough.<p>Be sure to also check out Chris Okasaki's functional programming blog: <a href="http://okasaki.blogspot.com/" rel="nofollow">http://okasaki.blogspot.com/</a>
camccann超过 15 年前
For any Haskell users out there, the Edison library (see here: <a href="http://www.cs.princeton.edu/~rdockins/edison/home/" rel="nofollow">http://www.cs.princeton.edu/~rdockins/edison/home/</a> ) provides implementations of various data structures based on what's described in Okasaki's thesis.<p>I seem to recall a similar library existing for F# but I couldn't find a link, sorry.
dschobel超过 15 年前
I first learned about this book from Yegge's blog (back when he was still at amazon) where he wrote:<p>"We've been studying the available research, and all roads lead to the same set of conclusions, one of which is that Functional Programming is going to be a necessity in this new world. It's a foregone conclusion.<p>And that, in a roundabout way, brings me to this book by Chris Okasaki. <i>It is absolutely unique. It's the world's first textbook on purely functional data structures — i.e., data structures with no side-effects. I'm not going to explain in this blog why this is such an important topic for Amazon and distributed computing in general, but I will point you to the book in the hopes that you are also interested in finding a solution.</i>"<p><a href="http://steve.yegge.googlepages.com/ten-challenges" rel="nofollow">http://steve.yegge.googlepages.com/ten-challenges</a>
silentbicycle超过 15 年前
Note, this isn't the <i>book</i>, it's his thesis. The book (which is great) expands upon it.<p>FWIW, its code is in SML, with some Haskell translations in the appendix. I haven't used SML, but know OCaml, and haven't had any problems reading it.
rads超过 15 年前
I came across a library for persistent data structures in Ruby yesterday: <a href="http://github.com/harukizaemon/hamster" rel="nofollow">http://github.com/harukizaemon/hamster</a>
how_gauche超过 15 年前
A true classic!