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.

Many surgical interventions are little better than placebo

https://www.economist.com/science-and-technology/2026/09/23/many-surgical-interventions-are-littl...
1•sohkamyung•4m ago•0 comments

The computer hacker who tried to take down Man City

https://www.bbc.co.uk/sport/football/articles/cwywld5v28jo
1•birdmania•7m ago•1 comments

The use of humor in depression: An integration of benefits and risks

https://www.sciencedirect.com/science/article/pii/S0272735826000905?via%3Dihub
1•bookofjoe•8m ago•0 comments

JuhRadial MX: Linux control for MX devices and generic

https://github.com/JuhLabs/juhradial-mx
1•JuhLabs•9m ago•0 comments

Show HN: Docspira – JSON/YAML/regex tools that never leave the browser

https://docspira.com/
1•Mortivox•10m ago•0 comments

OpenAI says its AI agents posted user images online in error

https://techxplore.com/news/2026-09-openai-ai-agents-user-images.html
1•geox•10m ago•0 comments

New species of parasitic wasp discovered in Assam's Dibru-Saikhowa National Park

https://researchmatters.in/news/new-first-of-its-kind-species-of-parasitic-wasp-discovered-in-ass...
1•thunderbong•11m ago•0 comments

Harari vs. Henrich: What science says about human evolution

https://josephheath.substack.com/p/harari-vs-henrich
1•Ariarule•15m ago•0 comments

No errors, no warnings, no gods, no masters – HTML Purity is a Fetish

https://shkspr.mobi/blog/2026/09/no-errors-no-warnings-no-gods-no-masters-html-purity-is-a-fetish/
1•edent•17m ago•0 comments

That About Wraps It Up for Stock Mac UI

https://inessential.com/2026/09/22/that-about-wraps-it-up-for.html
1•JumpCrisscross•18m ago•0 comments

Show HN: Blue Lock Farm – a Roblox wiki, database and tools

https://bluelockfarm.com/
1•richardharmer•19m ago•0 comments

Chinese AI models surge in global popularity – and Washington is worried

https://www.cnbc.com/2026/09/26/china-ai-global-adoption.html
1•pseudolus•25m ago•0 comments

The Americans Having the Most Sex

https://www.theatlantic.com/ideas/2026/09/religion-sex-recession-marriage/688774/
1•metanoia_•27m ago•1 comments

Show HN: Asụsụ Ọma, a free app for learning Igbo with native-speaker audio

https://asusuoma.com
1•ebenezerdon•32m ago•0 comments

The Cost of Blue Light: Multiorgan Pathology Induced by LED Exposure

https://www.biorxiv.org/content/10.64898/2026.09.11.750850v1.full
1•bilsbie•34m ago•0 comments

OK, so where are all these data centres?

https://www.ft.com/content/4c3f75a2-c2f9-4ef7-9895-21daf5e92dfe
1•Betelbuddy•34m ago•1 comments

What and Whose Knowledge? Measuring Epistemic Diversity in Large Language Models

https://arxiv.org/abs/2510.04226
1•daniel_iversen•39m ago•0 comments

The Aura Premium

https://twitter.com/netcapgirl/status/2086496076505497757
2•tosh•41m ago•0 comments

Show HN: Ollaya Web UI

https://github.com/samarkandiy/ollaya-web-ui
5•anongoogleuser•41m ago•0 comments

Software Renderer in Odin from Scratch

https://marianpekar.com/blog/software-renderer-in-odin-from-scratch-part-i
2•AlexeyBrin•42m ago•0 comments

Zeta(5) has been proven irrational (also Lean-verified)

https://www.reddit.com/r/mathematics/comments/1woe4gx/a_lean_formalization_of_zeta5_being_irratio...
2•ogogmad•42m ago•1 comments

Claude Opus 5.5 Should Raise Your Ambitions

https://thezvi.substack.com/p/claude-opus-55-should-raise-your
6•7777777phil•44m ago•1 comments

Beyond Tokenmaxxing

https://isaca.nl/beyond-tokenmaxxing/
1•ezrabuenk•48m ago•1 comments

Screw Is Needed for Missiles and Planes. Buying One Can Take Years

https://www.nytimes.com/2026/09/26/business/ball-screws-military-production.html
2•cainxinth•49m ago•0 comments

A Slice of Europe in the Heart of Lucknow – Oranje Castle

1•oranjecastle•50m ago•0 comments

Tuning a Server for Benchmarking

https://david.alvarezrosa.com/posts/tuning-a-server-for-benchmarking/
4•dalvrosa•51m ago•2 comments

Is the AI Bubble About to Be Tested?

https://www.youtube.com/watch?v=T-oXyXwD6sE
2•Betelbuddy•53m ago•0 comments

Every Package Is Installed

https://fzakaria.com/2026/09/24/every-package-is-already-installed
2•birdculture•59m ago•0 comments

Restricting AI Agents When No Human Is Watching

https://a16y.ai/blog/securing-ai-agents-when-no-human-is-watching
2•doitmyaiway•1h ago•0 comments

Schoolchildren without smartphones penalised with higher bus fares

https://www.theguardian.com/money/2026/sep/26/schoolchildren-smartphones-higher-bus-fares-england
3•gradschool•1h ago•0 comments