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

A Simple Ld_preload Tutorial

https://catonmat.net/simple-ld-preload-tutorial
1•gurjeet•1m ago•0 comments

Why the Future of AI Depends on Smaller Models

https://jeevan.life/posts/why-the-future-of-ai-depends-on-smaller-models.html
1•lroe•2m ago•0 comments

The agent principal-agent problem

https://crawshaw.io/blog/agent-principal-agent
1•bumbledraven•4m ago•0 comments

Show HN: Sfera – sliding puzzle in curved space (open-sourced)

https://github.com/bntre/Sfera
1•bntr•4m ago•0 comments

SubQ: Sub-quadratic LLM built for 12M-token reasoning

https://subq.ai/
1•anujbans•7m ago•0 comments

Camera

https://online-camera.com
2•ent101•11m ago•0 comments

KDE Plasma 6.7 to Provide a Better Experience for CPU-Based Rendering

https://www.phoronix.com/news/KDE-Plasma-Faster-WL-SHM
2•doener•13m ago•0 comments

Live Global Hantavirus Outbreak Tracker

https://hantavirusmap.com
1•N19PEDL2•14m ago•0 comments

Interviewing/Applying to YC

1•chanlee514•18m ago•0 comments

I tried the viral 'jaw release' fascial massage

https://www.thetimes.com/life-style/health-fitness/article/jaw-release-facial-massage-v7rmgqsb9
2•petethomas•18m ago•0 comments

Ask HN: Who Uses a todo.txt?

2•mikenikles•19m ago•0 comments

Why does AI like goblins and Japan so much?

https://english.elpais.com/technology/2026-05-07/why-does-ai-like-goblins-and-japan-so-much.html
2•geox•19m ago•0 comments

Dirty Frag: Universal Linux LPE

https://github.com/V4bel/dirtyfrag
1•danaris•23m ago•0 comments

Root-based Android app backup tool powered by Restic

https://github.com/hddq/restoid
1•anotherevan•27m ago•0 comments

A man who blew up a nuclear power station and disappeared

https://www.theguardian.com/world/2026/may/05/the-man-who-blew-up-a-nuclear-power-station-koeberg...
3•Michelangelo11•34m ago•0 comments

Pronouns in Perl (2009)

https://www.modernperlbooks.com/mt/2009/11/from-novice-to-adept-pronouns-in-perl
1•tosh•35m ago•0 comments

Discussion on Fsnotify Maintainer Removal

https://github.com/fsnotify/fsnotify/issues/757
1•mjyut•35m ago•1 comments

3 Women Who Fundamentally Shaped Modern Software [Reddit!!!]

https://old.reddit.com/r/compsci/comments/1t6jo79/3_women_who_fundamentally_shaped_modern_software/
1•signa11•37m ago•0 comments

Eating eggs could cut Alzheimer's risk by 27%

https://www.sciencedaily.com/releases/2026/05/260506225214.htm
3•y1n0•37m ago•2 comments

Can houseplants purify the air in your home?

https://phys.org/news/2026-05-houseplants-purify-air-home-science.html
2•y1n0•38m ago•0 comments

AI giveth and AI taketh CPU

https://stackoverflow.blog/2026/05/08/ai-giveth-and-ai-taketh-cpu/
1•y1n0•38m ago•0 comments

When a Meta CTO and an AWS ProServe Principal Converge on the Same Philosophy

https://www.outcomeops.ai/blogs/the-o16g-manifesto-validates-what-weve-been-building-since-july
2•linsys•41m ago•0 comments

The layoffs will continue till we learn to use AI

https://twitter.com/championswimmer/status/2051807284691612099
3•s4i•44m ago•0 comments

Attenborough: The risk-taker who changed how we see Earth

https://www.bbc.co.uk/news/resources/idt-715ff936-f52a-429d-bb35-d1940d7f6111
2•mellosouls•45m ago•0 comments

European 8mm footage from the previous century

https://old-love.eu/
3•flixz_•49m ago•0 comments

Axavive Official Site 2026: Pricing, Bonuses, and 90-Day Guarantee

https://finance.yahoo.com/sectors/healthcare/articles/axavive-skin-exploding-2026-golden-22590060...
2•farjzaty•52m ago•0 comments

Krytonum – a bare-metal C++ OS built from scratch

https://github.com/Velo-Computing-Technologies/Krytonum
2•hs100000•53m ago•0 comments

The Nature of Programming

https://medium.com/@tautvilas/what-is-programming-22a72ef4fd02
4•brisky•53m ago•0 comments

Show HN: When the LLM Accidentally

2•lucid-dev•54m ago•0 comments

Building an In-Person System (NYC)

https://www.notion.so/Building-an-In-Person-System-NYC-354c7880b1938067843defd62925fec4?source=co...
2•field-trace•54m ago•0 comments