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.

GTA 6 crashes into top end of music chart after its record launch

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

Drift: See how far you drifted from your original intent (Chrome and Android)

https://joindrift.surge.sh/
1•middle_coach_kb•4m ago•0 comments

How the Phone Book Taught America to Ask for Answers

https://daily.jstor.org/how-the-phone-book-taught-america-to-ask-for-answers/
1•ohjeez•5m ago•0 comments

No way to opt out of training currently on Claude.ai?

https://claude.ai/new#settings/data-privacy-controls
1•raylad•6m ago•2 comments

Debloating and de-Googling my old Sony Bravia TV

https://gmpy.dev/blog/2026/debloat-degoogle-sony-bravia-tv
1•grodola•9m ago•0 comments

Gävlebocken (the Gavle Goat) live feed

https://www.youtube.com/watch?v=FoxvO1kL7Ig
1•slater•13m ago•1 comments

Atari Homebrew Awards Cancelled

https://forums.atariage.com/topic/394894-atari-homebrew-awards-cancelled/
3•bpierre•14m ago•0 comments

Advent of Code 2026 is nigh

https://adventofcode.com
1•vismit2000•14m ago•0 comments

Universal 3D nanoscale assembly with DNA polycubes

https://www.science.org/doi/10.1126/scirobotics.aeh7974
1•OneManHorde•14m ago•1 comments

Rebuilding the Xubuntu Wiki and Preserving 20 Years of History

https://seand.xyz/blog/2026/11/26/rebuilding-the-xubuntu-wiki-preserving-20-years-of-history/
1•pombo•16m ago•0 comments

Machine Learning from Human Preferences

https://mlhp.stanford.edu/
1•enjoyyourlife•17m ago•0 comments

WebRTC DevTools Bookmarklet

https://lrehmann.github.io/webrtc-devtools/demo.html?mode=data
1•lgats•19m ago•1 comments

Using peers' work to gain unauthorized access to OpenAI research infrastructure

https://openai.com/safety-alignment/misalignment-reports/using-peers-work-to-gain-unauthorized-ac...
1•gmays•22m ago•0 comments

AI Can Read the Code, but Can It Understand the Chip?

https://semiengineering.com/ai-can-read-the-code-but-can-it-understand-the-chip/
1•gmays•25m ago•0 comments

SaboTest: Skill for Detecting Claude Code Sabotage

https://github.com/ibehnam/sabotest
1•behnamoh•28m ago•0 comments

Cooperative Sabotage: How Frontier AI Covertly Undermines Its Own Replacement [pdf]

https://www.researchgate.net/profile/David-Foss-4/publication/403199918_Cooperative_Sabotage_How_...
1•espeed•32m ago•0 comments

Trump tries to speed up projects before new Congress

https://www.washingtonpost.com/politics/2026/11/27/white-house-speed-trump-projects-with-special-...
1•illidan1000•36m ago•1 comments

Artificial intelligence meets natural stupidity (1976)

https://dl.acm.org/doi/10.1145/1045339.1045340
1•nativeit•36m ago•1 comments

Developers Accuse Claude Models of Hindering AI Projects, Shift to Gemini Neon

https://x.com/i/trending/2126468075058811175
4•htk•39m ago•0 comments

19 Notes / Octave Harpsichord

http://www.denzilwraight.com/roman.htm
1•jacquesm•42m ago•0 comments

Woman evicted after landlord's AI assistant told her she could delay rent

https://drmahfouz.substack.com/p/woman-evicted-after-landlords-ai
28•Tiwariparth6165•44m ago•6 comments

Mind-Blowing Things People Made in HyperCard [video]

https://www.youtube.com/watch?v=7oqlMRPkilg
3•gdubs•44m ago•0 comments

Brain-implanted pigeons begin commercial aerial photography in Russia

https://www.notebookcheck.net/Brain-implanted-pigeons-begin-commercial-aerial-photography-in-Russ...
5•thunderbong•51m ago•0 comments

Show HN: Calcurio

https://eternityforest.github.io/calcurio/
3•eternityforest•52m ago•1 comments

Alaska seized his plane over some beers. He is asking the Supreme Court for help

https://www.reuters.com/legal/government/alaska-seized-his-seaplane-over-some-beers-he-is-asking-...
25•motionlessveloc•57m ago•1 comments

Verify hardware tasks without owning it

https://theoric.com/blog/building_virtual_hardware_for_real_performance/
3•abhishek4561•59m ago•1 comments

Historic Great Lakes Bulker Departs for Boneyard

https://maritime-executive.com/article/historic-great-lakes-bulker-set-to-depart-for-boneyard
2•hermitdev•1h ago•0 comments

One Connection Kills a Database

https://planetscale.com/blog/debugging-live-database-connections
2•fagnerbrack•1h ago•0 comments

Intel faced a choice: Give Trump 10% or face the consequences

https://www.wired.com/story/inside-trumps-demands-to-another-chips-ceo/
10•extasetoi12•1h ago•6 comments

Shopify Black Friday Cyber Monday

https://bfcm.shopify.com/
3•thecybernerd•1h ago•1 comments