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.

Amazon, eBay AI Toy Sales Must Stop, Says Global Coalition Of

https://fairplayforkids.org/amazon-ebay-ai-toy-sales-must-stop-says-global-coalition-of-over-150-...
1•g-b-r•36s ago•1 comments

RealPCB: A benchmark for AI agents laying out real production circuit boards

https://www.esunalabs.com/realpcb/
1•lebek•2m ago•0 comments

Model names are confusing and provide no affordances

https://kadhirvelm.dev/blogs/difference-between-coding-models
1•kadhirvelm•2m ago•1 comments

Fast Free Online Tools for Coading and Web Development

https://devutilitykits.com
1•dev99x•4m ago•0 comments

Replace Lucene and reduce OpenSearch/Elastic costs by 10x

https://github.com/infino-ai/opensearch-infino
1•ekechinwokah•4m ago•0 comments

Jensen Huang tells staff that Nvidia doesn't need a succession plan

https://www.cnbc.com/2026/11/24/jensen-huang-nvidia-employee-meeting.html
2•Betelbuddy•6m ago•0 comments

Mcpdiff.dev: Devtools for MCP

https://www.gnanaguru.com/blog/introducing-mcpdiff/
1•gnanaguru16•6m ago•1 comments

FastPath Agentic Recipe: 50% more agents at equal P90 interactivity on SGLang

https://fastpathlabs.ai/blog/fastpath-agentic-recipe
1•asghar07•8m ago•0 comments

A teenage runaway turned to a Mountie for sanctuary. He had other plans

https://www.cbc.ca/lite/story/9.7349352
1•colinprince•9m ago•0 comments

Confluence of risks compounds financial system's vulnerability

https://www.dnb.nl/en/general-news/press-release-2026/confluence-of-risks-compounds-financial-sys...
1•HelloUsername•9m ago•0 comments

TxVerify: Core/Assumption Split to Formally Verify GPU Kernels at the PTX Level

https://blog.mlc.ai/2026/11/24/what-must-we-trust-verifying-production-gpu-kernels-with-a-core-as...
2•matt_d•10m ago•0 comments

Why running both a commercial VPN and Tailscale breaks on travel WiFi

https://arxcloud.io/vs/tailscale-nordvpn/
1•justmedric•11m ago•0 comments

Apple Watch Live Rewind and Siri Recap: A Summary Is Only the Beginning

https://memova.ai/journal/apple-watch-live-rewind-siri-recap/
1•OnionLayers•12m ago•0 comments

Map of All White Lotus Locations [S1-4]

https://wherecelebsgo.com/maps/white-lotus-filming-locations
1•ispotcelebs•12m ago•0 comments

Dez v0.60 adds sandboxed agentic coding to your text editor

https://github.com/taoeffect/dez/releases/tag/v0.60.0
1•gslepak•13m ago•0 comments

Security incident affecting Todoist accounts

https://www.todoist.com/help/todoist/get-started/security-incident-in-november-2026
3•marconey•14m ago•1 comments

Polyarc Draw

https://tekstien-marginaalien-keskus.aalto.fi/residenssi/heikki/blog/011-july/
1•california-og•15m ago•0 comments

I'll spend 30 minutes pretending your 10-year career doesn't exist

https://blog.nullpointerreflection.com/articles/you-spent-10-years-building-a-career
2•justmak•16m ago•0 comments

Ternary Bonsai 2.5 27B

https://prismml.com/news/bonsai-2-5-27b
4•b0m•17m ago•0 comments

Durable and Auditable Workflows with DBOS and ClickHouse Managed Postgres

https://clickhouse.com/blog/dbos-clickhouse-managed-postgres-durable-workflows
1•__s•19m ago•0 comments

Todoist Security incident in November 2026

https://www.todoist.com/help/todoist/get-started/security-incident-in-november-2026-cG0EIACNU
4•ChrisHardie•20m ago•0 comments

User Interface as Video

https://arjmandi.github.io/videotape/
2•freddie_spirit•21m ago•0 comments

What's New in Aspire 17.0

https://aspire.dev/whats-new/aspire-17/
2•ricw•21m ago•0 comments

New York Times Prohibits Photographers from Using Photoshop 2027

https://petapixel.com/2026/11/24/new-york-times-prohibits-photographers-from-using-photoshop-2027/
8•madmanweb•22m ago•1 comments

The Case for Browser Engine Diversity

https://www.amitmerchant.com/the-case-for-browser-engine-diversity/
1•speckx•22m ago•0 comments

Smart watches, AI glasses outlawed in Manitoba schools

https://www.cbc.ca/news/canada/manitoba/wearable-technology-ban-schools-manitoba-9.7433957
1•geox•22m ago•0 comments

Diablo II

https://www.filfre.net/2026/11/diablo-ii/
1•ibobev•24m ago•0 comments

Things change: Cheaters are Innovators

https://lemire.me/blog/2009/09/14/how-things-change-cheaters-are-innovators/
1•ibobev•25m ago•0 comments

Trump administration Issues Evacuation Zone for Iowa Lead Blast

https://www.washingtonsun.com/energy-environment/trump-army-evacuation-zone-lead-azide-detonation...
3•unitedfirmware•26m ago•1 comments

Discord Rewrites Desktop and Mobile Clients in Rust Using Zed Framework

https://www.infoq.com/news/2026/11/discord-rust-rewrite-gpui-zed/
1•ivell•26m ago•0 comments