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.

Full-stack verification is the new trend

https://wiki.alcidesfonseca.com/blog/full-stack-verification-is-the-new-trend/
1•alcidesfonseca•1m ago•0 comments

Author Susanna Clarke: in defence of fantasy fiction

https://observer.co.uk/culture/books/article/susanna-clarke-in-defence-of-fantasy-fiction
1•surprisetalk•4m ago•0 comments

Show HN: Ergon – build AI agents in code or on a canvas that generates Python

https://github.com/shipitamit/ergon
1•mavster26•5m ago•0 comments

WebsiteBench: Can AI Agents Rebuild Websites Through Browser Exploration?

https://github.com/TIGER-AI-Lab/WebsiteBench
2•nickElean•5m ago•0 comments

Sshole

https://sshhole.com
2•josemrb•5m ago•0 comments

Samsung's reply on its TVs spying their owners

https://twitter.com/log4j/status/2118148665026252930
1•miohtama•9m ago•0 comments

Maho 26.11: open-source ecommerce with AI assistant, page builder, S3 storage

https://mahocommerce.com/blog/2026/11/01/maho-26110-is-out-today/
1•fballiano•11m ago•0 comments

OpenAI kicks off charm offensive to change voters' view of data centers

https://www.reuters.com/business/openai-kicks-off-charm-offensive-change-voters-view-data-centers...
2•layer8•15m ago•0 comments

Investigating Vault Particles with Claude

https://www.anthropic.com/research/investigating-vault-particles-with-claude
2•namanbnsl•16m ago•0 comments

Marvell to buy Lumentum in $115B all-stock deal

https://www.tomshardware.com/tech-industry/semiconductors/marvell-to-buy-lumentum-in-usd115-billi...
1•pseudolus•16m ago•0 comments

We measured the impact of AI on 46 OSS repos (200k commits, 16M lines)

https://kerno.io/the-impact-of-ai-on-code-quality-2026/
2•karimtr•22m ago•0 comments

Less thought. More shipped (An overbuilt satire of the shipping economy)

https://shipslop.dev/
1•robtherobber•23m ago•0 comments

Software Is Completely Solved

https://twitter.com/MatthewBerman/status/2117706367167557960
2•mrtksn•23m ago•2 comments

Living with 230 data centers on the doorstep

https://english.elpais.com/economy-and-business/2026-10-19/living-with-230-data-centers-on-the-do...
2•Betelbuddy•24m ago•0 comments

How Many People Work from Home?

https://nicholasdecker.substack.com/p/how-many-people-work-from-home
1•surprisetalk•24m ago•0 comments

Show HN: OOO - Build your own YouTube recommendation feed

https://ooo.blue
1•hjun1052•26m ago•0 comments

Show HN: Hyperbutler – Docker on Windows 11 Without WSL or Docker Desktop

https://github.com/Higangssh/hyperbutler
2•swq115•27m ago•0 comments

Show HN: Vivonco – match patient's cancer reports to targeted drugs and trials

https://vivonco.com/
1•rohanmanchanda•28m ago•0 comments

All 5 genetic letters of DNA and RNA discovered in 4.5B-year-old asteroid

https://www.sciencedaily.com/releases/2026/11/261102075903.htm
2•MrBuddyCasino•30m ago•0 comments

LLM pricing agents can converge to different price regimes

https://arxiv.org/abs/2610.21711
1•philiphierhager•30m ago•0 comments

Nordic Semiconductor Announces Sub-GHz MCU

https://www.nordicsemi.com/Nordic-news/2026/11/Nordic-brings-ultralow-power-edgeAI-to-SubGHz-for-...
1•hasheddan•32m ago•0 comments

Show HN: A 69-byte on-chain PNG that turns OLED pixels off (0 nits)

https://black-pixel-1x1.vercel.app/dossier.html
1•KINGOFTHESCREEN•32m ago•0 comments

Postgres 19 Repack: Built-In Table Bloat Cleanup

https://www.snowflake.com/en/blog/engineering/postgres-19-repack-table-bloat/
1•plaur782•34m ago•0 comments

Paradigms of Software Development for Founder Engineers

https://jacobstrauss.bearblog.dev/paradigms-of-software-development-for-founder-engineers/
1•jda5•35m ago•0 comments

Show HN: I made an iPhone app to find and delete duplicate photos

https://apps.apple.com/us/app/x-cleanup-storage-cleaner/id6796765379
1•bashirmo•35m ago•0 comments

A tiny Ohio town has a strategy to force data centers to keep their promises

https://www.vox.com/future-perfect/509247/ohio-data-centers-ai-election-perry-tax-breaks
2•PamalHorse•36m ago•0 comments

'Doctor Peyo': the horse comforting cancer patients in Calais – in pictures

https://www.theguardian.com/society/gallery/2021/mar/12/doctor-peyo-the-horse-comforting-cancer-p...
2•danielovichdk•38m ago•0 comments

Protection Ring (security levels on CPUs)

https://en.wikipedia.org/wiki/Protection_ring
1•wolfi1•41m ago•0 comments

Free CRM health check – see how much pipeline money is stale

https://crmhuolto.fi
1•Expanium•42m ago•0 comments

JavaScript obfuscation against "AI" code analysis

https://mastodon.social/@bencurthoys/117563232404985385
1•ColinWright•44m ago•0 comments