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: Disband – a stem separator with an API, down to the drum kit

https://disband.io/
1•f1nniboy•2m ago•0 comments

Trump admin loses fight to spy on random journalists' LinkedIn DMs

https://arstechnica.com/tech-policy/2026/11/trump-admin-loses-fight-to-spy-on-random-journalists-...
2•pseudolus•3m ago•0 comments

Ask HN: Any money in verification of company calling?

1•a_lifters_life•3m ago•0 comments

I built an AI agent and the cloud it runs on. Alone

https://ianberdin.com/
1•ianberdin•3m ago•0 comments

Just Don't Say "Just"

https://nickbusey.com/article/2026-11-11-just-dont-say-just/
1•NickBusey•4m ago•0 comments

Emacs in the Age of Magic

https://commandlinesystems.com/magic.txt
1•ggcr•5m ago•0 comments

Wysiwyg Editors Are Too Expensive, So I Built My Own

https://ilikekillnerds.com/2026/10/31/wysiwyg-editors-are-too-expensive-so-i-built-my-own/
1•speckx•6m ago•0 comments

Why putting a giant mirror in space could be a bad idea

https://www.skyatnightmagazine.com/news/reflect-orbital-giant-mirror-in-space
1•latexr•7m ago•0 comments

Axiomitisation of Scienctific Notations for Programming Languages

https://sm2n.ca/articles/typeclasses-vs-modules/
1•efren6•7m ago•0 comments

Huawei releases MACaQ, its internal quantizer for local inference

https://github.com/huawei-csl/MACaQ
3•thefox96•7m ago•0 comments

I Am Dr. Jekyll and Mr. Hyde about AI

https://chollinger.com/blog/2026/11/i-am-dr-jekyll-and-mr-hyde-about-ai/
1•otter-in-a-suit•8m ago•0 comments

Show HN: A screen recording CLI for your coding agent (Mac)

https://github.com/notoriousbfg/reel-cli
1•trwhite•9m ago•0 comments

The Feasibility of a Hardwired Pause of Frontier AI Training

https://hardwired-pause.ai/
1•merksittich•10m ago•0 comments

Cut the Onions

https://kinocow.com/cut-the-onions
1•syliconadder•10m ago•0 comments

"Wikihistory" by Desmond Warzel

https://www.abyssapexzine.com/wikihistory/
1•Eridanus2•12m ago•0 comments

The crisis of universal search and the return to environments of knowledge

https://medium.com/@smoking2man/the-crisis-of-universal-search-and-the-return-to-specialized-envi...
1•Aldus551•14m ago•0 comments

Call of the wild angler/fishing binary hack using LLM

https://github.com/cryptoapebot/callofthewildanger-diamond
1•gbolcer•15m ago•1 comments

I built a dice football game solo with an AI coding assistant

https://apps.apple.com/us/app/hex-soccer-dice-football/id6830311319
1•cgninan•17m ago•0 comments

Thermal Grizzly PhaseSheet PTM Pro Review (Igor's Lab)

https://www.igorslab.de/en/thermal-grizzly-phasesheet-ptm-pro-review/
1•d3Xt3r•18m ago•0 comments

Show HN: ChessKeep – browse grandmaster chess games

https://chesskeep.app/
1•fisher-brett•19m ago•0 comments

Some retailers try blocking agentic AI shoppers

https://www.marketplace.org/story/2026/11/10/some-retailers-try-blocking-agentic-ai-shoppers
2•mooreds•19m ago•0 comments

Impact of Expired Google PageRank Patent on Search Results

https://deepsystemstuff.com/patent-for-pagerank-algorithm-who-made-google-search-what-it-is-today...
3•birdculture•19m ago•0 comments

An open specification for agentic AI security evaluation and testing, from Cisco

https://github.com/CiscoDevNet/foundry-security-spec
1•jamilbk•19m ago•0 comments

Apache Kafka, rewritten in Brainfuck. fast. Memory safe. Diskless

https://github.com/rmoff/kafuck/
3•mooreds•20m ago•0 comments

Shared Signals Framework Receiver Framework

https://easyssf.org/
1•mooreds•20m ago•0 comments

Pottery experiments 11,000 years ago: fired clay fragments from Cemka Hoyuk

https://phys.org/news/2026-11-year-clay-fragments-reveal-early.html
1•titusblair•21m ago•0 comments

Gravitational waves can reveal new worlds

https://science.nasa.gov/missions/lisa/gravitational-waves-can-reveal-new-worlds/
1•titusblair•21m ago•0 comments

Mod_HTTP2: Heap Corruption and RCE in Assign_headers

https://www.cve.org/CVERecord?id=CVE-2026-119618
3•linsomniac•21m ago•0 comments

How to read codes from (many) IR remote controls with as little code as possible

https://bitbanksoftware.blogspot.com/2026/11/how-to-read-codes-from-many-ir-remote.html
2•speckx•22m ago•0 comments

Going Out on a Limb: Joha

https://www.jewishideas.org/article/going-out-limb-joha
1•marysminefnuf•22m ago•0 comments