frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Our Warming Planet Is a Petri Dish for New and Deadly Microbes

https://www.newyorker.com/magazine/2026/06/01/our-warming-planet-is-a-petri-dish-for-new-and-dead...
1•littlexsparkee•1m ago•0 comments

Chipotle rival Guzman y Gomez Mexican Kitchen closes all US restaurants

https://www.foxbusiness.com/economy/chipotle-rival-guzman-y-gomez-mexican-kitchen-closes-all-us-r...
1•mikhael•3m ago•0 comments

The Etymology of Trivia: A Place Where Three Roads Meet

https://uselessetymology.com/2026/04/30/965/
1•jawns•8m ago•0 comments

She Can Mentally Time Travel. Why Did Everyone Think She Was Lying?

https://www.popularmechanics.com/science/a70866475/teenager-hyperthymesia-memory-condition/
1•jawns•9m ago•0 comments

The Manufactured Normalcy Field

https://www.urbanhonking.com/index.html
1•nvader•15m ago•0 comments

An Open Call to Flipper Devices: Problems with Flipper and How They Can Improve

https://spicemesh.de/posts/open-call-to-flipper/
5•muxdervish•17m ago•2 comments

Dusklight is a reverse-engineered reimplementation of Twilight Princess

https://github.com/TwilitRealm/dusklight
1•Plasmoid•22m ago•0 comments

TP-7 Field Recorder

https://teenage.engineering/products/tp-7
2•nirkalimi•23m ago•1 comments

Clippy Config Should Be Stricter

https://emschwartz.me/your-clippy-config-should-be-stricter/
1•birdculture•28m ago•0 comments

Tokenization Is the Bottleneck You're Not Measuring

https://ranvier.systems/2026/05/25/tokenization-is-the-bottleneck-youre-not-measuring.html
1•mindsaspire•30m ago•0 comments

ContextVault – Local-First AI Conversation Recorder for ChatGPT, Claude, Gemini

https://context-vault-two.vercel.app/
1•aliabdm•34m ago•0 comments

I built a new app and I don't know how I feel about it

https://philna.sh/blog/2026/05/25/i-built-a-new-app-and-i-dont-know-how-i-feel-about-it/
1•philnash•35m ago•0 comments

What is 'pink-slime' journalism and has it infiltrated Australian media?

https://www.abc.net.au/news/2026-05-22/pink-slime-journalism-regional-australia-ai/106639600
2•MarxOk•41m ago•0 comments

The UX Cost of Swipe Culture

1•BrittanyHale•41m ago•0 comments

Radvd 2.21 – Linux IPv6 Router Advertisement Daemon

https://radvd.litech.org/
1•neustradamus•42m ago•0 comments

AlphaProof Nexus is out, but Hassabis said solving Erdős isn't real invention

https://www.youtube.com/watch?v=bgBfobN2A7A
1•muditsrivastava•42m ago•0 comments

Creating a More Human Online Dating Experience

https://nataliyajr.blogspot.com/
2•NicoleCarterhj•43m ago•0 comments

Presentation and promulgation of the Encyclical Letter "Magnifica humanitas"

https://www.vatican.va/content/leo-xiv/en/events/event.dir.html/content/vaticanevents/en/2026/5/2...
1•KnuthIsGod•44m ago•2 comments

Sweden now considered a smoke free country

https://www.sverigesradio.se/artikel/sweden-now-considered-a-smoke-free-country
2•aleda145•45m ago•0 comments

Wyoming Company Uses High-Tech AI Sprinklers to Save Homes from Wildfire

https://cowboystatedaily.com/2026/05/25/wyoming-company-uses-high-tech-ai-sprinklers-to-save-home...
1•Bender•45m ago•2 comments

Ask HN: How do you get Internships with no work experience but cool projects?

1•dragonsenseiguy•47m ago•0 comments

Stack Overflow Sold to Tech Giant Prosus for $1.8B (2021)

https://www.wsj.com/business/deals/software-developer-community-stack-overflow-sold-to-tech-giant...
6•poly2it•49m ago•2 comments

Leadwerks Game Engine 5.1 Beta Releases with Support for "Potato PCs"

https://www.leadwerks.com/community/blogs/entry/2896-leadwerks-51-beta-is-now-available-with-supp...
3•Josh_Klint•1h ago•0 comments

Promising One and done heart disease genetic therapy

https://www.nytimes.com/2026/05/25/health/cholesterol-ldl-gene-therapy.html
2•anjel•1h ago•0 comments

CVE-2026-28952: Apple macOS 26.5 Kernel Vuln found by Claude

https://support.apple.com/en-us/127115
41•dragonsenseiguy•1h ago•6 comments

Google is its own worst enemy

https://disconnect.blog/google-is-its-own-worst-enemy/
9•cdrnsf•1h ago•1 comments

The Vatican-Anthropic relationship that's reshaping the AI ethics debate

https://religionnews.com/2026/05/22/why-anthropic-is-helping-unveil-the-popes-new-encyclical-on-ai/
4•cdrnsf•1h ago•0 comments

Performance of Rust Language [pdf]

https://github.com/yugr/rust-slides/
2•tanelpoder•1h ago•0 comments

Vim Classic

https://vim-classic.org/
3•GalaxyNova•1h ago•0 comments

SkiFreedle, a daily game version of SkiFree (1991)

https://skifreedle.com/
2•gfysfm•1h ago•1 comments