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.

Live: Total Solar Eclipse – August 12, 2026 [Live Stream] [video]

https://www.youtube.com/watch?v=DtjbfQtqlsY
1•andai•13s ago•0 comments

Wisconsin Primary Election Results

https://www.nytimes.com/interactive/2026/08/11/us/elections/results-wisconsin-primary.html
1•whack•18s ago•0 comments

In case you think there is consciousness, intelligence or personality in an LLM [video]

https://www.youtube.com/watch?v=vXV2ltVdLMQ
1•spottedmarley•27s ago•1 comments

New York State Newspapers on Microfilm

https://nysl.nysed.gov/nysnp/title4
1•gregsadetsky•2m ago•0 comments

Kalshi and Polymarket bets on clinical trials criticized as 'ghastly'

https://www.npr.org/2026/08/07/nx-s1-5922530/patients-betting-kalshi-polymarket-clinical-trials
1•bryanrasmussen•2m ago•0 comments

Beijing is forcing a mass breakup with AI lovers

https://restofworld.org/2026/china-ai-boyfriend-ban-bytedance-doubao/
1•impish9208•4m ago•0 comments

Using math for solving real-life problems

https://app.notion.com/p/Number-Pi-Podcast-E09-3b46c4fc04cb8077aad7fb4d4b1eb6cc
1•armanj•4m ago•0 comments

Who is Anthropic's auditor – and why should we care?

https://www.ft.com/content/b93d8030-203b-4445-b4a7-49e52d9b17a5
1•petethomas•4m ago•0 comments

Harbofly, reclaim the 20–100GB of dev caches on your Mac

https://harbofly.app
1•buildcomcarlos•4m ago•0 comments

Ada 83/TLALOC: a modern Ada 83 compiler with DIANA 86 HLIR and fasmg back end

1•ViMoBr•5m ago•0 comments

Multi-tenant BYOK encryption in PostgreSQL with pgcrypto

https://xata.io/blog/multi-tenant-byok-encryption-in-postgresql-with-pgcrypto
1•tudorg•5m ago•0 comments

Data Center Foes' Newest Tack: Sue Locals over Approval Process

https://news.bloomberglaw.com/litigation/data-center-foes-newest-tack-sue-locals-over-approval-pr...
1•speckx•5m ago•0 comments

Oracle has drawn up plans for a new round of layoffs this month

https://www.businessinsider.com/oracle-is-planning-another-round-of-job-cuts-this-month-2026-8
2•DGAP•7m ago•0 comments

Optimizing SQLite for Servers

https://kerkour.com/sqlite-for-servers
1•cold_pizz4•8m ago•0 comments

Glaciers on the Climate Dashboard

https://climate.metoffice.cloud/glaciers.html
2•mooreds•8m ago•0 comments

DeepSeek V4 Pro 0813 quietly released

https://api-docs.deepseek.com/guides/responses_api/
3•HiPHInch•9m ago•1 comments

Prompt Injection Experiments with Opus-5 in Claude Code – Auto-Mode Edition

https://itmeetsot.eu/posts/2026-08-12-opus5_automode/
1•veganmosfet•10m ago•0 comments

[STORY] A Realistic Scenario

https://twitter.com/AISafetyMemes/status/2087549262427263014
1•barry-cotter•11m ago•0 comments

Multiple US sailors have tried to go overboard amid extended deployment

https://www.militarytimes.com/news/your-military/2026/08/11/multiple-uss-abraham-lincoln-sailors-...
1•Geekette•11m ago•0 comments

Buildings Calculate Forces. Software Must Calculate Meaning

https://ideal.iroha1203.dev/buildings-calculate-forces-software-must-calculate-meaning-5c9b2149744b
1•iroha1203•11m ago•0 comments

Meta, 29 states head to court; biggest test yet of youth social media litigation

https://www.reuters.com/business/meta-29-states-head-court-biggest-test-yet-youth-social-media-li...
1•1vuio0pswjnm7•11m ago•0 comments

That Test Isn't Flaky. It's Broken

https://will-keleher.com/posts/its-broken-not-flaky/
1•speckx•11m ago•0 comments

95% of the Fortune 1000 trust us with their information and assets

https://www.ironmountain.com/
1•amai•13m ago•1 comments

Shaping AI

https://www.shapingai.com/
1•sonabinu•14m ago•0 comments

MediaTek Genio upstream update: from HDMI 2.0 to booting on U-Boot and TF-A

https://www.collabora.com/news-and-blog/news-and-events/mediatek-genio-upstream-update-from-hdmi-...
1•losgehts•14m ago•0 comments

Ask HN: Responsible/trustable background check companies?

3•levinb•15m ago•0 comments

Trump's flight switch indicates severity of assassination threat by Iran

https://www.theguardian.com/us-news/2026/aug/12/trump-catering-cart-iran-threat
1•prmph•16m ago•1 comments

Less Chaos. More Life

https://spuntafacile.netlify.app/
1•ridiculouswildc•17m ago•0 comments

Show HN: Tanchi – Open-source AI prospecting agent that only automates email

https://github.com/tanchihq/tanchi
1•saysb•18m ago•0 comments

92 percent of US adults are not going to the doctor – too expensive

https://www.independent.co.uk/us/money/us-medical-costs-doctors-health-insurance-b3026479.html
4•testing22321•19m ago•1 comments