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.

Old games feel "hard" because modern emulators have layers of abstraction

https://twitter.com/lauriewired/status/2065553747078709500
1•tosh•34s ago•0 comments

For NBA fans: If you loved 82-0 you'll love this

https://nbabrawl.netlify.app
1•Mwalwala•4m ago•0 comments

Israeli firm BlackCore suspected of meddling in New York and Scotland votes

https://www.reuters.com/world/israeli-firm-blackcore-also-suspected-meddling-nyc-scotland-votes-f...
3•pera•5m ago•0 comments

Anthropic disables top-tier AI models outside US

https://www.reuters.com/technology/us-blocks-foreign-access-anthropics-most-advanced-ai-models-ax...
4•apples_oranges•17m ago•0 comments

Ask HN: What Are You Working On?

2•eisleggje•19m ago•0 comments

Drinkner – Matches your bar to the 102 IBA cocktails, AI only on miss

https://www.drinkner.com/
2•alexsa•19m ago•0 comments

IP Crawl: A living atlas of open webcams discovered on the public internet

https://ipcrawl.com/?sort=favorites
2•jumploops•20m ago•0 comments

Self-Discovery Through Archaeology

https://kesjr.com
2•promptfluid•27m ago•0 comments

Agent just scaffolded a project from 2020

https://developer.microsoft.com/blog/your-agent-just-scaffolded-a-project-from-2020
2•waldekm•29m ago•0 comments

Loop Engineering: Designing loops that prompt coding agents

https://addyosmani.com/blog/loop-engineering/
4•vantareed•30m ago•0 comments

Thames Ironworks

https://diamondgeezer.blogspot.com/2026/06/thames-ironworks.html
2•zeristor•39m ago•0 comments

Are Mythos and Fable pure marketing?

2•2muchtime•42m ago•1 comments

Google Earth Flight Simulator

https://earth.google.com/web/
2•sourcecodeplz•42m ago•0 comments

Ludwig II of Bavaria: The Tragic Tale of the Swan King

https://www.historicmysteries.com/history/ludwig-ii-swan-king/25735/
2•joebig•43m ago•0 comments

Show HN: Browse the web, from the console, using a Textual Agent Interface

https://webcli.sh
2•keepamovin•44m ago•0 comments

Interoception: The hidden sense of how you feel inside

https://www.technologyreview.com/2026/06/12/1138833/inside-interoception-brain-body/
5•joozio•46m ago•0 comments

JRE 2513 – Dean Radin

https://www.youtube.com/watch?v=4Uk0_1yqdJo
1•keepamovin•47m ago•0 comments

I just found the Mac app grand percpective but for free

https://github.com/Prithvi-Web/Treemap
1•DaGoat487•54m ago•1 comments

From a Slack link to production in under 48 hours: cloning Shopify's "Quick"

https://courtyard.io/blog/post/from-a-slack-link-to-production-in-under-48-hours-cloning-shopifys...
1•joetyson•57m ago•0 comments

Jetterix Pressure Nozzle Review 2026 – Worth Buying or Just Hype?

https://finance.yahoo.com/sectors/technology/articles/jetterix-pressure-nozzle-urgent-report-1739...
1•palszaty•59m ago•0 comments

Sandboxing is 47 years old. What changed is who's in the box.

https://cyrusradfar.com/thoughts/sandboxing-from-vms-to-agents
2•cyrusradfar•1h ago•0 comments

A new pkg.go.dev API for Go

https://opensource.googleblog.com/2026/06/a-new-pkggodev-api-for-go.html
1•rcy•1h ago•0 comments

Novo Nordisk reports cyberattack as UK gives Wegovy pill the nod

https://www.theregister.com/security/2026/06/12/novo-nordisk-says-hackers-stole-clinical-trial-da...
3•jruohonen•1h ago•1 comments

Show HN: Skill for your agent to visualize your gbrain and Obsidian

https://github.com/vladignatyev/brain-map-skill
1•v_ignatyev•1h ago•0 comments

Weaker bonds make for more impact-resistant polymers

https://newatlas.com/materials/weaker-bonds-impact-resistant-polymers/
1•breve•1h ago•0 comments

Yoti does not report GrapheneOS users to the authorities

https://www.yoti.com/blog/yoti-does-not-report-grapheneos-users-to-the-authorities/
3•Cider9986•1h ago•1 comments

Musk's War on European Democracy

https://ecfr.eu/article/musks-war-on-european-democracy-how-to-open-up-x-and-fight-back/
5•jruohonen•1h ago•0 comments

Estimating No-Cot Task-Completion Time Horizons of Frontier AI Models

https://www.lesswrong.com/posts/SieLowPgNgRSPGhFw/estimating-no-cot-task-completion-time-horizons...
1•kqr•1h ago•0 comments

Norway to deploy largest fleet of 'flying' electric ferries

https://candela.com/newsroom/norway-to-deploy-worlds-largest-fleet-of-flying-electric-ferries/
1•robin_reala•1h ago•0 comments

Looksy – we research and contact vendors so you don't have to

https://looksy.fyi/blogs/blog/hidden-cost-of-doing-your-own-research
2•sean_looksy•1h ago•0 comments