frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

Sex n Crime 01

https://c64mags.untergrund.net/wiki/index.php?title=Sex_n_Crime_01
1•jruohonen•1m ago•0 comments

Ask HN: Hello Landing Dispute – Furnished Apartments

1•mehdizare•1m ago•0 comments

The World's Real-Time Billionaires

https://www.forbes.com/real-time-billionaires/
1•mellosouls•3m ago•0 comments

4× RTX Pro 6000 Blackwell on Water, and the One Card That Wouldn't Behave

https://sabareesh.com/posts/blackwell-waterblock/
1•sabareesh•5m ago•1 comments

The decline of Google and rise of alternative searches as the source of traffic

https://stfn.pl/blog/101-decline-of-google/
1•speckx•6m ago•0 comments

The Impossible Journey to Get Apple Developer Accounts

https://www.dioko.ai/blog/the-impossible-journey-to-get-apple-developer-accounts
2•dioko•9m ago•0 comments

Indiana Pi Bill

https://en.wikipedia.org/wiki/Indiana_pi_bill
2•drdirk•11m ago•0 comments

There's Someone Squatting in My House and I Need Permission to Remove Them

https://substack.com/sign-in
2•Poppytam•12m ago•1 comments

chromium.woolyss.com is shutting down on August 31, 2026

https://chromium.woolyss.com/
3•ibradude•15m ago•1 comments

Two Years of OCaml

https://borretti.me/article/two-years-ocaml
2•tosh•16m ago•0 comments

We Can Live with AI, but Not Like This

https://atroxclarus499795.substack.com/p/we-can-live-with-ai-but-not-like
3•Poppytam•18m ago•0 comments

Meta: Setting to disconnect your off-Meta activity is going away

https://help.instagram.com/1690298141991062
5•saharshpruthi•18m ago•1 comments

Show HN: Flag Study – learn the flags behind the World Cup

https://www.flagstudy.com/
2•jsheffers•20m ago•0 comments

When The C/C++ Users Journal Disappeared

https://freshsources.com/blog/files/cpp-source.html
3•chuckallison•22m ago•0 comments

Service Bindings for Postgres: Per-App Roles and Grants

https://openrun.dev/blog/service-binding/
2•ajayvk•25m ago•1 comments

Apple Has Officially Stopped Caring About Purveying Accurate Information

https://buttondown.com/theinternet/archive/apple-has-officially-stopped-caring-about-accuracy/
7•speckx•30m ago•1 comments

Large etchings of numbers signaling opposition to Trump appear on National Mall

https://www.washingtonpost.com/style/2026/06/11/apparent-etchings-86-47-seen-trump-threat-spotted...
2•evan_•30m ago•1 comments

Keynesian Beauty Contest

https://en.wikipedia.org/wiki/Keynesian_beauty_contest
3•throw0101c•31m ago•1 comments

How pierre diffs codeviewer component works

https://twitter.com/backnotprop/status/2065479594023829619
2•ramoz•31m ago•2 comments

You cannot control the mind, and that is not the problem

https://pilgrima.ge/p/the-way-back-home-is-a-circle
6•momentmaker•33m ago•3 comments

The C-64 Scene Database

https://csdb.dk/
4•jruohonen•33m ago•0 comments

New technology developed could prevent 70M tonnes of milk waste each year

https://www.abc.net.au/news/2026-06-07/act-technology-prevent-70-million-tonnes-of-milk-waste-ann...
2•speckx•34m ago•0 comments

Determinate Secure Packages 26.05

https://determinate.systems/blog/determinate-secure-packages-26-05/
2•biggestlou•35m ago•0 comments

Ask HN: How to deal with agents constantly messing up padding/alignment in UIs?

2•ex-aws-dude•35m ago•0 comments

Ghostty-Blackhole

https://github.com/s0xDk/ghostty-blackhole
3•pama•37m ago•0 comments

The end of progress against extreme poverty?

https://ourworldindata.org/end-progress-extreme-poverty
8•Luc•38m ago•1 comments

Show HN: DR Lens – Ahrefs Domain Rating in Chrome Toolbar

https://chromewebstore.google.com/detail/dr-lens-—-domain-rating-i/babgbadloikchhadbpmcmhokbbco...
2•kka•39m ago•0 comments

I counted every "incredible" in 11 years of Apple WWDC keynotes

https://buzznote.io/apple-wwdc/
4•radekmika•39m ago•0 comments

Cortex – Agent-Native Knowledge OS on Markdown (Karpathy's LLM Wiki, via MCP)

https://github.com/synpulse8-opensource/pulse8-ai-cortex-knowledge-vault
2•jiekepan•40m ago•0 comments

Making FlashAttention-4 faster for inference

https://modal.com/blog/flash-attention-4-faster
3•birdculture•41m ago•0 comments