按年被提到
20122013 · 8 次2026
开源书›图形与游戏·No.47

The Nature of Code

代码本色:用编程模拟自然系统
Daniel Shiffman

用 Processing 模拟物理、群体、遗传算法与神经网络

免费阅读 ↗
被推荐 · 43 人首次 2012-12-18 · 最近 2024-01-08许可证 CC BY-NC-SA 4.0
43不同的人
46活跃月份
19有推荐的月份
52讨论串

Daniel Shiffman 用 Processing(后来也有 p5.js 版本)写成的创意编程书,从向量、力和运动讲起,逐步到粒子系统、群体行为、元胞自动机、分形、遗传算法和神经网络。每章配有可运行的示例代码,风格轻松、重直觉。和一般的图形学或算法书相比,更偏向生成艺术和对自然现象的模拟。

HN 为什么推荐它

HN 上的人把它当作创意编程和生成艺术的首选入门,称赞它用物理和数学让代码更“自然”,示例清楚,还免费可读;也有人称它是很好的编程入门书。

难度 2 / 5约 50 小时开放许可
适合谁

想用代码做模拟与生成艺术的初学者

读之前最好知道
1基本编程概念
2中学物理与几何

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1从向量和力的章节开始,边读边在 Processing 或 p5.js 里跑代码
  2. 2每章改改参数、自己做个小变体
  3. 3对群体行为、元胞自动机感兴趣的可先跳到相应章节
  4. 4神经网络部分作为入门了解即可

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐jbarrow · 2014-09

“I strongly recommend reading not only the chapter, but the whole book.”

强烈推荐读整本书,而不只是神经网络那一章
A visual proof that neural nets can compute any function原评论 ↗
强烈推荐iheredia · 2015-05

“The Nature of Code is one of my favorites free reads The Nature of Code”

称它是自己最喜欢的免费读物之一
Ask HN: What are your recommended reads that are available for free?原评论 ↗
强烈推荐azeirah · 2015-07

“For people interested in algorithmic art, I can heavily recommend the nature of code”

强烈推荐给对算法艺术感兴趣的人
Differential Line原评论 ↗
强烈推荐hambos22 · 2022-08

“I can't recommend Nature of Code enough. It's free, you can read it online and it will give you a good start”

强烈推荐,免费在线读,是生成艺术编程的好起点
Ask HN: Resources to learn generative art programming?原评论 ↗
推荐lnmx · 2013-04

“The Nature of Code [1] has some nice examples on how to calculate steering/acceleration behavior for targeting.”

推荐它,里面有计算 steering 和加速行为的好例子
I've got 10 btc for the best CoffeeScript/JavaScript Nodewar bot原评论 ↗
推荐nthitz · 2013-04

“Highly worth paying for, Shiffman rocks!”

称作者很棒,书值得付费买,提到遗传算法一章
An Engineering Talk with Dan Shiffman on Genetic Algorithms原评论 ↗
看全部 20 条 →
推荐NKCSS · 2013-08

“An awesome book; I've now started reading from the beginning of the book:)”

称它是很棒的书,已从头开始读
Basics of Neural Networks with example codes and illustrations原评论 ↗
推荐Zolomon · 2013-11

“Here is a truly wonderful book that uses Processing:”

称它是一本用 Processing 讲解的精彩好书
Processing Hour of Code原评论 ↗
推荐guiambros · 2014-08

“Read "The Nature of Code" [1], by Dan Shiffman (the same Dan in the Hello video linked above), and you'll instantly understand the difference between Processing (and P5.js) and other languages/frameworks.”

推荐读它来理解 Processing 与其他框架的区别
P5.js: Processing for today’s web原评论 ↗
推荐yogiHacks · 2014-12

“"The Nature of Code" by Daniel Shiffman. Excellent book on simulation of the natural, chaotic world in the Processing programming language.”

推荐它,用 Processing 模拟自然界的混沌系统
Ask HN: What book changed your life in 2014?原评论 ↗
推荐napolesmarble · 2015-08

“"The Nature of Code" is a book I've heard repeated is pretty good.”

提到听过多次推荐,认为口碑不错
CS224d: Deep Learning for Natural Language Processing原评论 ↗
推荐peeters · 2017-06

“I'm pretty new to CA, so I found this really useful in giving some necessary background to the algorithm and what a "rule" is”

称它为元胞自动机的算法和规则提供了必要背景
Oh My Gosh, It’s Covered in Rule 30s原评论 ↗
推荐Crespyl · 2018-05

“Daniel Shiffman's excellent book "The Nature of Code"[0] uses Processing (now ported to Processing.js) to teach all kinds of practical introductory tools”

称赞它用 Processing 教各种实用的入门工具
The History of the Processing Programming Language原评论 ↗
推荐polytely · 2020-06

“he also wrote a book called "the nature of code" which is alse awesome [1]”

提到作者还写了这本很棒的书
Exploration of Generative Art原评论 ↗
推荐odomojuli · 2020-08

“Here's a link to Daniel Shiffman's excellent write up and code examples illustrating the phenomena:”

推荐作者对 flocking 现象的讲解和示例代码
Do Human crowds during protests resemble animal swarming behavior?原评论 ↗
推荐lioeters · 2020-09

“I found the following book insightful, in understanding some of the concepts involved in simulating physics and "life-like" behaviors.”

称它有助于理解模拟物理和类生命行为
Noita – roguelite where every pixel is simulated原评论 ↗
推荐dannygarcia · 2021-08

“The Nature of Code book is a great resource.”

称它是程序化生成的优秀基础资源
Fishdraw: Procedurally Generated Fish Drawings原评论 ↗
推荐lioeters · 2022-08

“"The Nature of Code" by Daniel Shiffman is a wonderful book that counts Vehicles as one of its inspirations.”

称它是一本出色的书,受 Vehicles 启发
Quirky computing books原评论 ↗
推荐toppy · 2023-09

“You could draw an inspiration from Daniel Shifman's book "Nature of code" - see chapters 2 and 3 for instance.”

建议从它的第 2、3 章汲取灵感
Animations From First Principles (in 5 minutes)原评论 ↗
推荐jasonjmcghee · 2023-10

“I like to recommend The Nature of Code”

常把它推荐为很棒的编程入门书
Introducing Ruvy原评论 ↗