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.

Why my Gmail agent broker stays in Google's Testing mode

https://tinthe.dev/p/t/posts/why-seneschal-stays-small
1•tinthedev•4m ago•0 comments

100 Years of Student Radio History in the Dlarc College Radio Collections

https://blog.archive.org/2026/10/02/100-years-of-student-radio-history-in-the-dlarc-college-radio...
1•HieronymusBosch•7m ago•0 comments

Show HN: I Rebuilt the Million Dollar Homepage with a Harberger Tax

https://weiboard.fun/
1•willdn•9m ago•0 comments

Who's Ahead in the Global AI Talent Race?

https://carnegieendowment.org/features/whos-ahead-in-the-global-ai-talent-race
3•surprisetalk•10m ago•0 comments

Most recent AI-assisted coder makes first AI-assisted coder run again

https://github.com/jeffshrager/ExecutableArchaeology/blob/main/HeuristicCoder/HeuristicCoder_guid...
1•abrax3141•11m ago•0 comments

Embark Studios Build the Award-Winning Arc Raiders with Unreal Engine

https://www.unrealengine.com/developer-interviews/embark-studios-build-the-award-winning-arc-raid...
1•pjmlp•15m ago•0 comments

Azure's Weakest Link – Five Full Cross-Tenant Compromises

https://binsec.no/posts/2026/10/one-root-case
2•hland•17m ago•1 comments

Gog Games: DRM-free PC games

https://www.gog.com/en/
3•SchwKatze•17m ago•0 comments

Show HN: A Catalogue of Unknown Creatures

https://bul.peerdiem.com
1•afkqs•17m ago•0 comments

Redditor buys used CPU, turns out it was banned on Valorant and they are SoL

https://www.reddit.com/r/LinusTechTips/comments/1wvr096/wan_show_topic_redditor_buys_used_cpu_tur...
3•xbmcuser•17m ago•0 comments

Harvard particle physicist Matthew Schwartz drops 36 papers authored with Claude

https://www.reddit.com/r/Physics/comments/1wvin77/harvard_particle_physicist_matthew_schwartz_drops/
5•xqcgrek2•18m ago•1 comments

EDG's C++ front end is now open source

https://edgcpp.org/
2•magoghm•18m ago•0 comments

Saudi Arabian EV company Ceer unveils its first vehicles

https://vision2030.ai/analysis/ceer-exobot-first-vehicles-september-2026/
1•bookofjoe•19m ago•0 comments

Using cakes for social engineering (2013)

https://blog.metabrainz.org/2013/12/05/using-cakes-for-social-engineering/
1•lode•20m ago•0 comments

Book Review: The Cuckoo's Egg (2020)

https://www.mooreds.com/wordpress/archives/3405
1•mooreds•20m ago•0 comments

Solving the Puzzle That's Cousteau's Turbosail (1986)

https://www.latimes.com/archives/la-xpm-1986-11-27-sp-13420-story.html
1•georgecmu•24m ago•0 comments

LLMs Do It by Hand

https://lqmstudio.com/2026/10/02/llms-do-it-by-hand/
1•jillro•25m ago•0 comments

Authorship Is Essential

https://applieddiscovery.substack.com/p/authorship-is-essential
1•mooreds•28m ago•0 comments

Plano fire ant control services

https://pestcontrolservicesnearby.com/pest-control-plano-tx/
1•electricianjame•28m ago•0 comments

Building a Worm Detector

https://bencology.bearblog.dev/mapping-individual-and-collective-worm-movements/
1•surprisetalk•30m ago•0 comments

Memory executives expect RAM shortage to continue through 2028

https://arstechnica.com/information-technology/2026/10/memory-supplies-are-only-getting-tighter-m...
4•el_duderino•32m ago•1 comments

Caring vs. Knowing

https://blog.exe.dev/caring-vs-knowing
1•mooreds•35m ago•0 comments

Updated 'Must-Have' Gnome Extensions List – Alan Pope's Blog

https://blog.popey.com/2023/09/updated-must-have-gnome-extensions-list/
1•ankitg12•38m ago•0 comments

Sozly AI

https://sozly.ai/az/
1•gulamaghasiev•38m ago•0 comments

PGlite reaches 20M weekly downloads

https://www.npmjs.com/package/@electric-sql/pglite
2•tdrz•39m ago•0 comments

The Purism Libre 5 and the Six Year Refund

https://sk500.online/tech/the-purism-libre-5-and-the-six-year-refund/
1•airhangerf15•40m ago•0 comments

Thus Spoke Compute [video]

https://www.youtube.com/watch?v=Cq8qO-NjYIg
1•neilellis•41m ago•0 comments

First Alfred 6 Sneak Peek: Alfred UI

https://www.alfredapp.com//v6/
1•ahamez•48m ago•0 comments

Social Reality in China

https://www.lesswrong.com/posts/b5cSYh4emQb2qrGmK/on-social-reality-in-china
2•thicTurtlLverXX•48m ago•0 comments

Fossil – A Coherent Software Configuration Management System

https://fossil-scm.org/home/doc/trunk/www/index.wiki
1•gjvc•50m ago•0 comments