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.

Record-breaking solo rower Kelsey Pfendler arrives in Hawaii

https://www.hawaiinewsnow.com/2026/07/04/record-breaking-solo-rower-kelsey-pfendler-arrives-hawaii/
1•MaysonL•3m ago•0 comments

Show HN: Two-tier-memory – queryable long-term memory for AI coding agents

https://github.com/tadelstein9/two-tier-memory
1•tadelstein•3m ago•0 comments

Ubuntu 24.04 on Intel Mac

https://github.com/mozekin/apple-bce-drv/blob/aur/INSTALL-UBUNTU.md
2•mozzinator•8m ago•0 comments

Review Frontloading: Do You Love This App? Y/N

https://functionmouse.com/frontloading/
2•functionmouse•14m ago•0 comments

Bugs happen: The easy way to compare solo PQ to ECC+PQ

https://blog.cr.yp.to/20260704-bugs.html
2•zdw•29m ago•0 comments

If I designed a Commodore Phone

https://retrogamecoders.com/if-i-designed-a-commodore-phone/
3•ibobev•36m ago•0 comments

Egg consumption inversely correlated with Alzheimer's

https://pubmed.ncbi.nlm.nih.gov/42002260/
14•natbennett•37m ago•2 comments

My side quest measuring input latency with VK_EXT_present_timing

https://themaister.net/blog/2026/07/02/my-side-quest-measuring-input-latency-with-vk_ext_present_...
2•ibobev•42m ago•0 comments

Spritework on the ZX Spectrum: Rendering

https://bumbershootsoft.wordpress.com/2026/07/04/spritework-on-the-zx-spectrum-rendering/
2•ibobev•42m ago•0 comments

Benzo(a)pyrene

https://en.wikipedia.org/wiki/Benzo(a)pyrene
3•libpcap•42m ago•0 comments

Trying to buy a sandwich with HTTP 402

https://andrewacomb.substack.com/p/trying-to-buy-a-sandwich-with-http
3•acombandrew•43m ago•1 comments

Returning to Zig

https://gracefulliberty.com/articles/return-to-zig/
6•birdculture•48m ago•0 comments

CATL is building more than 200 battery swap stations every month

https://electrek.co/2026/07/04/catl-is-building-more-than-200-battery-swap-stations-every-month/
3•breve•52m ago•0 comments

French Police Dismantle Operation Behind the Defunct YggTorrent

https://torrentfreak.com/french-police-dismantle-operation-behind-the-already-defunct-yggtorrent/
2•gslin•53m ago•0 comments

Morph Reflexes

https://docs.morphllm.com/sdk/components/reflexes
3•handfuloflight•57m ago•0 comments

Return of the Nigerian Prince Redux: Beware Book Club and Book Review Scams

https://writerbeware.blog/2025/09/19/return-of-the-nigerian-prince-redux-beware-book-club-and-boo...
8•Anon84•1h ago•4 comments

Infographic – An Infographic Generation and Rendering Framework

https://infographic.antv.vision/
2•javatuts•1h ago•0 comments

Vibe Coded X11 Server Written in Rust Adds Xinerama, FreeBSD Support

https://www.phoronix.com/news/YSERVER-1.3-Released
2•breve•1h ago•0 comments

The Declaration of Independence

https://acoup.blog/2026/07/04/collections-on-the-declaration-of-independence/
2•colonCapitalDee•1h ago•0 comments

Obsidian AI Setup – Bootstrap a Personalized Obsidian Vault with AI

https://github.com/anliberant/obsidian-ai-setup
2•javatuts•1h ago•0 comments

Reticulum Is Interesting

https://bergie.iki.fi/blog/reticulum-is-interesting/
3•bergie•1h ago•0 comments

Costco's growing cool factor attracts younger audiences

https://www.seattletimes.com/business/costcos-growing-cool-factor-attracts-younger-audiences/
4•TMWNN•1h ago•0 comments

The goal isn't to build "another AI IDE."

https://github.com/BotCoder254/limboo
2•telvin_Teum•1h ago•0 comments

Mama Look a White Dove

https://extelligence.substack.com/p/mama-look-a-white-dove
6•Aloha•1h ago•0 comments

Damo Academy unveils an AI agent able to discover superconductors

https://www.scmp.com/tech/big-tech/article/3359335/alibabas-elements-claw-ai-agent-unearths-four-...
4•yogthos•1h ago•0 comments

India's largest eVTOL demonstrator completes flight tests

https://newatlas.com/aircraft/india-evtol-demonstrator-sarla-aviation-sylla-shunya/
2•breve•1h ago•0 comments

Nvidia Has Become the Bank Behind the AI Boom

https://startupfortune.com/nvidia-has-quietly-become-the-bank-behind-the-ai-boom/
5•insanetechh•1h ago•0 comments

Tier-aware data federation between Postgres and Apache Iceberg

https://github.com/Modak-Labs/modak
2•addu390•1h ago•0 comments

Zo Computer

https://www.zo.computer
7•erhuve•1h ago•5 comments

America is destroying itself. It's no surprise

https://www.theguardian.com/commentisfree/2026/jul/04/us-history-destruction
10•skissane•1h ago•6 comments