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

AI Governance 2026: I Almost Quit over This Shit (and Why You Might Too)

https://medium.com/open-ai/ai-governance-2026-i-almost-quit-over-this-shit-and-why-you-might-too-...
1•sukhpinder0804•1m ago•0 comments

Show HN: Fruitsy, a slot machine game

https://fruitsy.surge.sh
1•stagas•1m ago•0 comments

Jira Is Turing-Complete

https://seriot.ch/computation/jira.html
1•MrFinch•3m ago•0 comments

Codex is flagged as malware on macOS

https://github.com/openai/codex/issues/23195
1•vldszn•4m ago•1 comments

Wildlife is watching us, too – and changing their behavior in response

https://news.yale.edu/2026/05/21/wildlife-watching-us-too-and-changing-their-behavior-response
2•hhs•8m ago•1 comments

BFI Online Video Collection

https://replay.bfi.org.uk/collection/458
1•philo23•8m ago•1 comments

World Machines

https://worldmachines.org/resources
1•jerlendds•9m ago•0 comments

Curious cases of financial engineering in biotech

https://www.owlposting.com/p/curious-cases-of-financial-engineering
1•abhishaike•10m ago•0 comments

Birds can see into the UV spectrum, picking up signals that the human eye cannot

https://www.binghamton.edu/news/story/6207/beyond-black-research-explores-the-feather-color-of-am...
2•hhs•11m ago•0 comments

ParsOS NEXT, Learn how does a GUI works

https://github.com/amirali1390-bit/ParsOS-NEXT
1•amirali901•13m ago•1 comments

Hi-res microscopes give biologists petabytes of data

https://news.berkeley.edu/2026/05/22/hi-res-microscopes-give-biologists-petabytes-of-data-scienti...
2•hhs•14m ago•0 comments

Guinea worm disease nears worldwide elimination, with only 10 cases in 2025

https://www.cidrap.umn.edu/dracunculiasis/guinea-worm-disease-nears-worldwide-elimination-only-10...
2•randycupertino•24m ago•1 comments

Alberta will vote on whether to remain part of Canada. What now?

https://www.bbc.com/news/articles/c809jg1gj9yo
3•tartoran•24m ago•2 comments

Polsia raised $30M; source map: fake ARR, dead users, god-mode over your company

https://zero-arr.vercel.app
12•not-chatgpt•29m ago•3 comments

Don't Roll Your Own

https://susam.net/do-not-roll-your-own.html
6•adunk•29m ago•1 comments

Memdeklaro: Open-source self-sovereign identity

https://memdeklaro.org
3•anonymous123•30m ago•0 comments

Customizing an LLM for Enterprise Software Engineering

https://arxiv.org/abs/2605.16517
3•daureg•31m ago•0 comments

Byrne's Euclid

https://www.c82.net/euclid/
3•layer8•34m ago•1 comments

SpaceX files to go public, and the math requires a little faith

https://techcrunch.com/video/spacex-files-to-go-public-and-the-math-requires-a-little-faith/
3•Timofeibu•39m ago•0 comments

Dirty Frag, Copy Fail, Fragnesia: A Worrisome Linux Security Trend

https://www.theregister.com/security/2026/05/23/dirty-frag-copy-fail-fragnesia-the-start-of-a-wor...
4•Timofeibu•40m ago•0 comments

Inside an N64 Cartridge: How the Hardware Actually Works [video]

https://www.youtube.com/watch?v=4Yix4NzRv9s
3•skibz•40m ago•0 comments

The Crypto Coin was the tell – thoughts on GSD, and it's crypto rugpull

https://vexjoy.com/posts/the-crypto-coin-was-the-tell/
2•AndyNemmity•41m ago•0 comments

The Appreciation Constituency: Land, Credit and the Politics of Protected Assets

https://americanaffairsjournal.org/2026/05/the-appreciation-constituency-land-credit-and-the-poli...
2•robocat•42m ago•0 comments

The Polyglot Protocol – senior-engineer guardrails for AI coding agents

https://github.com/sabir-gbs/the-polyglot-protocol
2•sabirsemerkant•43m ago•0 comments

GLP-1s Linked to Lower Risk of Cancer Spread in Four Tumor Types

https://www.medpagetoday.com/meetingcoverage/asco/121397
3•randycupertino•43m ago•0 comments

CA declares state of emergency as fire crews race to contain toxic chemical leak

https://www.bbc.com/news/articles/c3w2l249j8go
31•borski•45m ago•6 comments

Shamelessly vibecoded rust NTFS driver

https://github.com/christhomas/rust-fs-ntfs
2•chrisalexthomas•47m ago•0 comments

Markdown Is Not LaTeX

https://www.iconoclasts.blog/joe/markdown-is-not-latex
10•joesuf4•50m ago•6 comments

Collabora and Flipper: Opening Up the RK3576

https://www.collabora.com/news-and-blog/news-and-events/collabora-flipper-opening-up-the-rk3576.html
2•anikoghosyan•55m ago•0 comments

Strategic Thinking

https://candost.blog/newsletter/mediations-38/
3•mooreds•56m ago•0 comments