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.

Show HN: Voice-first app onboarding experiment (UI, Pros, Cost)

https://coffeeandtoken.com/anatomy-of-a-voice-first-onboarding/
1•briodf•1m ago•0 comments

Why the Airbus A321XLR Often Gets Stuck Climbing for First Few Hours of Flight

https://simpleflying.com/airbus-a321xlr-often-stuck-climbing-1st-few-hours-flight/
1•edward•2m ago•0 comments

Nature-Based Sanitation. Cihuatlán: A Large-Scale Artificial Wetland

https://revista.unaminternacional.unam.mx/en/nota/12/saneamiento-basado-en-la-naturaleza-cihuatla...
1•bryanrasmussen•17m ago•0 comments

Could China's battery-swapping e-trucks be the answer to EV range anxiety

https://www.theguardian.com/environment/2026/nov/12/china-battery-swapping-e-trucks-catl-ev-range...
2•xbmcuser•18m ago•0 comments

Show HN: Automatic extraction gets you structured data from web data

http://66.44.17.8/:3333
1•sunsonia926•22m ago•0 comments

Spreadsheets and Other Models of Morality

https://blog.coredump.cx/p/spreadsheets-and-other-models-of
1•surprisetalk•30m ago•0 comments

Secure Exclaves and Ambient Sensing

https://security.apple.com/blog/secure-exclaves/
1•u1hcw9nx•33m ago•0 comments

Skill Recorder: Desktop app that records your on-screen work session

https://github.com/microsoft/skill-recorder
1•taubek•35m ago•0 comments

British salmon loses its organic status

https://www.theguardian.com/environment/2026/nov/14/salmon-organic-british-farmed-environmental-w...
1•rdmuser•37m ago•0 comments

The Tyranny of Format over Content

https://medium.com/@smoking2man/the-tyranny-of-format-over-content-how-modern-ai-models-fit-human...
1•Aldus551•37m ago•0 comments

LetterBurst: Crossword Puzzle

https://play.google.com/store/apps/details?id=com.letterburst.game&hl=en_US
1•CompetitivePie•45m ago•0 comments

The Forgotten Sport of Balloon Jumping

https://www.smithsonianmag.com/air-space-magazine/sport-balloon-jumping-180958805/
2•thunderbong•50m ago•0 comments

This Week in Plasma: XWayland on Demand

https://blogs.kde.org/2026/11/14/this-week-in-plasma-xwayland-on-demand/
2•HieronymusBosch•53m ago•0 comments

Tip

https://vivaldi.com/blog/tips/tip-639/
1•wizardV•57m ago•0 comments

Jensen Huang Ouster at Nvidia:Bigger Governance and Coming Financial Train Wreck

https://www.nakedcapitalism.com/2026/11/jensen-huang-ouster-at-nvidia-bigger-governance-and-comin...
2•hackandthink•1h ago•0 comments

Who Cares about a Computation?

https://topos.institute/blog/2026-09-22-who-cares-about-a-computation/
1•jses•1h ago•0 comments

Kitesurf is now open source

https://blog.cloudflare.com/kitesurf-open-source/
2•Fysi•1h ago•0 comments

Show HN: Gamma PDF – AI-native PDF reader, self-hosted

https://gammapdf.com/
3•tim4431•1h ago•1 comments

Sky sues household dodgy-box users in first case of its kind

https://www.independent.ie/business/sky-sues-household-dodgy-box-users-in-first-case-of-its-kind/...
1•austinallegro•1h ago•2 comments

Show HN: Language for API calls, load tests and MCP server

https://stampdrill.com/
1•sia_xi•1h ago•0 comments

Microsoft on FAA Ground Stop: It Wasn't Me

https://kotaku.com/microsoft-on-faa-ground-stop-it-wasnt-me-2000756749
1•01-_-•1h ago•0 comments

Australia's First Computer Conference

https://www.pearcey.org.au/heritage/computing-history/australias-first-computer-conference/
1•Skyfall106•1h ago•0 comments

WhatsTask – An AI project manager for teams of people and agents

https://www.whatstask.com
1•hajara_sabnam•1h ago•0 comments

My grandfather was a Cosa Nostra hitman. Now I know the truth about the Mafia

https://www.repubblica.it/en/europe/people/2026/11/13/news/filmmaker_gaspare_mutolo_nephew_mafia_...
1•simonebrunozzi•1h ago•0 comments

Tidy Tabs – A new take on managing tabs

https://tidytabs.dev/
2•ydna404•1h ago•1 comments

Son of ex-CIA chief Brennan charged

https://www.reuters.com/legal/litigation/son-ex-cia-chief-brennan-charged-over-sexual-images-mino...
2•usernomdeguerre•1h ago•2 comments

Bioprinting on a Budget

https://www.rochester.edu/newscenter/what-is-3d-bioprinting-advancements-733332/
2•geox•1h ago•0 comments

The Invention of Islamic Invention

https://www.cremieux.xyz/p/the-invention-of-islamic-invention
21•curtisblaine•1h ago•6 comments

ForumNOX Hacking Forums

https://forumnox.com/
2•Jokerr•1h ago•0 comments

GNU Maintainer: Slave-Made Code? "YES"

https://www.flyingpenguin.com/gnu-maintainer-slave-made-code-yes/
4•latexr•1h ago•2 comments