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.

Iran Is Rewiring Its Proxy Network

https://www.nationalreview.com/2026/08/iran-is-rewiring-its-proxy-network/
1•petethomas•2m ago•0 comments

Ancient Roman shipwreck discovered off Sicily coast

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

Linus Torvalds Explains What Makes Linux So Fast [video]

https://www.youtube.com/watch?v=-xbzGngfQEw
1•binyu•8m ago•0 comments

Beyond Prompt Injection: Hacking Apple's Private Cloud Compute

https://blog.sentry.security/beyond-prompt-injection-hacking-apples-private-cloud-compute/
1•sickmate•14m ago•0 comments

GitHub issues as long-term memory for coding agents

https://meshintelligence.substack.com/p/how-to-use-github-as-long-term-memory
1•meshintel•15m ago•0 comments

Bank statement PDF to CSV that runs in the browser

https://statement-to-csv.pages.dev/
1•hewkaiba•18m ago•0 comments

NOVC: Venture Capital Free

https://novc.fyi/
1•xyzzy_plugh•22m ago•0 comments

.NET on AWS Open Source Software Fund

https://github.com/aws/dotnet-foss
1•kristianp•23m ago•0 comments

2036

https://www.codevoid.net/ruminations/2026/08/09/2036.html
1•grork•24m ago•0 comments

The Ambition Project

https://www.betonit.ai/p/the-ambition-project
2•herbertl•26m ago•0 comments

Modern JavaScript Tricks for Cleaner Everyday Code

https://jsdevspace.substack.com/p/20-modern-javascript-tricks-for-cleaner
1•javatuts•28m ago•0 comments

A browser that generates every website from scratch

https://www.xda-developers.com/tried-browser-generates-every-website-from-scratch/
1•TMWNN•29m ago•1 comments

NASA chooses a once-abandoned Spanish village to broadcast the 2026 eclipse

https://www.euronews.com/next/2026/08/07/why-nasa-chooses-this-small-burgos-village-to-broadcast-...
1•jmox•31m ago•0 comments

QuiltOps – Continuous packaging for your patches

https://quiltops.dev/
1•calvinmorrison•32m ago•0 comments

I made FilmShelves, a movie collection management tool

https://filmshelves.com
1•smatthewaf•33m ago•0 comments

vLLM Serving Experiments on H100s – config beats the baseline on p95 TTFT,ITL

https://efficientagent.substack.com/p/a-better-knob-beats-more-silicon
1•bnayak25•35m ago•0 comments

Show HN: A Planet and Geology Simulation Sandbox Game in Godot

https://stevecastle.github.io/gaia-site/
1•tracerbulletx•35m ago•0 comments

Meme factories: Indonesians trade political outrage clicks for Facebook cash

https://www.theguardian.com/media/2026/aug/10/indonesia-clicks-for-cash-facebook-one-nation-us-po...
1•Barbing•39m ago•1 comments

Anything Could Become a Battleground

https://lareviewofbooks.org/article/perfect-moment-god-sex-art-culture-wars-butler/
1•lermontov•40m ago•0 comments

How Beauty Is Making Scientists Rethink Evolution

https://www.nytimes.com/2019/01/09/magazine/beauty-evolution-animal.html
1•geneticdrifts•41m ago•0 comments

Yahtzee – Ballpark Figures

https://ballparkfigures.substack.com/p/yahtzee
1•cptroot•41m ago•1 comments

Claude.md, except it's meaningful and it works

https://blog.greg.technology/2026/07/29/claude-md-except-its-meaningful-and-it-actually-works.html
2•gregsadetsky•42m ago•1 comments

Over 20k precolonial earthworks in the Southwest Amazonia

https://www.nature.com/articles/s41586-026-10835-7
1•walterbell•46m ago•0 comments

A Brief History of the U.S. Trying to Add Backdoors into Encrypted Data (2016)

https://www.atlasobscura.com/articles/a-brief-history-of-the-nsa-attempting-to-insert-backdoors-i...
2•downbad_•47m ago•0 comments

What if we let AI govern us?

https://inevolin.substack.com/p/what-if-we-let-ai-govern-us
2•iljanevo•47m ago•3 comments

Would anyone use a GummySearch alternative that searched ALL forums?

1•TylerKane•47m ago•0 comments

Streambed ships compaction using SQLite for CAS

http://streambed.dev/blog/introducing-compaction/
1•vira28•51m ago•0 comments

Show HN: Open-source local memory vault

https://github.com/Rafaelpta/litepipe
1•rafaepta•52m ago•0 comments

Life on the Uncanny Precipice

https://nsaphra.net/post/uncanny/
1•thoughtpeddler•53m ago•0 comments

The mathematical beauty of hyperbezier curves

https://linebender.org/blog/hyperbezier/
2•raphlinus•53m ago•0 comments