Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of The Nature of Code

    The Nature of Code

    Daniel Shiffman · 2012

    How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital worlds? This book focuses on a range of programming strategies and techniques behind computer simulations of natural systems, from elementary concepts in mathematics and physics to more advanced algorithms that enable sophisticated visual results. Readers will progress from building a basic physics engine to creating intelligent moving objects and complex systems, setting the foundation for further experiments in generative design. Subjects covered include forces, trigonometry, fractals, cellular automata, self-organization, and genetic algorithms. The book's examples are written in Processing, an open-source language and development environment built on top of the Java programming language. On the book's website (http: //www.natureofcode.com), the examples run in the browser via Processing's JavaScript mode.

    Computer ScienceProgramming
    Open LibraryAmazon
    Stats for nerds
    73recommend
    111mentions
    82people
    2012–2026years
    86% recommend14% neutral1% critical

    Mentions per year

    20122014201620182020202220242026

    What Hacker News says

    1. simonbarker87Nov 2026
      Reminds me of this fun book I worked through years ago https://natureofcode.com/
      thread
    2. lioetersSep 2026
      Ooh boids, yes! One of my favorite books is Vehicles: Experiments in Synthetic Psychology. I learned about it from another favorite, Nature of Code, which has a great list of related books. https://natureofcode.com/resources/#further-reading
      thread
    3. sreanSep 2026
      Nature of Code is such a great book !
      thread
    4. thomascountzJun 2026
      If you're into exploring this sort of thing yourself, I can extremely highly recommend Daniel Shiffman's Nature of Code[1]. It's among my top-5 recommended books about computing in general, let alone for algorithmic art.

      [1]: https://natureofcode.com/

      thread
    5. elricApr 2026
      Can still remember the sound of the Funky Bomb firing in Scorched Earth. Thanks fot reminding me of that.

      If you're interested in this sort of stuff, the book Nature Of Code is great for exploring this topic by creating simulations. There's a Javascript version and Java based version (using the Processing framework). It isn't actually all that difficult, and I found it very satisfying to work through.

      thread
    6. sbondaryevJan 2026
      It really depends on your level - this kind of graphics work is usually learned over many years.

      Some sources

      > Math & motion: – The Nature of Code https://natureofcode.com/ – Coding Math https://www.youtube.com/user/codingmath

      > Shaders / math-based rendering: – The Book of Shaders https://thebookofshaders.com/ – Inigo Quilez https://iquilezles.org/

      > Interactive explanations: – Red Blob Games https://www.redblobgames.com/

      You can also find some insight into his work process here: https://x.com/BCiechanowski/status/1387827101294686210?s=20

      Most people doing this level of work built their own tools over time, learned a bit here and there, and kept refining things throughout their career.

      thread

    Related

    Cover of Learning Processing
    2012–2023

    Learning Processing

    Daniel Shiffman
    6 recommend · 9
    Cover of Code
    2008–2026

    Code

    Charles Petzold
    243 recommend · 385
    Cover of The art of computer programming
    2007–2026

    The art of computer programming

    Donald Knuth
    336 recommend · 1,799
    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894
    Cover of The C Programming Language
    2007–2026

    The C Programming Language

    Brian W. Kernighan
    246 recommend · 604
    Cover of The Elements of Computing Systems
    2008–2026

    The Elements of Computing Systems

    Noam Nisan
    204 recommend · 344
    Cover of Essentials of programming languages
    2008–2026

    Essentials of programming languages

    Daniel P. Friedman
    43 recommend · 76
    Cover of The Pragmatic Programmer
    2007–2026

    The Pragmatic Programmer

    Andy Hunt
    353 recommend · 700