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.

Show HN: PolyMCP – Orchestrate AI agents across Python tools and MCP servers

1•justvugg•3m ago•0 comments

Bio-Theory Lab Notes

https://chillphysicsenjoyer.substack.com/p/bio-theory-lab-notes
1•surprisetalk•3m ago•0 comments

Survival Analysis of the Supreme Court

https://entropicthoughts.com/survival-analysis-of-the-supreme-court
1•surprisetalk•3m ago•0 comments

How to Win Titular Metagames

https://taylor.town/how-to-title
1•surprisetalk•3m ago•0 comments

Mapping Ignorance

https://mappingignorance.org/
1•surprisetalk•3m ago•0 comments

Maximum Agreement Linear Predictor (MALP)

https://arxiv.org/abs/2304.04221
1•tesserato•5m ago•1 comments

Solving Mastermind with Maximum Entropy

https://sbondaryev.dev/articles/mastermind-entropy
1•sbondaryev•5m ago•1 comments

I Just Returned from China. We Are Not Winning

https://www.nytimes.com/2026/02/10/opinion/china-ai-ev-trump.html
1•SilverElfin•5m ago•0 comments

Roman Marching Camps: An Essential Element in Rome's Empire-Building (2004)

https://warfarehistorynetwork.com/article/roman-marching-camps-an-essential-element-in-romes-empi...
1•andsoitis•6m ago•0 comments

OpenAI retired its most seductive chatbot – leaving users angry and grieving

https://www.theguardian.com/lifeandstyle/ng-interactive/2026/feb/13/openai-chatbot-gpt4o-valentin...
2•speckx•6m ago•0 comments

Quantum-secure cryptography in Apple operating systems

https://support.apple.com/nl-nl/guide/security/secc7c82e533/web
1•janandonly•6m ago•0 comments

Are the Mysteries of Quantum Mechanics Beginning to Dissolve?

https://www.quantamagazine.org/are-the-mysteries-of-quantum-mechanics-beginning-to-dissolve-20260...
2•jandrewrogers•6m ago•0 comments

CCI Imposes Penalty on Intel Corp. For Its India Specific Warranty Policy

https://www.pib.gov.in/PressReleasePage.aspx?PRID=2227079
1•shscs911•7m ago•0 comments

Colorado River

https://www.americanrivers.org/river/colorado-river-2/
1•andsoitis•9m ago•0 comments

Craftsmanship coding and the five stages of grief

https://thomasvilhena.com/2026/02/craftsmanship-coding-five-stages-of-grief
1•speckx•9m ago•0 comments

Shedding

https://winnielim.org/journal/shedding/
2•herbertl•10m ago•0 comments

I Gave Claude Access to My Pen Plotter

https://harmonique.one/posts/i-gave-claude-access-to-my-pen-plotter
2•futurecat•10m ago•2 comments

Show HN: Built an webpage to showcase Singaporean infra and laws/acts

https://adityaprasad-sudo.github.io/ExploreSingapore/
1•dagestan•10m ago•0 comments

SpacyDo Task Engine virtual machine example: todo with programmable tasks

1•tracyspacy•10m ago•0 comments

First-Ever Wiki

https://wiki.c2.com/?WikiWikiWeb
1•gurjeet•12m ago•0 comments

Virtual girlfriend apps are sharing and selling private user videos

1•laverdadoculta•12m ago•0 comments

The future of software engineering – The future of software development retreat [pdf]

https://www.thoughtworks.com/content/dam/thoughtworks/documents/report/tw_future%20_of_software_d...
2•todsacerdoti•13m ago•0 comments

Show HN: M-session – Open-source app for guided MDMA sessions

https://www.m-session.com/
1•wellwellsmell•14m ago•0 comments

When Kepler Meets Turing

https://jonny-dyer.com/blog/kepler-turing/
2•aaronbrindle•14m ago•1 comments

Standardized and In-Depth Benchmarking of Post-Moore Dataflow AI Accelerators

https://arxiv.org/abs/2601.19904
1•PaulHoule•14m ago•0 comments

I spent two days gigging at RentAHuman and didn't make a single cent

https://www.wired.com/story/i-tried-rentahuman-ai-agents-hired-me-to-hype-their-ai-startups/
4•speckx•15m ago•1 comments

Minions: Stripe's one-shot, end-to-end coding agents

https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents
2•ericpauley•15m ago•0 comments

Custom-Width Integer Types

https://alic.dev/blog/custom-bitwidth
1•enz•16m ago•0 comments

IronClaw: a Rust-based clawd that runs tools in isolated WASM sandboxes

https://github.com/nearai/ironclaw
2•dawg91•16m ago•0 comments

Inflation eases in US as prices for used cars fall

https://www.bbc.com/news/articles/cd6z05p56xyo
2•tartoran•19m ago•0 comments