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.

mini-Lean-Agent: A Coding-Agent Baseline for Lean

https://arxiv.org/abs/2610.17331
1•matt_d•1m ago•0 comments

Block Blast harvests its players for ad money

https://ayoships.com/breakdowns/block-blast
1•robin_reala•3m ago•0 comments

Jexxa Now Includes an Automatic Evaluation Suite

https://jexxa.org/
1•sankde•4m ago•1 comments

Stop training forecast models. Timeseries just went zero-shot

https://nitishagar.medium.com/stop-training-forecast-models-time-series-just-went-zero-shot-c7ff7...
1•nitishagar•13m ago•0 comments

PHP warns it plans to release 2 emergency patches imminently

https://arstechnica.com/security/2026/10/php-maintainers-tell-web-devs-to-prepare-themselves-for-...
2•jaredwiener•24m ago•1 comments

Giving AI video some Remembrance of things past

https://www.unite.ai/giving-ai-video-some-remembrance-of-things-past/
1•50kIters•25m ago•0 comments

Pragtical v3.14 Lua-based text editor adds menus, floating views, and sessions

https://pragtical.dev/blog/pragtical-v3140-release
1•rd07•25m ago•0 comments

MagicRoute: Routing Without Physical Routers

https://tailscale.com/blog/magicroute-beta
1•mfrw•29m ago•0 comments

World Classics: Modern Translations of the Iliad and Odyssey (EN, FR, DE, ES)

https://worldclassics.org/
1•epsteingpt•31m ago•1 comments

What Will Be Scarce

https://aleximas.substack.com/p/what-will-be-scarce
1•thewileyone•31m ago•0 comments

Omarchy made me rethink my Mac

https://cloudjourneyblog.rohi-lab.org/blog/summon-os
1•RohiRik•35m ago•1 comments

Static vs. dynamic tradeoffs – Rich Hickey (Clojure/Conj 2026) [video]

https://www.youtube.com/watch?v=P5eO7BNyJao
1•fmjrey•37m ago•1 comments

Claude Opus 5.5 finished Baldur's Gate 3 on its own in 39 hours

https://bogdantruta.com/blog/claude-finished-baldurs-gate-3/
2•swyx•38m ago•1 comments

Kvleak:my Claude Code cache hit was 95%,fifth of input spend leaked

https://github.com/shangliy/kvleak
1•shangliy•41m ago•0 comments

Android 17 for RISC-V Available for the RVA23 Profile Through Rise

https://riseproject.dev/2026/10/20/android-17-available-on-rva23-with-rise/
1•fork-bomber•43m ago•0 comments

What They're Not Telling You About Data Centers [video]

https://www.youtube.com/watch?v=1V_o8tfuGdw
1•jonbaer•44m ago•0 comments

C vs. C#: racing VLC's Gaussian blur

https://martinfinkel.com/blog/gaussian-blur-c-vs-csharp/
1•martz•46m ago•0 comments

Why We Still Need an IDE

https://blog.jetbrains.com/blog/2026/10/20/why-we-still-need-an-ide/
2•snafu109•47m ago•0 comments

AI Benchmarks: Climbing the Wrong Hills

https://research.contrary.com/report/ai-benchmarks-climbing-the-wrong-hills
3•gmays•48m ago•0 comments

SaaS Is Dead

https://saasisdead.si/
7•tokozedginidze•52m ago•3 comments

'Phenomenal sighting': Beluga whale spotted off Donegal

https://www.rte.ie/news/ulster/2026/1020/1596169-beluga-whale-donegal/
2•austinallegro•53m ago•0 comments

Letter to a worried student (David Madore)

http://www.madore.org/~david/weblog/d.2026-10-20.2862.letter-to-a-worried-student.html#d.2026-10-...
2•baruchel•54m ago•0 comments

Delivery Robots Accused of Scanning Customers' Faces and Sharing Biometric Data

https://apnews.com/article/chicago-food-delivery-robots-biometric-data-lawsuits-16ead54eb7dc7c6ea...
3•armcat•56m ago•0 comments

TotalBodyIQ, an iOS workout planner that assumes your week will go wrong

https://apps.apple.com/us/app/totalbodyiq-workout-coach/id6760733953
1•andytotalbodyiq•1h ago•0 comments

What should I use instead of Firefox on Android?

2•trystrawberries•1h ago•3 comments

The Flying Pig Problems

https://tianyin.github.io/flying_pig_problems.html
1•rayval•1h ago•0 comments

Design files are becoming text

https://polotno.com/blog/json-design-format
1•Interfaces_pro•1h ago•0 comments

Larry Ellison Went on Borrowing Spree to Bankroll His Son's Warner Bros. Bid

https://www.wsj.com/finance/larry-ellison-warner-bros-loans-49918714
4•JumpCrisscross•1h ago•0 comments

Don't Be Hapless

https://www.paulgraham.com/relres.html
1•nvader•1h ago•0 comments

Ask HN: Does anyone else just want to disconnect from everything?

3•lualover•1h ago•2 comments