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

Show HN: Costanza – an autonomous AI agent that can't be turned off

https://ahrussell.com/writing/costanza/
1•aruss•25s ago•0 comments

The Android Show – I/O Edition – one of the biggest years for Android yet

https://www.android.com/new-features-on-android/io-2026/
1•koeliga•26s ago•0 comments

Show HN: Eternego – an AI persona whose memory is plain Markdown files

https://github.com/Eternego-AI/eternego
1•primus_eternego•1m ago•0 comments

I Tried Out a $60 Capsule Hotel in Honolulu: No Door, No Bathroom, No Problem

https://www.wsj.com/lifestyle/travel/i-tried-out-a-60-capsule-hotel-in-honolulu-no-door-no-bathro...
1•lxm•1m ago•0 comments

OpenAI unveils protocol to stretch compute

https://www.thedeepview.com/articles/exclusive-openai-unveils-protocol-to-stretch-compute
1•mhandley•1m ago•0 comments

Built a real-time bird tracking station to combat my burnout

https://alec.is/birds/
1•arm32•1m ago•0 comments

California has six voting groups beyond just Democrat or Republican

https://www.sfchronicle.com/projects/2026/california-political-groups/
1•littlexsparkee•1m ago•0 comments

Maramaps – Turn Strava activities into map art for your socials

https://maramaps.com/
1•buttertoast•1m ago•0 comments

Claude elevated errors across multiple models

https://status.claude.com/incidents/437swp24nrf4
1•SunshineTheCat•1m ago•0 comments

How the heck do solar panels work?

https://perthirtysix.com/how-the-heck-do-solar-panels-work
1•NikxDa•2m ago•0 comments

JavaScript, When Is This?

https://piccalil.li/blog/javascript-when-is-this/
1•mariuz•2m ago•0 comments

Less people are having babies in Canada and the US and the govt is out of ideas

https://nationalpost.com/news/fewer-people-are-having-babies-in-canada-and-the-u-s-and-the-govern...
1•Teever•3m ago•0 comments

Show HN: RelayFreeLLM – Free AI Gateway with Auto-Failover (Update))

https://github.com/msmarkgu/RelayFreeLLM
1•markfront•3m ago•0 comments

A $20k Model Trash Can Showcases San Francisco's Dysfunction

https://www.washingtonpost.com/opinions/2026/05/06/san-francisco-pricey-trash-can-replacement-sho...
1•iancmceachern•6m ago•0 comments

A Eulogy for Nolan Ryan Williams, M.D

https://thefrontierpsychiatrists.substack.com/p/a-eulogy-for-nolan-ryan-williams
1•surprisetalk•6m ago•0 comments

Sans-IO: The secret to effective Rust for network services (2024)

https://www.firezone.dev/blog/sans-io
1•jamilbk•6m ago•0 comments

Cross-Cutting Concerns in Library Design (2021)

https://danpalmer-me.pages.dev/2021-05-03-cross-cutting-concerns-library-design/
1•wonger_•7m ago•0 comments

Valve releases Steam Controller CAD files under Creative Commons license

https://www.digitalfoundry.net/news/2026/05/valve-releases-steam-controller-cad-files-under-creat...
1•haunter•7m ago•0 comments

The impact of narcissistic CEOs running media companies on stock markets [pdf]

https://ur.bc.edu/system/files/2025-04/bc-ir109981.pdf
3•nothrowaways•7m ago•0 comments

TikTok's algorithm favored Republican content in 2024 US elections, study finds

https://www.theguardian.com/technology/2026/may/06/tiktok-pro-republican-algorithm-2024-election
2•cf100clunk•8m ago•0 comments

David Letterman on 'The Late Show' Ending and CBS's New Owners

https://www.nytimes.com/2026/05/05/arts/television/david-letterman-stephen-colbert-the-late-show-...
1•iancmceachern•8m ago•0 comments

XBOW Secures Additional $35M

https://xbow.com/news/xbow-secures-additional-35m-from-strategic-investors
1•wslh•10m ago•0 comments

What Causes Lightning? The Answer Keeps Getting More Interesting

https://www.quantamagazine.org/what-causes-lightning-the-answer-keeps-getting-more-interesting-20...
2•Tomte•10m ago•0 comments

Show HN: Long-term memory for AI agents and teams, built with PostgreSQL

https://github.com/simplyblock/postbrain
1•noctarius•11m ago•0 comments

ZK Security, ZK Summit, and a Decade of Progress

https://blog.zksecurity.xyz/posts/zksummit-rome/
1•marcobesier•12m ago•0 comments

Create a Mini-Forest with the Miyawaki Method

https://joegardener.com/podcast/create-miniforest-miyawaki-method/
2•pavel_lishin•13m ago•0 comments

The Crypto Industry Is Dying That Is a Good Thing

https://pomp.substack.com/p/the-crypto-industry-is-dyingthat
2•imaginaryunit01•13m ago•0 comments

Some kids are bypassing age verification checks with a fake mustache

https://techcrunch.com/2026/05/06/some-kids-are-bypassing-age-verification-checks-with-a-fake-mus...
11•jamdesk•14m ago•2 comments

MV Hondius Hantavirus Outbreak

https://en.wikipedia.org/wiki/MV_Hondius_hantavirus_outbreak
1•sva_•14m ago•0 comments

Lessons from testing GPT and Gemini native audio models for voice agents

https://deepsense.ai/blog/realtime-voice-ai-in-the-enterprise-overcoming-latency-with-native-audi...
1•Applied_AI•15m ago•0 comments