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.

Physicists can't agree on how the Universe works

https://www.sciencedaily.com/releases/2026/09/260912220041.htm
1•gradus_ad•2m ago•0 comments

Meta$^N$: Recursive Self-Improvement Through Emergent Depth

https://arxiv.org/abs/2608.24735
2•Anon84•5m ago•0 comments

Navier-Stokes Visualized as 1kB i386 demos

https://juandecos.github.io/TurboZip/vortex.html
2•chaostaco•7m ago•1 comments

Looking for Some Beta Testers

https://nevarroapp.com/
1•Linden207•11m ago•0 comments

DeepSeek Peak Hours

https://deepseek-peak-hours.sivaram.dev/
2•denysvitali•12m ago•0 comments

AI extinction is only one way the future is frightening

https://www.rnz.co.nz/news/world/1362349/ai-extinction-is-only-one-way-the-future-is-frightening
5•billybuckwheat•14m ago•1 comments

Memos.page

https://memos.page/
1•montyanderson•15m ago•0 comments

Unified Plan to Align Priorities and Investments for Strategic Petroleum Reserve

https://files.gao.gov/reports/GAO-26-106918/index.html
2•Bluestein•15m ago•0 comments

Show HN: Swobu – TUI-First LLM Switchboard You Can Share over E2E HTTPS

https://github.com/swobuforge/swobu
1•metrofun•16m ago•0 comments

The Last AI Built by Humans: Toward Genuine Recursive Self-Improvement

https://arxiv.org/abs/2609.11873
1•pella•22m ago•0 comments

Show HN: What Just Pinged Me?

https://whatjustpingedme.com
2•furyofantares•24m ago•0 comments

China Cleantech Exports Data Explorer

https://ember-energy.org/data/china-cleantech-exports-data-explorer/
2•Bluestein•25m ago•0 comments

Byte: A Visual Archive

https://byte.tsundoku.io/#198410-011
2•doener•26m ago•0 comments

Mees AI Journal and Chat

https://play.google.com/store/apps/details?id=chat.meesai.net&hl=en_US
3•saidevac•36m ago•0 comments

Slime moulds and the bitter debate over the nature of intelligence

https://www.theguardian.com/news/ng-interactive/2026/sep/08/this-is-dangerous-slime-moulds-and-th...
1•bookofjoe•37m ago•0 comments

Portable Cooling Mister and Bonus Stationary Pet Version

https://www.instructables.com/Portable-Cooling-Mister-Bonus-Stationary-Pet-Versi/
1•sudo_cowsay•37m ago•0 comments

Douglas Adams and the exterminated Doctor Who adventure

https://www.bbc.co.uk/news/articles/c8jdp38z4jgo
2•6LLvveMx2koXfwn•40m ago•0 comments

Show HN: I made an automated day-by-day itinerary organizer for my trip to Spain

https://petrelvoyage.com/app
3•desktopentree•42m ago•2 comments

Registration without a phone number on Signal will use zero-knowledge proofs

https://community.signalusers.org/t/registration-without-a-phone-number/2222?page=10
6•Cider9986•42m ago•0 comments

There's No Such Thing as an AI 'Lab'

https://www.theatlantic.com/technology/2026/09/stop-calling-ai-companies-labs/688528/
3•Bluestein•46m ago•0 comments

Destockd

https://www.destockd.com/#/about
2•DeepLogin•48m ago•0 comments

The Hidden Software Variable in UAS Performance

https://foxandlion.pub/analysis/the-hidden-software-variable-in-uas-performance
8•agrantic•51m ago•0 comments

A malleable IDE for typed knowledge

https://github.com/arsumbris/arsumbris
3•arscontexta•55m ago•1 comments

What are the five pros and cons of artificial intelligence?

https://www.aljazeera.com/news/2026/9/13/what-are-the-five-pros-and-cons-of-artificial-intelligence
4•jethronethro•57m ago•0 comments

The Human Use of Human Beings - Norbert Wiener (1989) [pdf]

https://monoskop.org/images/6/60/Wiener_Norbert_The_Human_Use_of_Human_Beings_1989.pdf
4•andsoitis•1h ago•0 comments

I think of time as an arrow, so I made a linear calendar

https://theawesomecalendar.com/en
1•maksonam•1h ago•3 comments

Expanding model choice in Copilot with Grok

https://techcommunity.microsoft.com/blog/microsoft-copilot-blog/expanding-model-choice-in-copilot...
3•andsoitis•1h ago•0 comments

Ask HN: Is there an emerging pattern for NEGATIVESKILLS.md files?

2•mehmetoguzderin•1h ago•2 comments

BluBeam Pro

https://blubeam.pro/
2•alexawilder•1h ago•1 comments

DuckDB 2.0 Pushes Whole Queries Through ADBC–10–11× Faster on PostgreSQL

https://query.farm/blog/one-query-one-arrow-stream-adbc-duckdb-2/
3•rustyconover•1h ago•0 comments