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

Iran U-23 football coach detained and had passport revoked

https://www.iranintl.com/en/202601191977
1•ukblewis•2m ago•1 comments

I tried building an OS, accidentally I built a Natural Language compiler instead

https://github.com/alonsovm44/yori
1•alonsovm•4m ago•1 comments

Personal Infrastructure Setup 2026

https://linderud.dev/blog/personal-infrastructure-setup-2026/
1•Foxboron•7m ago•0 comments

How Pen Caps Work

https://drmaciver.substack.com/p/how-pen-caps-work
1•insom•8m ago•0 comments

Prediction Markets and Lotteries

https://qoppac.blogspot.com/2026/01/prediction-markets-and-lotteries-and-my.html
1•7777777phil•10m ago•0 comments

Why the AI-in-Education Debate Keeps Missing the Point

https://gilpignol.substack.com/p/why-the-ai-in-education-debate-keeps
1•light_triad•11m ago•0 comments

United States Territorial Acquisitions

https://en.wikipedia.org/wiki/United_States_territorial_acquisitions_table
2•tchalla•13m ago•1 comments

Tesselation

https://mymodernmet.com/tessellation-art/
1•andsoitis•14m ago•0 comments

Trustless dead man's switch for crypto

https://www.deadhandprotocol.com/
1•maxcomperatore•15m ago•0 comments

US Supreme Court to decide if the pesticide Roundup is shielded from lawsuits

https://www.nytimes.com/2026/01/16/climate/supreme-court-roundup-pesticide.html
2•noleary•16m ago•0 comments

The Illusion of Discovery: AI-Generated Proofs of 'Open' Math Problems

https://bpatwa.substack.com/p/the-illusion-of-discovery-ai-generated
1•burglarhobbit•17m ago•0 comments

Origami and Programming

https://medium.com/@amitzur/origami-and-programming-4bddee3a1cb1
1•andsoitis•17m ago•0 comments

Show HN: Txt2plotter – True centerline vectors from Flux.2 for pen plotters

https://github.com/malvarezcastillo/txt2plotter
1•tsanummy•18m ago•0 comments

A good first word for Wordle

https://explainextended.com/2022/01/27/a-good-first-word-for-wordle/
1•7777777phil•19m ago•0 comments

Show HN: Sonar CiteScout – Find the links AI relies on to answer a prompt

https://trysonar.ai/tools/citescout
1•shukantpal•20m ago•0 comments

Show HN: Former Cloudflare SRE building OpsCompanion a live map of whats running

2•kennethops•20m ago•2 comments

Flux.2 Klein 4B (Apache 2.0)

https://huggingface.co/black-forest-labs/FLUX.2-klein-4B
12•anjneymidha•21m ago•6 comments

What if the idea of the autism spectrum is completely wrong?

https://www.newscientist.com/article/2509117-what-if-the-idea-of-the-autism-spectrum-is-completel...
3•kristianp•22m ago•2 comments

Regressions on benchmark scores suggest frontier LLMs ~3-5T params

https://aimlbling-about.ninerealmlabs.com/blog/benchmarks-predict-model-size/
2•namnnumbr•22m ago•1 comments

Origami Programming [pdf]

https://www.cs.ox.ac.uk/people/jeremy.gibbons/publications/origami.pdf
1•andsoitis•23m ago•0 comments

Do AI models reason or regurgitate? Why AI is not merely a "stochastic parrot"

https://bigthink.com/the-present/do-ai-models-reason-or-regurgitate/
2•ryan_j_naughton•24m ago•0 comments

Package Manager Glossary

https://nesbitt.io/2026/01/13/package-manager-glossary.html
1•7777777phil•26m ago•0 comments

The industrial waste site that glitters like a glacier

https://www.nationalgeographic.com/environment/article/kishangarh-dumping-yard-marble-india
1•noleary•26m ago•0 comments

Nanolang: A tiny experimental language designed to be targeted by coding LLMs

https://github.com/jordanhubbard/nanolang
2•Scramblejams•27m ago•0 comments

Minnesota wants to win a war of attrition

https://www.theverge.com/policy/863632/minnesota-walz-trump-sousveillance-ice
4•andrewstetsenko•31m ago•0 comments

Tesla, BYD, and Xiaomi Are Playing Different Games

https://gilpignol.substack.com/p/tesla-byd-and-xiaomi-are-playing
2•light_triad•31m ago•0 comments

Nebra Sky Disc: the oldest depiction of astronomical phenomena

https://www.livescience.com/archaeology/nebra-sky-disc-the-worlds-oldest-depiction-of-astronomica...
1•janandonly•32m ago•0 comments

I Improved Claude's MCP-CLI Experimental MCP Fix – 18x speedup on 50 calls

1•AIntelligentTec•33m ago•0 comments

Of donkeys, mules, and horses: data structures for network prefixes in Rust

https://blog.nlnetlabs.nl/donkeys-mules-horses/
1•fanf2•33m ago•0 comments

Gravity from Information Geometry: A Lean 4 Formalization of Emergent Spacetime

https://www.academia.edu/146192044/Gravity_from_Information_Geometry_A_Lean_4_Formalization_of_Em...
1•kristintynski•35m ago•1 comments