News for hackers. Stuff that matters.

Ask HN: What Programming Book would you buy right now (if it existed)

Whacked from reddit (http://www.reddit.com/r/programming/comments/8aixn/programming_books_that_you_would_buy_right_now_if/?sort=new), but I would love to hear HN users's opinions.

I would buy "Inside The Python VM", (replace Python with Erlang or Lua or V8) and "A Hacker's Guide to Hadoop Internals"

( 52 comments | 32 points | on HN )
Re:Ask HN: What Programming Book would you buy right now (if... by stonemetal on Tuesday April 07, 2009 @02:04PM (#551352)
Software engineering in functional languages. Pretty much every programming book I have read found about functional languages has been about learning a language with examples that are less than a page. I am curious what thought patterns and structures you use to build something larger.
Re:Ask HN: What Programming Book would you buy right now (if... by utnick on Tuesday April 07, 2009 @02:11PM (#551366)
http://www.amazon.com/Real-World-Functional-Programming-Exam...

I came across a blog excerpt from this book that looked pretty neat. It isn't out yet but could be good.

Re:Ask HN: What Programming Book would you buy right now (if... by plinkplonk on Tuesday April 07, 2009 @02:16PM (#551372)
"I came across a blog excerpt from this book that looked pretty neat. "

http://tomasp.net/blog/functional-net-update.aspx

has the table of contents. I am not sure if it has any insights on functional programming in the large, but it does look neat.

Re:Ask HN: What Programming Book would you buy right now (if... by utnick on Tuesday April 07, 2009 @02:19PM (#551378)
Found the blog post I was referring to:

http://www.markhneedham.com/blog/2009/04/04/functional-c-the...

Also has a link to buy a pre-release version of the book

Re:Ask HN: What Programming Book would you buy right now (if... by bryanalves on Tuesday April 07, 2009 @03:35PM (#551504)
"The definitive guide to dealing with Huge MySQL databases"
Re:Ask HN: What Programming Book would you buy right now (if... by xenoterracide on Wednesday April 08, 2009 @02:49PM (#553211)
it's called don't use mysql for that. (sorry i'm a trolling postgres user, please don't mark me below -1)

in a non trolling way, I'd like to see a PostgreSQL for MySQL, SQL Server, and Oracle users.

Re:Ask HN: What Programming Book would you buy right now (if... by juliend2 on Tuesday April 07, 2009 @03:36PM (#551505)
Why's (Poignant) Guide to C.
Re:Ask HN: What Programming Book would you buy right now (if... by gamache on Tuesday April 07, 2009 @06:21PM (#551808)
Typeset in lovely, 50-column ASCII.
Re:Ask HN: What Programming Book would you buy right now (if... by mahmud on Tuesday April 07, 2009 @06:56PM (#551875)
You might also be interested in "The Little DOer", Friedman and Felleisen's guide to imperative programming with the Algol family of programming languages :-P
Re:Ask HN: What Programming Book would you buy right now (if... by jcapote on Tuesday April 07, 2009 @06:23PM (#551810)
Wow, good one. I'd never even thought of that, perhaps I'd finally learn C...
Re:Ask HN: What Programming Book would you buy right now (if... by halo on Tuesday April 07, 2009 @03:16PM (#551483)
'The Design and Implementation of Virtual Machines' or 'Theoretical Computer Science by Example'.
Re:Ask HN: What Programming Book would you buy right now (if... by brl on Tuesday April 07, 2009 @07:21PM (#551927)
> 'The Design and Implementation of Virtual Machines'

Oh that book already does in fact already exist, and it's amazing:

http://www.amazon.co.uk/Virtual-Machines-Versatile-Platforms...

Re:Ask HN: What Programming Book would you buy right now (if... by RWilson on Tuesday April 07, 2009 @05:20PM (#551681)
It's not a programming book but... "The Dream Machine: J.C.R. Licklider and the Revolution That Made Computing Personal"

It's an awesome book about the history of computing, human-computer interaction, and all sorts of things you're familiar with but may never have known where they came from or how they evolved.

http://www.amazon.com/Dream-Machine-Licklider-Revolution-Com...

Re:Ask HN: What Programming Book would you buy right now (if... by macmac on Tuesday April 07, 2009 @02:03PM (#551350)
Programming Clojure (http://www.pragprog.com/titles/shcloj/programming-clojure) - it semi-exists - presently only available as pdf beta book.
Re:Ask HN: What Programming Book would you buy right now (if... by jm4 on Tuesday April 07, 2009 @02:35PM (#551402)
The book appears to be very close to release. I've been downloading each release for the past few months and the latest one is great. It was also a nice surprise to see that in addition to PDF the latest update is also available in epub and mobi (compatible with Kindle) formats.
Re:Ask HN: What Programming Book would you buy right now (if... by gamache on Tuesday April 07, 2009 @06:23PM (#551812)
Programming Collective Stupidity: Harnessing the Ignorance of Crowds
Re:Ask HN: What Programming Book would you buy right now (if... by edw519 on Tuesday April 07, 2009 @04:09PM (#551540)
"How to Determine Exactly What Users Really Need"

(All programming becomes much simpler after that.)

Re:Ask HN: What Programming Book would you buy right now (if... by ibsulon on Tuesday April 07, 2009 @07:24PM (#551935)
They exist in the consultingware/project management mold. http://www.amazon.com/Mastering-Requirements-Process-Suzanne... is an example.
Re:Ask HN: What Programming Book would you buy right now (if... by edw519 on Tuesday April 07, 2009 @09:12PM (#552087)
I'm taking the bait. I'll either love this book or hate it. Either way, it's on the way from Amazon. I'll let you know later. Thanks, ibsulon.
Re:Ask HN: What Programming Book would you buy right now (if... by justindz on Tuesday April 07, 2009 @03:22PM (#551491)
"Indie MMOs for Small, Distributed Teams"

I wouldn't even mind if it took longer than 21 days.

Re:Ask HN: What Programming Book would you buy right now (if... by omnipath on Tuesday April 07, 2009 @04:01PM (#551528)
Real programming in Prolog. Eiffel system programming. Lua system programming.

I've found books for prolog, but they all start off with logic programming. It's kind of weird, or is it just me? And the other 2 I've not really seen any decent books for them. Unless I'm wrong? (A subtle cry for help.)

Re:Ask HN: What Programming Book would you buy right now (if... by pavelludiq on Tuesday April 07, 2009 @04:22PM (#551562)
"How to/not to become a religious zealot of your favorite language"
Re:Ask HN: What Programming Book would you buy right now (if... by lucumo on Tuesday April 07, 2009 @04:38PM (#551598)
I'm guessing that will be a favourite to recommend to others, too :)
Re:Ask HN: What Programming Book would you buy right now (if... by plinkplonk on Tuesday April 07, 2009 @03:32PM (#551499)
Some of the suggestions I liked from the reddit discussion ( direct quotes, see http://www.reddit.com/r/programming/comments/8aixn/programmi... for the full list)

- Plan 9 Unleashed.Or perhaps "Distributed computing with Inferno and Limbo"

- a book like Gödel, Escher, Bach: Eternal Golden Braid that explores Church/Lambda Calculus; Curry-Howard

Isomorphism; and Category Theory and Monads. ... "Oleg, Toulouse-Lautrec and Rachmaninoff: On Type Reasoning".

- The Complete Lisp Machine."

An in-depth historical and technical guide, with classic papers, discussion, circuit schematics. Features not only the MIT/Symbolics/TI family, but the nearly-forgotten Xerox PARC systems. Chapters with deep commentary on the design decisions by the original designers.

- The Implementation of Functional Programming Languages, 2nd Edition, by Simon Peyton-Jones

- Retro Game Programming for the iPhone & iPod touch

- series of books on specific kinds of general purpose applications and a discussion of their design and implementation techniques.

For example, the first book could be about writing a graphical word processor. It would explain some data structures for representing text content, lines, paragraphs and the like with the tradeoffs between them. Then explains layout engines, using state machines to model GUI interaction, designing file formats, and other pure gold of programming :)

Then it would be littered with case studies of both commercial & open source applications and a huge bibliography referring to important related books and research papers, preferably with commentary.

- Programming Factor, Real World Factor and Filthy Rich Client in Factor.

- Well Explained Solutions To Difficult Graph Problems Done In MapReduce

Non-trivial Recommendation Engines With Practical Concerns Highlighted And Straightened Out

- Core GNUstep Programming. - - A revised, modern version of Lisp in small pieces

- Programming in Octave - Twisted Network Programming, or any decent intermediate/advanced book on Twisted.

- The Complete Haskell. An encyclopedic work that spans the full range from category theory to network programming, everyday scripting, and distributed systems. Not for Java programmers; this book doesn't skimp on the theory as Real World Haskell does -- you'll learn to recognize the algebraic patterns that allow Haskell experts to distill out an Applicative, a Monad, or an Arrow from a collection of functions. Sample code (available on the Web site) includes a persistent distributed MUD server, a set of statistical logs analysis tools, an email spam filter, and a compiler for GoatC, a small imperative language.

Re:Ask HN: What Programming Book would you buy right now (if... by sharkbrainguy on Tuesday April 07, 2009 @07:09PM (#551904)
yeah, those ones.

Especially a decent book on Factor, I'm trying to learn it form the documentation but apparently I'm not trying hard enough.

oh and, "The Life and Adventures of Chris Double", that crazy bastard seems to show up in my google searches for everything sooner or later. TraceMonkey internals, NDS homebrew, dylan, factor! Is there anything he can't do?

http://delicious.com/tags/bluishcoder

Re:Ask HN: What Programming Book would you buy right now (if... by Hexstream on Tuesday April 07, 2009 @04:12PM (#551543)
Relevance of Knowledge for Programmers.

Would give a reasonably detailed, comprehensive overview of all the timeless theory and techniques (CS theory, math, design, etc), where they come from and what they're actually useful for.

So many projects are made much harder because a fundamental bit of theory has to be rederived from first principles for lack of knowledge...

Imagine someone who never heard of a graph:

"Okay, now I know I need a structure that's a bit like a tree except each node can have multiple parents... Now, how do I find the shortest path between two nodes?..."

Re:Ask HN: What Programming Book would you buy right now (if... by jasongullickson on Tuesday April 07, 2009 @02:59PM (#551452)
"How to break the iPhone app store rules and still get your app accepted (every time)".
Re:Ask HN: What Programming Book would you buy right now (if... by mattjaynes on Tuesday April 07, 2009 @04:34PM (#551588)
Anything on Tokyo Cabinet / Tokyo Tyrant
Re:Ask HN: What Programming Book would you buy right now (if... by lucumo on Tuesday April 07, 2009 @04:40PM (#551601)
"Writing a Compiler in 24 Hours"
Re:Ask HN: What Programming Book would you buy right now (if... by losher on Tuesday April 07, 2009 @05:12PM (#551667)
The closest I've ever seen would be: "Understanding and Writing Compilers: A Do It Yourself Guide"

Possibly/probably hopelessly dated now, but since you can download a free copy from http://en.wikipedia.org/wiki/Richard_Bornat what do you have to lose?

Re:Ask HN: What Programming Book would you buy right now (if... by mahmud on Tuesday April 07, 2009 @07:04PM (#551893)
Write algol languages with sexp syntax and you pretty much cut your compiler hacking in half (just focus on semantic analysis and code generation.)

You can further cheat and write a short and tidy attribute grammar for a tiny block-structured and well documented dialect like Oberon, and your grammar will be 1:1 translation from production rules straight to assembly language. No optimization, and certainly no intermediate representation. What you're left with is a clone of the first Turbo C without dynamic memory allocation (just static allocation with a strict stack discipline)

Then you can run around and say you're a compiler hacker. That's how I started :-P

Re:Ask HN: What Programming Book would you buy right now (if... by sdp on Tuesday April 07, 2009 @08:12PM (#552004)
How would an algol language with sexp syntax differ from scheme?
Re:Ask HN: What Programming Book would you buy right now (if... by mahmud on Tuesday April 07, 2009 @08:27PM (#552030)
It wouldn't have any of the following:

First class continuations.

First class lexical closures.

Automatic garbage collection.

An explicit Eval function.

Explicit READER and PRINTER functions for builtin parsing and serialization of code and data (not sure if Scheme requires these, but they make a lisp Lisp)

A full numeric tower.

Hygienic macros (or any macro for that matter; CPP doesn't count)

Symbols as datatypes.

An interactive REPL.

Tail-call elimination.

Variable-argument procedures (with no kludges; va_list, va_start, va_end is not the way to do it.)

Delayed evaluation constructs.

Multiple-value returns.

Quoted forms (a sexp syntax does not necessarily mean QUOTE is available.)

We Lisp2 hackers might pick on Scheme for its Algolishness, but that doesn't make it any less of an excellent language. Scheme is a purists wet-dream come true and a fine Lisp dialect, albeit an algolish one ;-)

Re:Ask HN: What Programming Book would you buy right now (if... by durana on Tuesday April 07, 2009 @07:48PM (#551973)
A book on learning x86 assembly on recent processors.
Re:Ask HN: What Programming Book would you buy right now (if... by paulgb on Tuesday April 07, 2009 @04:35PM (#551589)
"Thinking in MapReduce"
Re:Ask HN: What Programming Book would you buy right now (if... by AndrewO on Tuesday April 07, 2009 @07:38PM (#551960)
"The Java Environment for Java Haters": covering the JVM, the better web and GUI environments, essential legacy libraries, tools, and whatever else is worth carrying over as Clojure and Scala gain traction.
Re:Ask HN: What Programming Book would you buy right now (if... by jaxn on Tuesday April 07, 2009 @03:10PM (#551470)
Right now I wish I knew of a Pickaxe for Python.

Also, I want a MacRuby book.

On a slightly related note, how does the Kindle do with programming books? I am thinking about picking one up to use primarily as a reference screen.

Re:Ask HN: What Programming Book would you buy right now (if... by smhinsey on Tuesday April 07, 2009 @04:08PM (#551537)
if the rumored 8x11 "textbook" model kindle comes out, i think it'll be perfect. as it is now, its not too great. i thought it would be an ideal technical library, but don't expect to get a lot out of code examples or images. the readability of the code examples varies depending on their visual treatment and the language, with the less verbose languages with subtle design (i.e. no darker background, giant Courier New, etc) being most readable.
Re:Ask HN: What Programming Book would you buy right now (if... by Femur on Tuesday April 07, 2009 @02:20PM (#551382)
My fictional choice would be "The Oracle Optimizer: A Treatise"

Database related books tend to be too high level and never dig down deep enough.

Re:Ask HN: What Programming Book would you buy right now (if... by tweaqslug on Tuesday April 07, 2009 @03:14PM (#551479)
I would highly recommend Expert Oracle One-On-One. It contains everything you need to know to use oracle to the fullest extent.

http://www.amazon.com/Expert-One-Oracle-Thomas-Kyte/dp/18610...

Re:Ask HN: What Programming Book would you buy right now (if... by camperman on Wednesday April 08, 2009 @06:55AM (#552534)
Calling Useful Java Libraries from Clojure for People who have Traditionally Despised Java And Know Nothing About It.
Re:Ask HN: What Programming Book would you buy right now (if... by comatose_kid on Tuesday April 07, 2009 @07:22PM (#551929)
Re:Ask HN: What Programming Book would you buy right now (if... by christofd on Wednesday April 08, 2009 @03:33AM (#552418)
- a book on learning to trust your intuition, with good and bad programming and architecture examples

- a functional language cookbook... like erlang or haskell cookbook

- a book comparing cultural differences between countries in the work and education worlds

Re:Ask HN: What Programming Book would you buy right now (if... by vonsydov on Tuesday April 07, 2009 @03:58PM (#551524)
Norvig's Paradigms in AI book - http://norvig.com/paip.html
Re:Ask HN: What Programming Book would you buy right now (if... by metallic_cloud on Tuesday April 07, 2009 @07:53PM (#551982)
I would love a book on advanced XNA. Everything around at the moment is for beginner to intermediate.
Re:Ask HN: What Programming Book would you buy right now (if... by xenoterracide on Wednesday April 08, 2009 @02:58PM (#553228)
a book on postgresql 8.3 (or the to be released 8.4) with some good strong chapters on various PL languages. I'm thinking one on PL/Perl a few on PL/pgSQL, one on PL/SQL, one on SQL/PSM (maybe). several on the rest of Postgres.
Re:Ask HN: What Programming Book would you buy right now (if... by kjhughes on Tuesday April 07, 2009 @06:16PM (#551804)
P=NP: An Illustrated Guide
Re:Ask HN: What Programming Book would you buy right now (if... by vaksel on Tuesday April 07, 2009 @04:15PM (#551552)
Twittering for dummies
Re:Ask HN: What Programming Book would you buy right now (if... by Evgeny on Tuesday April 07, 2009 @06:48PM (#551859)
"Become a R0ck$tar programmer in 21 hours".
Re:Ask HN: What Programming Book would you buy right now (if... by gamache on Tuesday April 07, 2009 @06:25PM (#551814)
On Clojure
Re:Ask HN: What Programming Book would you buy right now (if... by TweedHeads on Tuesday April 07, 2009 @03:33PM (#551500)
s/Book/eBook

Get with the times

Re:Ask HN: What Programming Book would you buy right now (if... by gamache on Tuesday April 07, 2009 @06:26PM (#551818)
You're at -8 because you forgot the trailing slash.