Skip to Content
Strange Code
book

Strange Code

by Ronald T. Kneusel
September 2022
Intermediate to advanced
496 pages
12h 32m
English
No Starch Press
Content preview from Strange Code

GENETIC PROGRAMMING WITH FIREFLY

Image

In Chapter 15, we explored the Firefly language with fun animations and music. In this appendix, we’ll use Firefly along with genetic programming to evolve displays we can then animate.

Introduction to Genetic Programming

Genetic programming became widely known in the early 1990s. Genetic programming uses algorithms to create programs by mimicking biological evolution. Instead of manually writing the code to perform a task, genetic programming generates and runs a population of random programs to see how well they perform. Each program in the population is given a fitness value, often called an objective function ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Good Code, Bad Code

Good Code, Bad Code

Tom Long
Street Coder

Street Coder

Sedat Kapanoglu

Publisher Resources

ISBN: 9781098141363