My first Genetic Algorithm program
Wrote a program in FreeBASIC to try and find out how Genetic Algorithms work. It's a quick hack that I wrote to try some theories with because the Wikipedia Article on GAs reads like greek to me. So I built it from the general principles i knew at the time. The "genome" per individual is an array of 9000 integers but I used only monochrome pictures with either black or white; An individual also has a fitness score. There are 1000 individuals in the population and only two are selected to reproduce. So that makes 9 million (yes, MEELION as El Reg would write) data points and the scoring…
My first Genetic Algorithm program launched on June 24, 2015 with 19 votes, #1,364 of 3,954 launches that month and more than 75% of that year's launches.
In plain words
This is a FreeBASIC program that demonstrates how genetic algorithms work through practical experimentation. It evolves a population of 1,000 individuals, each representing a 9,000-integer genome that encodes monochrome images, by selecting the two fittest candidates to reproduce each generation. The program tracks fitness scores across millions of data points and applies a 0.002% mutation rate to prevent stalling. Built as an educational exploration rather than an optimized tool, it's designed for people trying to understand genetic algorithms through hands-on implementation.
written from the facts on this page · September 2026
From the sources
In the maker’s words, at launch
Wrote a program in FreeBASIC to try and find out how Genetic Algorithms work. It's a quick hack that I wrote to try some theories with because the Wikipedia Article on GAs reads like greek to me. So I built it from the general principles i knew at the time. The "genome" per individual is an array of 9000 integers but…
Does a similar job
all alternatives →- AGA Genetic Algorithm I wrote in JavaScript to evolve "Hello World"2010 · puremango.co.uk · ▲109
Swarm – Program a colony of 200 ants using a custom assembly languageMar 2026 · dev.moment.com · ▲190We built an ant colony simulation as an internal hiring challenge at Moment and decided to open it up publicly. You write a program in a custom assembly-like (we call it ant-ssembly) instruction set that controls 200 ants. Each ant can sense nearby cells (food, pheromones, home, other ants) but has no global view. The only coordination mechanism is pheromone trails, which ants can emit and sense them, but that's it. Your program runs identically on every ant. The goal is to collect the highest percentage of food across a set of maps. Different map layouts (clustered food, scattered,…
- MBMy Book on Evolutionary Algorithms, Written in Python Notebooks2020 · shahinrostami.com · ▲63
Beautiful Data Science
Genetic Hello World2017 · github.com · ▲76Contribute to sacert/Genetic-Hello-World development by creating an account on GitHub.
- OSOpen-Source AlphaEvolve Clone Using GPT-4.1 and Genetic Programming2025 · ▲20
Everyone saw the AlphaEvolve hype. I got obsessed with how it might work under the hood and decided to just build it myself. My setup uses GPT-4.1 to mutate matrix multiplication code, guided by a bunch of hand-crafted mutation strategies (loop reordering, tiling, Strassen, etc.). Each candidate is evaluated on both speed and accuracy. Then I apply Pareto selection with crowding distance to evolve better ones over generations. I ran into all the usual LLM reward hacks-returning the input, calling np.dot, etc. So I forced primitive-only implementations and tightly constrained the mutation…
I started a repo for sharing algorithm implementations2013 · github.com · ▲52Everything that would be here is in the README. I hope this gets big, it has tons of potential.
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 2d ago · permit.petercai.com
- IV
Life & fun · 14d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 15d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 9d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 13d ago · carrierexplode.com

Life & fun · 23d ago · space.bl2.net
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, June 2015
the whole month →
Startup Launch List▲1,251Articles you need to read before launching a startup.
Growth · 2015 · startuplaunchlist.com

Get any site's company logo with just a URL
Dev tools · 2015 · clearbit.com



