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•6mo 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•6mo 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•6mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•6mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Roomba Maker iRobot Files for Bankruptcy and Will Go Private

https://www.bloomberg.com/news/articles/2025-12-15/robot-vacuum-roomba-maker-files-for-bankruptcy...
1•ksec•1m ago•0 comments

GitCrafts, AI powered documentation assistant that generates docs in 60 seconds

https://www.gitcrafts.pro/
1•deecodes•3m ago•1 comments

Zyn 0.3.0 – An extensible pub/sub messaging protocol for real-time apps

https://github.com/zyn-org/zyn/releases/tag/zyn-0.3.0
1•ortuman•7m ago•0 comments

HTML5 genetic algorithm 2D car thingy

https://rednuht.org/genetic_cars_2/
1•fanf2•8m ago•0 comments

How to Be Exceptional at Anything

https://abdulhamidhassan.com/post/802459222214410240/how-to-be-exceptional-at-anything
1•kiyanwang•9m ago•0 comments

Thread Map – Amp

https://ampcode.com/news/thread-map
1•mefengl•10m ago•0 comments

What Is PVD? Understanding Its Role in Vacuum Coating Technology

1•daugu•10m ago•0 comments

Unofficial CPython JIT performance dashboard

https://doesjitgobrrr.com/
1•lumpa•17m ago•0 comments

I deleted the database and rebuilt my portfolio tracker to be local-first

https://www.pocketportfolio.app/
1•pocketportfolio•17m ago•1 comments

FreeBSD 15.0-Release Release Notes

https://www.freebsd.org/releases/15.0R/relnotes/
2•ksec•19m ago•0 comments

Miki Eleta Clockmaker

https://www.thenakedwatchmaker.com/people-miki-eleta
1•ClaudeGustav2•26m ago•0 comments

How the 'Brussels Effect' Backfired

https://www.ft.com/content/abc3002e-a7be-48e2-8197-aeddf937afec
1•mohi-kalantari•29m ago•0 comments

The Depth Illusion

https://gm-dev.ch/surface-grafting
1•roko_•30m ago•0 comments

200k Tokens Is Plenty

https://ampcode.com/200k-tokens-is-plenty
2•handfuloflight•31m ago•0 comments

Chunked Transfer Encoding – when content length is not known

https://pinggy.io/blog/understanding_content_length_header_and_chunked_encoding/
1•ghoshbishakh•37m ago•0 comments

NotebookLM Tools – Tags, Backup/Restore Sources and Bulk Source Fixer

https://old.reddit.com/r/notebooklm/comments/1pn2yip/notebooklm_tools_tags_backuprestore_sources_...
1•trungpv1601•38m ago•0 comments

Grok Is Glitching and Spewing Misinformation About the Bondi Beach Shooting

https://gizmodo.com/grok-is-glitching-and-spewing-misinformation-about-the-bondi-beach-shooting-2...
3•tobr•43m ago•1 comments

Show HN: I built a simulator to teach PMs why they shouldn't interrupt migration

https://apmcommunication.com
1•pingananth•46m ago•0 comments

Show HN: Generate Passwords from Regex Constraints

https://gruhn.github.io/regex-utils/password-generator.html?constraints=%5E.%7B16%2C32%7D%24%0A%5...
2•ngruhn•48m ago•2 comments

2025 Open Models Year in Review

https://www.interconnects.ai/p/2025-open-models-year-in-review
1•Philpax•49m ago•0 comments

Show HN: StreamGate – A lock-free observability proxy in Go

https://github.com/sashu2310/streamgate
2•sandeepk235•52m ago•2 comments

Nth Country Experiment

https://en.wikipedia.org/wiki/Nth_Country_Experiment
1•hexhowells•52m ago•0 comments

Smooth Scrolling on the Sega Master System

https://bumbershootsoft.wordpress.com/2025/12/13/smooth-scrolling-on-the-sega-master-system/
2•rcarmo•55m ago•0 comments

Forget the far right. The kids want a 'United States of Europe.'

https://www.politico.eu/article/united-states-of-europe-online-propaganda-social-media-memes/
4•saubeidl•1h ago•4 comments

What's Wrong with Kubernetes Today

https://www.devzero.io/blog/whats-wrong-with-kubernetes-today
5•Liriel•1h ago•1 comments

Show HN: Find the Right Game Engine – Godot, Unity, Unreal, and More

https://gameenginehub.com
1•neotanp•1h ago•0 comments

The Graffiti Question

https://www.guernicamag.com/the-graffiti-question/
2•bryanrasmussen•1h ago•0 comments

Rust's v0 mangling scheme in a nutshell

https://purplesyringa.moe/blog/rusts-v0-mangling-scheme-in-a-nutshell/
1•todsacerdoti•1h ago•0 comments

Norton's dome – A paradox in Newtonian physics

https://en.wikipedia.org/wiki/Norton%27s_dome
1•ColinWright•1h ago•0 comments

Props for Web Components

https://old.reddit.com/r/javascript/comments/1pj4ros/props_for_web_components/
2•MzHN•1h ago•2 comments