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

AR Game Exposed U.S. Vulnerability to Low-Tech Warfare

https://nsarchive.gwu.edu/news/2024-11-01/rigged-war-game-exposed-us-vulnerability-low-tech-warfare
1•KnuthIsGod•45s ago•0 comments

Bluesky Radio – Hosted by Opus 4.7

https://bskyrad.io/
1•wilted-iris•4m ago•0 comments

Data centers raise nearby temperatures by up to 4 degrees in Phoenix

https://techxplore.com/news/2026-05-centers-nearby-temperatures-degrees-phoenix.html
1•limitedfrom•9m ago•1 comments

My First Game, Shadow Dungeon (Procedural Roguelike)

https://dynaq.itch.io/shadow-dungeon
1•mik09•14m ago•0 comments

Ball Simulator in Python Made with Claude

https://github.com/simin75simin/ball-sandbox
1•mik09•18m ago•1 comments

Google's Own AI Researchers Jockey for Access to Its Computing

https://www.bloomberg.com/news/articles/2026-05-18/google-s-own-ai-researchers-jockey-for-access-...
1•osnium123•25m ago•0 comments

Have I Been Pwned: Colombian fintech company leaks 34.5M accounts in March 2026

https://haveibeenpwned.com/Breach/ADDI
2•guessmyname•27m ago•0 comments

Do Androids Dream of Your Electric Life?

https://medium.com/@vektormemory/do-androids-dream-of-your-electric-life-4c2c439ab0aa
1•vektormemory•29m ago•0 comments

Language Registries Are Unstable by Default

https://nesbitt.io/2026/05/15/language-registries-are-unstable-by-default.html
1•pabs3•32m ago•0 comments

Retrospective on DDIA

https://www.khola.blog/p/designing-data-intensive-applications
1•bcapchickadee•32m ago•0 comments

The American Rebellion Against AI Is Gaining Steam

https://www.wsj.com/tech/ai/the-american-rebellion-against-ai-is-gaining-steam-94b72529
5•JaakkoP•34m ago•3 comments

New features in GCC 16: Improved error messages and SARIF output

https://developers.redhat.com/articles/2026/04/28/gcc-16-improved-error-messages-sarif-output
1•siteshwar•35m ago•0 comments

A shallow dive into formal verification

https://vitalik.eth.limo/general/2026/05/18/fv.html
2•wslh•36m ago•0 comments

Reverse Lookup and AI-Powered Osint

https://sherlockeye.io/
1•mrzenodd•44m ago•0 comments

The Coming Food Crisis in South Asia

https://thediplomat.com/2026/05/the-coming-food-crisis-in-south-asia/
4•panny•50m ago•0 comments

The last six months in LLMs in five minutes

https://simonwillison.net/2026/May/19/5-minute-llms/
5•yakkomajuri•55m ago•0 comments

Surface owner loses their limited 50th Anniversary edition after a repair swap

https://www.windowscentral.com/hardware/surface/this-surface-owner-lost-their-limited-50th-annive...
2•Oblivion8442•55m ago•0 comments

Nitsum: Serving Tiered LLM Requests with Adaptive Tensor Parallelism

https://mlsys.wuklab.io/posts/nitsum/
1•matt_d•1h ago•0 comments

SuperInfer: SLO-Aware Rotary Scheduling and Memory Management for LLM Inference

https://supercomputing-system-ai-lab.github.io/projects/superinfer/
1•matt_d•1h ago•0 comments

What can a local model do for you in early May 2026?

https://manichord.com/blog/posts/what-can-local-model-do-in-may-2026
2•mkss•1h ago•1 comments

Guess where someone works based on their profile picture

https://tools.crustdata.com/guessthecompany
1•mhi3•1h ago•0 comments

Sony Pulls Back from PlayStation Games on PC

https://www.bloomberg.com/news/articles/2026-03-04/sony-pulls-back-from-playstation-games-on-pc
1•embedding-shape•1h ago•1 comments

Museum of Innocence (Museum)

https://en.wikipedia.org/wiki/The_Museum_of_Innocence_(museum)
2•brudgers•1h ago•0 comments

Video GTP

https://www.neotube.ai/
1•walkervin•1h ago•0 comments

BudgetBites – AI meal planning app that helps you save money on groceries

https://budgetbites.website/login
2•ClarenceJackson•1h ago•0 comments

Make products AI agents want

https://anitakirkovska.com/blog/make-products-ai-agents-want/
1•anitakirkovska•1h ago•0 comments

Google, Blackstone plan AI cloud venture with $5B backing, WSJ reports

https://www.reuters.com/business/google-blackstone-create-new-ai-cloud-company-wsj-reports-2026-0...
1•ndesaulniers•1h ago•0 comments

We should stop using Agile and Waterfall as is

https://quantumentangled.dev/viewpost/12/we-should-stop-using-agile-and-waterfall-asis
1•rulyone•1h ago•0 comments

Feedback on my S&P 500 Search Tool (fast search by name, ticker, sector)

https://sp500-search.streamlit.app/
1•gilthor•1h ago•0 comments

Will the Indus Valley script ever be deciphered?

https://www.livescience.com/archaeology/will-the-indus-valley-script-ever-be-deciphered
1•redwood•1h ago•1 comments