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.

Trading Is Getting Younger, Ownership Is Getting Older

https://www.apollo.com/wealth/the-daily-spark/trading-is-getting-younger-ownership-is-getting-older
1•akyuu•39s ago•0 comments

Record Labels Drop Piracy Lawsuits Against Altice and Verizon After Cox Ruling

https://torrentfreak.com/record-labels-drop-piracy-lawsuits-against-altice-and-verizon-in-wake-of...
1•Cider9986•53s ago•0 comments

Trends in sudden death mortality across Europe, 2010–2020

https://www.thelancet.com/journals/lanepe/article/PIIS2666-7762(26)00067-0/fulltext
1•akyuu•4m ago•0 comments

Man stole coworkers identity for 30 yrs, victim in mental hosp exonerated by DNA

https://www.cbsnews.com/minnesota/news/matthew-keirans-coworker-identity-theft-sentence-william-w...
1•randycupertino•6m ago•1 comments

Error 404 (Not Found) 1

http://google.com/does-not-exist
1•pbhn•6m ago•1 comments

Mortgage lenders to consider rent history in mortgage applications

https://www.marketplace.org/story/2026/04/23/fannie-freddie-change-to-make-it-easier-for-renters-...
1•littlexsparkee•8m ago•0 comments

Working with Claude Code: A Field Manual

https://blog.iannelson.uk/working-with-claude-code
1•ianfrasernelson•9m ago•0 comments

Robotic Security Dogs Now on the Job to Protect Crops

https://www.globalagtechinitiative.com/in-field-technologies/robotics-automation/robotic-security...
2•rmason•9m ago•1 comments

Supreme Court to hear argument on law enforcement's use of "geofence warrants"

https://www.scotusblog.com/2026/04/court-to-hear-argument-on-law-enforcements-use-of-geofence-war...
2•throw0101c•9m ago•1 comments

Anthropic CPO leaves Figma board after reports of competing product

https://techcrunch.com/2026/04/16/anthropic-cpo-leaves-figmas-board-after-reports-he-will-offer-a...
1•gmays•12m ago•0 comments

Editable 3D models with code or AI in Roblox

https://twitter.com/roblox/status/2047406073263382834
2•dmarcos•14m ago•0 comments

What Is an Enterprise Learning Management System?

1•financehub•15m ago•0 comments

SQLite Vec1 Vector Extension for vector search

https://sqlite.org/vec1/doc/trunk/doc/vec1.md
1•OutOfHere•20m ago•0 comments

Show HN: I've built a nice home server OS

https://lightwhale.asklandd.dk/
6•Zta77•21m ago•0 comments

The Surveillance Accountability Act Demands Warrants for Data

https://reclaimthenet.org/surveillance-accountability-act
1•Cider9986•21m ago•0 comments

Show HN: Wayland Wlroot Hjkl Everywhere

https://git.sr.ht/~hocwp/blog/tree/main/wlroot-hjkl-everywhere.md#wayland-wlroot-codehjklcode-eve...
1•pbrhocwp•23m ago•0 comments

Cloudflare for SaaS: your old provider can silently keep your domain

https://blog.iodev.org/blog/cloudflare-saas-custom-hostname-conflict/
3•else42•24m ago•0 comments

Show HN: Codex context bloat? 87% avg reduction on SWE-bench Verified traces

https://www.npmjs.com/package/pando-proxy
3•george_ciobanu•29m ago•2 comments

Generalised plusequals

https://leontrolski.github.io/alt.html
1•leontrolski•29m ago•0 comments

Ask HN: Any Developer from Wales?

1•danver0•30m ago•1 comments

We Are (Still) Living in the Long Boring

https://freddiedeboer.substack.com/p/we-are-still-living-in-the-long-boring
4•YeGoblynQueenne•33m ago•0 comments

What AI Needs That $700B Can't Buy

https://cyrusradfar.com/thoughts/what-700-billion-cant-buy
2•cyrusradfar•35m ago•1 comments

Show HN: I built a CLI that turns your codebase into clean LLM input

https://github.com/NoahCristino/llmcat
2•cristinon•38m ago•0 comments

The blame game: The Trump coalition is fracturing as Iran operation stalls

https://theins.press/en/politics/291937
1•lschueller•39m ago•1 comments

Ubuntu has started a 'complete redesign' of Launchpad

https://www.neowin.net/news/ubuntu-has-started-a-complete-redesign-of-the-series-page-on-launchpad/
2•bundie•42m ago•0 comments

Palantir's Manifesto Promises a Dystopian Future

https://www.thenation.com/article/society/alex-karp-palantir-techbro-fascism/
4•fnimick•43m ago•0 comments

The End and a New Beginning

https://www.calculatedriskblog.com/2026/01/this-is-end-and-new-beginning.html
2•mooreds•47m ago•0 comments

Show HN: I Reverse Engineered Codex Background Computer Use

https://github.com/actuallyepic/background-computer-use
2•anupamb•50m ago•0 comments

Apple TV remote is the perfect accessory for vibe coding

https://github.com/machinarii/hypervibe
2•datalater•51m ago•0 comments

Breathing Apparatus

https://atomicsandwich.com/blog/breathing_apparatus
2•radeeyate•54m ago•0 comments