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.

Books of the Times; Hackers as Heroes (1999)

https://archive.nytimes.com/www.nytimes.com/books/99/01/03/specials/levy-hackers.html
2•so-cal-schemer•10m ago•1 comments

Are CAPTCHAs Still Bot-Hard?

https://halligan.pages.dev/
2•vednig•10m ago•0 comments

pg_plan_filter 1.0.0 Released

https://www.postgresql.org/about/news/pg_plan_filter-100-released-3352/
1•ear7h•15m ago•0 comments

High Interest Rates Aren't Slowing AI Boom

https://www.nytimes.com/2026/10/05/business/ai-boom-interest-rates-fed.html
2•Ambolia•16m ago•0 comments

Show HN: GitHub Action to check AI-written code changes no files, without review

https://github.com/yuyuyuyuyu-dev/assert-no-unexpected-changes
1•yuyuyuyuyu-dev•17m ago•0 comments

Twenty-two pending curl vulnerabilities

https://daniel.haxx.se/blog/2026/10/07/twenty-two-pending-curl-vulnerabilities/
3•mfrw•21m ago•1 comments

HN has lost the joy for me

3•trencedamp•26m ago•0 comments

Show HN: Neptune, a free and open-source terminal built in Rust

https://github.com/zevem/neptune
1•gabo2006•27m ago•1 comments

Longest traffic jam (number of vehicles): Berlin 1990

https://www.guinnessworldrecords.com/world-records/461618-longest-traffic-jam-number-of-vehicles
3•rguiscard•28m ago•0 comments

Stack Overflow Developer Survey – Number of HN Comments by Year (Last 8 Years)

https://i.imgur.com/wN2XVEE.png
1•nomilk•38m ago•0 comments

The Fever Has Broken – Why "Chinamaxxing" Matters

https://www.sinicapodcast.com/p/the-fever-broken-for-now
1•verdverm•39m ago•0 comments

Licensing costs driving 90 percent of VMware users to explore options: Survey

https://arstechnica.com/information-technology/2026/10/operational-complexity-a-top-barrier-for-v...
2•joozio•43m ago•0 comments

Vanishing Crossword

https://wordmaze.dev/
2•sidPhoenix17•45m ago•0 comments

Software developers are not okay

https://www.baldurbjarnason.com/2026/05-software-developers-are-not-okay/
2•equalsione•47m ago•0 comments

What's missing from the lethal injection conversation

https://www.npr.org/2026/10/07/nx-s1-5991797/christa-pike-execution-injection-alive-dead
2•theanonymousone•51m ago•0 comments

I'm starting a company that uses no AI, A letter from San Francisco, October '26

https://no-ai-tau.vercel.app/
2•normanvalentine•55m ago•0 comments

CVE-2026-63277 – LibreOffice Remote Code Execution

https://github.com/advisories/GHSA-5JX8-5G92-5W59
1•mritzmann•56m ago•0 comments

DBX: Database Manager

https://dbxio.com/en
1•thunderbong•57m ago•0 comments

LGTM: A parody of modern AI adoption in the tech industry [video]

https://www.youtube.com/watch?v=3TNpOD6bov8
3•alexeyza•59m ago•0 comments

The one ring problem: abstraction and our quest for power (2018)

https://www.tedinski.com/2018/01/30/the-one-ring-problem-abstraction-and-power.html
2•signa11•1h ago•0 comments

Python none coalescing? and?= pep 824

https://peps.python.org/pep-0824/
3•gigatexal•1h ago•0 comments

Show HN: Chorus – Ask multiple AIs at once on Mac

https://github.com/askchorus/chorus
2•smileduck•1h ago•0 comments

Jaguar targets young Americans with Type 01 EV – it's too long for UK parking

https://www.theguardian.com/business/2026/oct/07/jaguar-launch-type-01-electric-vehicle
3•porterde•1h ago•0 comments

Tescreal hallucinations: Psychedelic and AI hype as inequality engines

https://akjournals.com/view/journals/2054/7/S1/article-p22.xml
2•gushogg-blake•1h ago•0 comments

Reframe an AI Short Film [video]

https://www.youtube.com/watch?v=9MlK5VTMD88
2•daverol•1h ago•0 comments

Show HN: Truth Firewall – Don't trust your coding agent when it says DONE

https://github.com/aldi949/truth-firewall
2•Aldi949•1h ago•0 comments

Show HN: Sayrud – Yet Another Collaborative Spreadsheet

https://github.com/sayrud/sayrud
2•E99p1ant•1h ago•0 comments

A cyberpunk HUD overlay for Discord in pure Vanilla JavaScript

https://github.com/Doomeec/discord-quest-hud
2•doomeec•1h ago•0 comments

Show HN: Slopguesser – can you tell if code was written by AI or a human?

https://slopguesser.dev
2•marcascode•1h ago•0 comments

OMG's Meta-Object Facility

https://www.omg.org/mof/
3•andsoitis•1h ago•0 comments