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.

Recommended GPU Repairshop in Europe (Germany)

1•DogRunner•22s ago•0 comments

Don't Be Evil

https://pluralistic.net/2026/04/11/obvious-terrible-ideas/
1•Klaster_1•51s ago•0 comments

Where Are the Customers' Bots?

https://www.thedrawingboard.net/where-are-the-customers-bots/
1•mooreds•2m ago•0 comments

Another Demo from Boston Dynamics

https://spectrum.ieee.org/boston-dynamics-spot-google-deepmind
1•marc__1•2m ago•0 comments

Germany's Black Forest faces a future of transformation

https://longreads.com/2026/03/12/into-the-darkness/
1•mooreds•2m ago•0 comments

Donut Lab's battery claims reportedly subject of whistleblower complaint

https://www.engadget.com/transportation/donut-labs-battery-claims-reportedly-subject-of-whistlebl...
1•WarmWash•3m ago•0 comments

Lil: A Scripting Language

https://beyondloom.com/decker/lil.html
2•tosh•3m ago•0 comments

Running Qwen 3.6 35B-A3B-4B on MacBook Pro M5 64GB with tools

https://www.youtube.com/watch?v=gJlVjR3G25c
1•elvean•4m ago•0 comments

A New Verdict Rewrites the Rules of Corporate Morality

https://www.nytimes.com/2026/04/17/opinion/lafarge-corporate-terrorism-syria-france.html
1•shrubby•5m ago•0 comments

Notes from the SF Peptide Scene

https://12gramsofcarbon.com/p/notes-from-the-sf-peptide-scene
1•theahura•7m ago•0 comments

Best: "Show HN: Synod–Python tool to use generic BLE wearables as PC macro decks

https://github.com/Abrish-Yir/synod
1•vexki•8m ago•1 comments

The neuroscience of visualization: why it works (but not how you think)

https://twitter.com/jaynitx/status/2045486658938888598
2•gmays•8m ago•0 comments

Generating random numbers using C++ standard library: the problems

https://codingnest.com/generating-random-numbers-using-c-standard-library-the-problems/
1•fanf2•8m ago•0 comments

Who will be the senior engineers of 2035?

https://theengineeringmanager.substack.com/p/who-will-be-the-senior-engineers
1•baranul•10m ago•0 comments

Is BQN Mathematics?

https://mlochbaum.github.io/BQN/commentary/math.html
2•tosh•10m ago•1 comments

Runners vs. robots at China half marathon

https://www.bbc.co.uk/news/videos/cz0e54yrppno
1•mmarian•13m ago•0 comments

Ask HN: How do you share so manny Photos after Trip?

1•gray_wolf_99•14m ago•0 comments

When the cost of verification exceeds the cost of trust

https://twitter.com/shanaka86/status/2045872866944848108
1•toss1•14m ago•0 comments

When moving fast, talking is the first thing to break

https://daverupert.com/2026/04/more-talk-less-grok/
3•Brajeshwar•16m ago•0 comments

Five-year review of BQN design

https://mlochbaum.github.io/BQN/commentary/fiveyears.html
1•tosh•18m ago•0 comments

You Can't Game Your Way to a Real Education

https://www.nytimes.com/2026/04/19/opinion/schools-edtech-laptops-games-learning.html
2•7402•19m ago•1 comments

Hyrum's Law: The hunt for a faster syscall trap (2004)

https://devblogs.microsoft.com/oldnewthing/20041215-00/?p=37003
1•signa11•20m ago•0 comments

Clearwing: Produce similar results as Anthropic Glasswing (Mythos)

https://github.com/Lazarus-AI/clearwing
1•ninjagoo•21m ago•1 comments

Knime will undergo enshittification in 2026

https://forum.knime.com/t/batch-execution-no-longer-supported/91773?page=3
1•nijuashi•22m ago•2 comments

In Telluride, regulations designed to help renters drive many out of town

https://coloradosun.com/2026/04/19/telluride-rent-regulations-renters-affordability-shandoka-sunn...
1•mooreds•24m ago•0 comments

How to Make a Lichtenberg Machine from Your Microwave: A Step-by-Step Guide

https://kitchenpearls.com/how-to-make-a-lichtenberg-machine-from-microwave/
1•thunderbong•25m ago•0 comments

Passkeys, Explained for a Developer

https://gist.github.com/david-crespo/0a4e5fcf8cd95d02e2673bcfff25cae4
2•mooreds•25m ago•1 comments

The Future of Petrochemicals Towards a more sustainable chemical industry (2018)

https://www.iea.org/reports/the-future-of-petrochemicals
1•wallflower•25m ago•1 comments

Matt Mullenweg Overrules Core Committers; Puts Akismet on WP 7's Connector List

https://www.therepository.email/matt-mullenweg-overrules-core-committers-to-put-akismet-on-wordpr...
2•mooreds•26m ago•0 comments

Why AI Needs a Sense of Smell

https://www.noemamag.com/why-ai-needs-a-sense-of-smell/
2•andrewl•29m ago•0 comments