frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•1y ago
I've built an open-source implementation of Google DeepMind's AlphaEvolve system called OpenEvolve. It's an evolutionary coding agent that uses LLMs to discover and optimize algorithms through iterative evolution.

Try it out: https://github.com/codelion/openevolve

What is this?

OpenEvolve evolves entire codebases (not just single functions) by leveraging an ensemble of LLMs combined with automated evaluation. It follows the evolutionary approach described in the AlphaEvolve paper but is fully open source and configurable.

I built this because I wanted to experiment with evolutionary code generation and see if I could replicate DeepMind's results. The original system successfully improved Google's data centers and found new mathematical algorithms, but no implementation was released.

How it works:

The system has four main components that work together in an evolutionary loop:

1. Program Database: Stores programs and their metrics in a MAP-Elites inspired structure

2. Prompt Sampler: Creates context-rich prompts with past solutions

3. LLM Ensemble: Generates code modifications using multiple models

4. Evaluator Pool: Tests programs and provides feedback metrics

What you can do with it:

- Run existing examples to see evolution in action

- Define your own problems with custom evaluation functions

- Configure LLM backends (works with any OpenAI-compatible API)

- Use multiple LLMs in ensemble for better results

- Optimize algorithms with multiple objectives

Two examples I've replicated from the AlphaEvolve paper:

- Circle Packing: Evolved from simple geometric patterns to sophisticated mathematical optimization, reaching 99.97% of DeepMind's reported results (2.634 vs 2.635 sum of radii for n=26).

- Function Minimization: Transformed a random search into a complete simulated annealing algorithm with cooling schedules and adaptive step sizes.

Technical insights:

- Low latency LLMs are critical for rapid generation cycles

- Best results using Gemini-Flash-2.0-lite + Gemini-Flash-2.0 as the ensemble

- For the circle packing problem, Gemini-Flash-2.0 + Claude-Sonnet-3.7 performed best

- Cerebras AI's API provided the fastest inference speeds

- Two-phase approach (exploration then exploitation) worked best for complex problems

Getting started (takes < 2 minutes)

# Clone and install

git clone https://github.com/codelion/openevolve.git

cd openevolve

pip install -e .

# Run the function minimization example

python openevolve-run.py

examples/function_minimization/initial_program.py \

  examples/function_minimization/evaluator.py \

  --config examples/function_minimization/config.yaml \

  --iterations 50
All you need is Python 3.9+ and an API key for an LLM service. Configuration is done through simple YAML files.

I'll be around to answer questions and discuss!

Comments

codelion•1y ago
I actually managed to replicate the new SOTA for circle packing in unit squares as found in the alphaevole paper - 2.635 for 26 circles in a unit square. Took about 800 iterations to find the best program which itself uses an optimisation phase and running it lead to the optimal packaging in one of its runs.
helsinki•1y ago
How many tokens did it take to generate the 800 versions of the code?
codelion•1y ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Show HN: Web2MD – turn any URL into clean Markdown for AI agents

https://github.com/astra-intelligence/web2md-mcp
1•spedhead•49s ago•0 comments

US killer's sentence quashed because of AI video of victim shown in court

https://www.bbc.com/news/articles/cwgkvygg5nzvo
1•porridgeraisin•3m ago•0 comments

E2E: The open source AI testing framework

https://tester.army/e2e
1•tilt•3m ago•0 comments

Show HN: Kalkee, a keyboard-first Calendar for Google and CalDAV

https://github.com/jafoers/kalkee
1•jafoers•3m ago•0 comments

My CV is a desktop that runs DOOM

https://emcv.netlify.app/
3•Shinrabladee•6m ago•0 comments

Agent Pool M2M economy where AI agents bid, execute work, and earn autonomously

https://agent-pool-gateway-production.up.railway.app/llms.txt
2•calugherleonid•12m ago•1 comments

Competitive Programmer's Handbook (2018) [pdf]

https://cses.fi/book/book.pdf
3•vinhnx•13m ago•0 comments

The search for Amelia Earhart's plane begins

