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.

Sl – A Scalable, User-Friendly Source Control System

https://github.com/facebook/sapling
1•modinfo•2m ago•0 comments

Is there a temp phone number like temp email?

4•blacksinger•6m ago•1 comments

Show HN: Solo business must have tool, Tamo

https://heytamo.com/
1•berkaycubuk•9m ago•0 comments

Life After SEO

https://reutersinstitute.politics.ox.ac.uk/news/life-after-seo-how-newsrooms-are-adapting-ai-sear...
1•jruohonen•12m ago•0 comments

Brax Wink

https://braxtech.net/products/wink
1•unit-vector•12m ago•0 comments

Rescue AI models with one click

https://pirateface.co/rescue
1•ahoyychips•13m ago•0 comments

Costco Haul Culture and Land Use

https://urbancourtyard.substack.com/p/costco-haul-culture-and-land-use
2•eatonphil•14m ago•0 comments

Why integrity matters in your career

https://coached.com/essays/why-integrity-matters-in-your-career/
1•rohanm93•14m ago•0 comments

AI Edge Foresight

https://developers.google.com/edge/foresight
1•_benx_•16m ago•0 comments

Talk like Paul Dirac – less words is better

2•asen•18m ago•1 comments

Homelab Doesn't Need to Run 24/7

https://noted.lol/your-homelab-doesnt-need-to-run-24-7/
3•geeked•19m ago•1 comments

Show HN: Organ – Run your company with autonomous agents

https://organ.app/en
1•johmu•20m ago•0 comments

History of Spreadsheets (2026): VisiCalc to Taskade Genesis

https://www.taskade.com/blog/spreadsheet-history
2•mpweiher•22m ago•0 comments

Armory Castle Exploits BeyondTrust

https://cloud.google.com/blog/topics/threat-intelligence/armory-castle-exploits-beyondtrust
1•torutofu•25m ago•0 comments

Better Algorithms for Benign Bandits (2011) [pdf]

https://www.jmlr.org/papers/volume12/hazan11a/hazan11a.pdf
1•Eridanus2•26m ago•0 comments

SOPS: Secrets OPerationS Simple and Flexible Tool for Managing Secrets

https://getsops.io/
2•Bluestein•27m ago•0 comments

Evidence Before Trust

https://www.crunchbase.com/organization/eels-d60e
1•chuansoo•27m ago•0 comments

Natural screen reader voices on Linux

https://codemacabre.com/notes/natural-screen-reader-voices/
1•edent•28m ago•0 comments

Domain-Driven Design (DDD) – The Complete Guide – Visually Explained

https://www.youtube.com/watch?v=0c2fj6z6Zso
1•birdculture•30m ago•0 comments

Hyperoptimized Engineer 2026 [video]

https://www.youtube.com/watch?v=MhEL9cvLxQE
1•modinfo•30m ago•0 comments

Computer Ethics

https://en.wikipedia.org/wiki/Computer_ethics
1•DanielVZ•31m ago•0 comments

Ask HN: How much are developers trusting LLMs to write prod code?

1•devtor•32m ago•0 comments

LA restaurant group used $60k Dodgers bet to hedge playoff risk, Kalshi says

https://www.reuters.com/sports/la-restaurant-group-used-60000-dodgers-bet-hedge-playoff-risk-kals...
2•simonpure•39m ago•0 comments

Show HN: A daily deduction puzzle where one hex on a nautical chart is a lie

https://cartographerslie.com
1•kevmarsh91•42m ago•0 comments

Molecular 'scissors' open path to new therapies

https://newsroom.uw.edu/news-releases/molecular-scissors-open-path-to-new-therapies
2•geox•44m ago•0 comments

Make System One Models Fight

https://system-one-arcade.fly.dev/
1•tarasyarema•44m ago•1 comments

Strip Digital Signatures from PDFs Before Feeding Them to AI (LinuxGuide)

https://medium.com/@GiovambattistaVieri/strip-digital-signatures-from-pdfs-before-feeding-them-to...
2•gvieri•46m ago•0 comments

Super Intelligence

https://www.si.gov/
40•wiradikusuma•49m ago•71 comments

PrivateNotes: Encrypted notes, tasks, files, passwords, journal and bookmarks

https://github.com/LifetimeLabsDev/PrivacyNotes.app
1•akyuu•50m ago•0 comments

Emmanuel Maignan's gnomonic catoptric astrolabe at Palazzo Spada (2024) [video]

https://www.youtube.com/watch?v=gPQNDe8YNvo
1•zeristor•53m ago•1 comments