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•12mo 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•12mo 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•12mo 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.

InclusionAI/Ring-2.6-1T is now open-sourced

https://huggingface.co/inclusionAI/Ring-2.6-1T
1•gainsurier•19s ago•0 comments

The Quiet Renovation at Bitwarden

https://blog.ppb1701.com/the-quiet-renovation-at-bitwarden
1•RyeCombinator•1m ago•0 comments

OXP – Write one WASM extension, run natively in VS Code, JetBrains, and Neovim

https://oxp.sh/
1•aldgar•3m ago•0 comments

The Download: deepfake porn's stolen bodies and AI sharing private numbers

https://www.technologyreview.com/2026/05/14/1137257/the-download-deepfake-porn-bodies-ai-exposing...
1•joozio•4m ago•0 comments

The CTF scene is dead

https://kabir.au/blog/the-ctf-scene-is-dead
1•frays•6m ago•0 comments

QuantumGuard – Free Quantum

https://quantumguard.site
1•pavan6599•11m ago•0 comments

Nested Callbacks (2013)

https://blog.michellebu.com/2013/03/21-nested-callbacks/
1•cod1r•19m ago•0 comments

Global News Reporting Briefs

https://www.worldbrief.info
1•reader9274•22m ago•0 comments

Asynchronicity in Continuous Batching

https://huggingface.co/blog/continuous_async
1•eigenBasis•30m ago•0 comments

MiniPlasma, a Powerful LPE

https://deadeclipse666.blogspot.com/2026/05/miniplasma-powerful-lpe.html
1•geekone•34m ago•0 comments

SpaceX Is Aiming to Go Public on June 12 in What Stands to Be Biggest IPO

https://www.wsj.com/finance/spacex-is-aiming-to-go-public-on-june-12-in-what-stands-to-be-biggest...
3•tzury•37m ago•0 comments

Inside Number 0

http://johnfinnemore.blogspot.com/2025/10/inside-number-0.html
2•tobr•39m ago•0 comments

Why Is Debian Called the Universal Operating System?

https://itsfoss.com/debian-universal-operating-system/
1•susam•43m ago•0 comments

Smalltalk: The Software Industry's Greatest Failure

http://richardkulisz.blogspot.com/2011/02/smalltalk-software-industrys-greatest.html
2•parallelminds•47m ago•1 comments

F.03 Livestream [video]

https://www.youtube.com/watch?v=luU57hMhkak
1•anonymousiam•49m ago•1 comments

Desire Paths

https://en.wikipedia.org/wiki/Desire_path
1•guidedlight•52m ago•0 comments

A programming language made for agents

https://zerolang.ai/
1•yofabr•52m ago•1 comments

Discovered City in the Sky in Utah

https://www.youtube.com/watch?v=szd285GJSkE
2•VaedaStrike•52m ago•0 comments

EY retracts study after researchers discover AI hallucinations

https://www.ft.com/content/a61cbcae-95e4-4449-86e1-ef40fb306f4e
2•tzury•56m ago•1 comments

A Budget of Paradoxes, Volume I and II by Augustus De Morgan

https://www.gutenberg.org/ebooks/23100
1•YoctoYARN•56m ago•1 comments

I've spent 16 years mapping for love and money, and you should give it a shot

https://twitter.com/i/status/2055475663398953220
1•Michelangelo11•57m ago•0 comments

Knight Rider car gets speeding ticket in NYC despite being in Illinois museum

https://abc7ny.com/post/knight-rider-car-kitt-gets-speeding-ticket-brooklyn-despite-being-display...
2•866-RON-0-FEZ•59m ago•0 comments

Designing a team of agents

https://blog.frankel.ch/design-team-agents/
1•saikatsg•1h ago•0 comments

A Good Lemma Is Worth a Thousand Theorems

https://sites.math.rutgers.edu/~zeilberg/Opinion82.html
1•susam•1h ago•0 comments

Consumers sue Amazon for not refunding Trump tariff costs

https://www.reuters.com/business/retail-consumer/consumers-sue-amazon-not-refunding-trump-tariff-...
3•Anon84•1h ago•0 comments

Tarvex ZM-1 – A compiler-free weight-stationary inference accelerator

https://medium.com/towards-artificial-intelligence/ai-data-centers-are-wasting-power-moving-data-...
1•tejakusireddy•1h ago•0 comments

After extensive work with agents, the non-technical sentence is the shape I see

https://sdocs.dev/s/qtIcZCIL#k=sHoAJ4Syfkv25404v5a3Ft4gJBPZwj7aAhquWmdzDPM
1•FailMore•1h ago•0 comments

Personalization and Privacy Choice

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4795118
1•1vuio0pswjnm7•1h ago•0 comments

What Is Code?

https://martinfowler.com/articles/what-is-code.html
1•saikatsg•1h ago•0 comments

Cerebras – Faster Tokens Please

https://newsletter.semianalysis.com/p/cerebras-faster-tokens-please
2•pretext•1h ago•0 comments