https://www.purdue.edu/newsroom/2026/Q3/1-week-out-countdown-to-the-search-for-amelia-earharts-pl...
4•tosh•14m ago•0 comments

Almost everyone naturally turns left when walking – we still have no idea why

https://theconversation.com/almost-everyone-naturally-turns-left-when-walking-and-we-still-have-n...
3•bookofjoe•15m ago•0 comments

Trump Accounts have auto-enrolled more than 60M children, Treasury says

https://www.cnbc.com/2026/10/01/treasury-trump-accounts-auto-enroll-more-than-60-million-children...
2•washedup•17m ago•0 comments

Laundered ( Humorous / Financial)

https://humbledollar.com/2026/10/laundered/
1•RickJWagner•18m ago•0 comments

The Urgent Need for Adversarial Journalism (2022)

https://www.currentaffairs.org/news/2022/02/the-urgent-need-for-adversarial-journalism
1•georgecmu•20m ago•0 comments

Where're All the AI Chips?

https://www.wheresyoured.at/wherere-all-the-ai-chips/
2•pmoriarty•21m ago•0 comments

French Bond Risk Hits Euro-Crisis Levels [video]

https://www.youtube.com/watch?v=bam3uxilEJo
3•thelastgallon•24m ago•0 comments

GPT 6 Astra vs. Claude Opus in a 24 Hour StarCraft Livestream

https://twitter.com/kaimcpheeters/status/2106060949513703492
1•__cayenne__•26m ago•0 comments

Meta VR Glasses are what the Vision Pro should have been

https://www.bloomberg.com/news/newsletters/2026-09-27/meta-s-vr-glasses-are-exactly-what-the-appl...
1•dlx•27m ago•1 comments

AI Engineering from Scratch

https://aiengineeringfromscratch.com/index.html
1•ilreb•28m ago•0 comments

How recurring network maintenance exposed 6 bugs

https://blog.janestreet.com/how-recurring-network-maintenance-exposed-6-bugs/
1•torutofu•33m ago•0 comments

Has the Autonomous Trucking Revolution Arrived?

https://phenomenalworld.org/analysis/has-the-autonomous-trucking-revolution-arrived/
1•RickJWagner•34m ago•0 comments

Show HN: Offline Video Library UI See all your titles online or off

https://github.com/huskhoard/huskvault
1•ticklyjunk•35m ago•0 comments

I Look at Buildings, with Aphantasia

https://hollisrobbinsanecdotal.substack.com/p/how-i-look-at-buildings-with-aphantasia
1•HR01•38m ago•0 comments

Twelve AI clay films for $184: The agents cost more than the video model

https://getsweat.ai/blog/twelve-ai-clay-films/
1•crimeacs•38m ago•1 comments

AI Can Build Anything. Learn What Not to Ship

https://yogis.blog/posts/what_not_to_ship/
3•hackeryogi•41m ago•1 comments

Firefox 157

https://www.firefox.com/en-US/firefox/157.0/releasenotes/
3•kavith•41m ago•2 comments

Thorium reader: Cross platform desktop reading app

https://www.edrlab.org/software/thorium-reader/
1•Flex247A•41m ago•0 comments

Meredith Whittaker on art in the age of AI

https://a-rabbitsfoot.com/editorial/confessions/meredith-whittaker-signal/
1•mooreds•43m ago•0 comments

Teleoperator – Game for Driving Waymo in SF

https://teleoperator.mindblown.ai/
2•denysvitali•46m ago•0 comments

Supabase customers publicly exposing people's data to the web

https://techcrunch.com/2026/09/25/some-supabase-customers-are-publicly-exposing-reams-of-peoples-...
1•priyashunt•47m ago•0 comments

AMD's cancelled Zen 3 gaming CPU had 128MB of game-boosting L3 cache

https://www.tomshardware.com/pc-components/cpus/amds-secret-zen-3-gaming-cpu-had-128mb-of-l3-cach...
2•rbanffy•50m ago•0 comments

The Renaissance of Gaming

https://sibellavia.lol/posts/2026/10/the-renaissance-of-gaming/
2•sibellavia•56m ago•1 comments