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.

The fast it goes the slow it feels

1•lifecodes•1m ago•0 comments

Bobby Prince, composer of classic id Software and 3DRealms game music, has died

https://www.shacknews.com/article/149718/bobby-prince-composer-of-classic-id-software-and-3drealm...
1•OberstKrueger•2m ago•0 comments

AWS Blocks, an open-source framework for composing application back ends on AWS

https://aws.amazon.com/about-aws/whats-new/2026/06/aws-blocks-preview/
1•root-parent•2m ago•0 comments

Does your mom use AI?

https://handyai.substack.com/p/does-your-mom-use-ai
1•surprisetalk•3m ago•0 comments

Chaser – Stripe failed-payment recovery that reports the losses too

https://chaser.cash/
1•Mindworks073•4m ago•0 comments

1250-HP Chevy Corvette ZR1X Is Now the Quickest Car We've Ever Tested

https://www.caranddriver.com/news/a71628040/2026-chevy-corvette-zr1x-quickest-60-mph-time-test/
1•RickJWagner•5m ago•1 comments

What I Learned in Law School

https://mnot.net/blog/2023/law-school
1•inigyou•8m ago•0 comments

How does a gas pump know to shut itself off? (1981)

https://www.straightdope.com/21341412/how-does-a-gas-pump-know-to-shut-itself-off
1•downbad_•9m ago•0 comments

Toy Story 5 Is a Surprisingly Thoughtful Critique of Technology

https://www.engadget.com/2197271/toy-story-5-is-a-surprisingly-thoughtful-critique-of-technology/
1•ilreb•9m ago•0 comments

The association between melatonin and suicide (2022)

https://www.cambridge.org/core/journals/european-psychiatry/article/association-between-melatonin...
1•tokai•10m ago•0 comments

T1 Phone PR firm is 'not assisting Trump Mobile any further'

https://www.theverge.com/gadgets/952274/t1-phone-pr-firm-not-assisting-trump-mobile-any-further
2•ilreb•10m ago•0 comments

A Knotty Situation

https://codegolf.stackexchange.com/questions/170567/a-knotty-situation
1•tosh•10m ago•0 comments

Critical BootROM Vulnerability Exposes Apple Devices to Unpatchable Exploits

https://blog.rankiteo.com/app1781807037-apple-vulnerability-june-2026/
1•NooneAtAll3•13m ago•1 comments

Show HN: Map the World Cup – Countries and club teams

https://maptheworldcup.com/
1•1retep•13m ago•0 comments

Towards autonomous medical artificial intelligence agents

https://www.nature.com/articles/s41586-026-10675-5
1•bookofjoe•13m ago•0 comments

Productivity Paradox: The Hidden Cost of Cognitive Debt

https://www.realclearmarkets.com/articles/2026/06/19/productivity_paradox_the_hidden_cost_of_cogn...
1•RickJWagner•13m ago•0 comments

Linux Maintainer Greg Kroah-Hartman Says AI Tools Now Useful, Finding Real Bugs

https://www.theregister.com/software/2026/03/26/linux-kernel-czar-says-ai-bug-reports-arent-slop-...
3•root-parent•16m ago•1 comments

Food for Agile Thought 549: Makers Manifesto, Open Knowledge Format

https://age-of-product.com/food-agile-thought-549-ai-product-2026/
1•swolpers•16m ago•0 comments

Nikolai Evreinov, the 19th century Nathan Fielder

https://mssv.net/2026/06/16/meet-nikolai-evreinov-the-19th-century-nathan-fielder/
1•surprisetalk•18m ago•0 comments

Software Foundations being translated to Lean

https://leanprover.zulipchat.com/#narrow/channel/579630-Project-announcements/topic/Software.20Fo...
1•navidhg•18m ago•1 comments

Before Bill Nye, There Was Julius Sumner Miller

https://www.openculture.com/2026/06/before-bill-nye-there-was-julius-sumner-miller-watch-complete...
1•AdmiralAsshat•19m ago•0 comments

Show HN: Brain Frog – Can you be random enough for 11 lines of JavaScript?

https://brainfrog.lol
3•AlexanderZ•20m ago•2 comments

McDonald's is serving Fried Apple pie again for America's 250th birthday

https://apnews.com/article/mcdonalds-fried-apple-pie-america-250-962c7e82d7d5089bf63b2e7258f1c864
2•tocs3•21m ago•0 comments

Android lock-screen "snooze" proposal to mitigate public password exposure

https://issuetracker.google.com/issues/522872456
1•raxrbx•21m ago•1 comments

Italy's antitrust regulator probes Apple cloud services re: Digital Market rules

https://www.reuters.com/legal/litigation/italys-antitrust-regulator-probes-apple-over-cloud-servi...
3•1vuio0pswjnm7•22m ago•0 comments

Causal graph memory for LLMs. Flat token cost, no matter how the session runs

https://github.com/raphaelwkago-sketch/rudi
1•w4mwati•24m ago•0 comments

Ask HN: Looking for SaaS GTM co-founder

1•roundos_maker•26m ago•0 comments

The Java Virtual Thread Pinning Trap (Performance Regression)

https://medium.com/@yalovoy/the-java-virtual-thread-pinning-trap-that-turns-your-loom-migration-i...
1•zero-ground-445•28m ago•2 comments

UK's top data and AI regulator quits after 'inappropriate' humour

https://www.bbc.com/news/articles/c0eyq7rnn22o
1•ilreb•29m ago•0 comments

Hour of the Wolf

https://www.science.org/content/article/wolves-are-reconquering-europe-can-people-learn-live-them
1•jruohonen•31m ago•0 comments