frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

8•codelion•12mo 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•11mo 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•11mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•11mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Echoes (Live at Pompeii)

https://genius.com/Pink-floyd-echoes-live-at-pompeii-lyrics
1•jruohonen•52s ago•0 comments

Kushner's Thrive Capital Invests $100M in Shopify

https://www.bloomberg.com/news/articles/2026-05-14/joshua-kushner-s-thrive-capital-invests-100-mi...
1•petethomas•2m ago•0 comments

QEMU CXL Escape

https://github.com/v12-security/pocs/blob/main/qemu/README.md
1•somebudyelse•5m ago•0 comments

Evidence-Based Medicine

https://en.wikipedia.org/wiki/Evidence-based_medicine
1•bookofjoe•5m ago•0 comments

Traverse: In-memory graph database for the modern data stack

https://traverse.truespar.com/
1•johlo•5m ago•0 comments

Tina: A strictly bounded, thread-per-core concurrency framework

https://github.com/pmbanugo/tina
1•satyapr93•6m ago•0 comments

The Colorado River Is on the Brink of Disaster

https://www.wsj.com/us-news/climate-environment/the-colorado-river-is-on-the-brink-of-disaster-62...
2•LostMyLogin•6m ago•0 comments

Ansel – OSS volume visualization tool

https://fosterdill.github.io/ansel-web/
1•fosterdill•6m ago•1 comments

The Zulip Foundation

https://blog.zulip.com/2026/05/15/announcing-zulip-foundation/
1•boramalper•7m ago•0 comments

SIMD-Accelerated Data Processing [video]

https://www.youtube.com/watch?v=BBLDgsU7Zn4
1•mpweiher•10m ago•0 comments

The Fulda Gap: A Cavalry Scout's Account of the End of the World That Never Came

https://twitter.com/wgmorrow/status/2055100442737037566
1•omnibrain•11m ago•0 comments

Why physicists still use Fortran (2015)

https://www.moreisdifferent.com/2015/07/16/why-physicsts-still-use-fortran/
2•downbad_•11m ago•0 comments

Show HN: Incorporator, Turn any API/File into typed Python graph with pipeline

https://github.com/PyPlumber/Incorporator/
1•PyPlumber•12m ago•0 comments

The Grand Tradition of Suing for School Tuition

https://nymag.com/intelligencer/article/carter-case-lawsuit-new-york-city-education-special-educa...
1•csheehan10•12m ago•0 comments

Satiety Index: The Secret to Long-Lasting Fullness

https://optimisingnutrition.com/satiety-index/
1•rzk•14m ago•0 comments

Heirs and Spares in Early Modern France

https://www.historytoday.com/archive/feature/heirs-and-spares-early-modern-france
1•pepys•17m ago•0 comments

StockWire – Stock market ticker with deterministic, auditable tips

https://stockwire.work/
1•rudixworld•18m ago•0 comments

Concurrency is not Parallelism (2015) [video]

https://www.youtube.com/watch?v=oV9rvDllKEg
1•tosh•20m ago•0 comments

OpenAI now wants ChatGPT to access your bank accounts

https://www.theverge.com/ai-artificial-intelligence/931122/openai-chatgpt-financial-accounts-plai...
2•ndr42•21m ago•0 comments

The Aperiodic Table

https://blog.jgc.org/2026/05/the-aperiodic-table.html
1•jgrahamc•21m ago•0 comments

What Color is Your Function? (2015)

https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
1•tosh•26m ago•0 comments

Using a Nintendo Switch to Speed Up a 3D Printer

https://hackaday.com/2026/05/15/using-a-nintendo-switch-to-speed-up-a-3d-printer/
2•speckx•27m ago•0 comments

Where Did All the Soul Go?

https://arpl.dev/blog/where-did-all-the-sould-go
2•mooreds•28m ago•0 comments

Psyllium husk is being touted as nature's Ozempic

https://www.theguardian.com/wellness/2025/jun/11/what-is-psyllium-husk
2•rzk•30m ago•0 comments

Microsoft/Wil: Windows Implementation Library

https://github.com/microsoft/wil
1•Tomte•31m ago•0 comments

Playing Atari music on Amiga for free

https://arnaud-carre.github.io/2026-05-15-ym-fast-emu/
3•nopakos•31m ago•0 comments

JOOQ: The easiest way to write SQL in Java

https://www.jooq.org/
1•Tomte•31m ago•0 comments

Travelers on Air Force One ordered to throw away gifts, phones after China trip

https://techcrunch.com/2026/05/15/us-orders-travelers-on-air-force-one-to-throw-away-gifts-pins-a...
6•leopoldj•33m ago•0 comments

Azure Container Apps Express

https://techcommunity.microsoft.com/blog/appsonazureblog/introducing-azure-container-apps-express...
1•vyrotek•34m ago•0 comments

Trump leaves China with no agreement but cites 'good' talks with Xi

https://www.nbcnews.com/politics/donald-trump/trump-leaves-china-no-agreement-thorny-issues-cites...
2•kaycebasques•36m ago•1 comments