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•12mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

LLM Wiki v2

https://gist.github.com/kanmadigital/2369c4f5ea410cb8f6a1647b40c0e2a1
1•gmays•3m ago•0 comments

Ask HN: How does everyone talk about their work when they've used AI?

2•deku2099•6m ago•0 comments

Even by Trumpian standards, a $1.8B fund for friends is bad

https://www.economist.com/united-states/2026/05/19/even-by-trumpian-standards-a-18bn-fund-for-fri...
3•petethomas•9m ago•0 comments

GitHub Compromised

https://twitter.com/i/status/2056949168208552080
10•claaams•15m ago•4 comments

Ask HN: How to manage AI APIs for SaaS application?

3•sbinnee•17m ago•1 comments

More Stupid Medium Stats Tricks

https://medium.com/luminasticity/more-stupid-medium-stats-tricks-41150cbbc6e0
2•bryanrasmussen•27m ago•0 comments

Your Slop, My Sludge

https://justingarrison.com/blog/2026-05-19-your-slop-my-sludge/
3•wapasta•29m ago•0 comments

Fast Factorial Algorithms

http://www.luschny.de/math/factorial/FastFactorialFunctions.htm
3•nill0•32m ago•0 comments

OpenAI commits S$300M to grow Singapore's AI capabilities

https://www.channelnewsasia.com/singapore/openai-singapore-300-million-ai-6128036
2•doppp•34m ago•0 comments

List of Consumer Reporting Companies [pdf]

https://files.consumerfinance.gov/f/documents/cfpb_consumer-reporting-companies_list_2025.pdf
1•m3047•35m ago•1 comments

Alternatives for the EDIT tool of LLM agents

https://antirez.com/news/166
1•calvinfo•39m ago•1 comments

Google to release first smart glasses since Google Glass flop

https://www.bbc.com/news/articles/cvgz1ynq1nqo
2•1659447091•40m ago•0 comments

Positive Alignment: Artificial Intelligence for Human Flourishing

https://arxiv.org/abs/2605.10310
1•lexandstuff•52m ago•0 comments

I Asked ChatGPT to Manage a Stock Portfolio

https://www.wsj.com/finance/investing/i-asked-chatgpt-to-manage-a-stock-portfolio-heres-how-it-di...
3•lxm•53m ago•1 comments

Slap Links – A Chrome extension inspired by SlapMac

https://slaplinks.app/
2•_matiassalles99•53m ago•1 comments

I'm Watching a Humanoid Robot Sort Packages

https://jpain.io/im-watching-a-humanoid-robot-sort-packages/
2•Eighth•56m ago•0 comments

LLM detector with science behind it

https://huggingface.co/spaces/akolpakov/SatorArepo
1•bold_iggl•59m ago•0 comments

Ask HN: What are Stainless users doing now that Anthropic has killed it?

4•ubutler•1h ago•1 comments

The Incompatibilities Between Generative AI and Art: Q&A with Ted Chiang

https://cdh.princeton.edu/blog/ted-chiang/
3•georgecmu•1h ago•2 comments

Show HN: Javalamp – A glowing terminal screensaver that keeps your Mac awake

https://github.com/breschio/javalamp
2•tbreschi•1h ago•1 comments

Everlane Represented a Millennial Ideal. Is It Dead?

https://www.nytimes.com/2026/05/19/style/the-fashions-shein-everlane-gucci-times-square.html
2•lxm•1h ago•0 comments

Tasks.org on Desktop

https://tasks.org/blog/desktop-app/
3•Quizzical4230•1h ago•0 comments

Canine Anatomy

https://veteriankey.com/canine-anatomy/
2•num42•1h ago•0 comments

S. 'Soma' Somasegar, 1966-2026: Microsoft and Madrona leader has passed away

https://www.geekwire.com/2026/s-soma-somasegar-1966-2026-microsoft-and-madrona-leader-was-a-champ...
2•SilverElfin•1h ago•1 comments

Supranim – Just a Bloody Web Framework Written in Nim

https://github.com/supranim/supranim
2•TheWiggles•1h ago•0 comments

The Wireworld Computer(1987)

https://www.quinapalus.com/wi-index.html
1•o4c•1h ago•0 comments

Evals Will Break and You Won't See It Coming

https://wanglun1996.github.io/blog/your-evals-will-break.html
7•rajveerb•1h ago•1 comments

Training within 10 hours of bedtime measurably hurts recovery

https://tryterra.co/research/best-time-to-workout-for-sleep
4•kyriakosel•1h ago•0 comments

Company Was an American Success Story. Until MAHA Influencers Sank It

https://www.thefp.com/p/this-company-was-an-american-success-until-maha-sank-it
1•rmason•1h ago•1 comments

Trump Order Would Push Banks to Check Clients' Citizenship Status

https://www.wsj.com/finance/regulation/trump-order-would-push-banks-to-check-clients-citizenship-...
6•petethomas•1h ago•0 comments