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.

Teams Make Contact with Spacecraft Set to Boost NASA's Swift Science

https://science.nasa.gov/blogs/swift/2026/07/03/teams-make-contact-with-spacecraft-set-to-boost-n...
1•rbanffy•3m ago•0 comments

Freedom Feud: A Free Software Rap Anthem (2017) [video]

https://www.youtube.com/watch?v=fffQjrTCkLI
1•svt1234•3m ago•0 comments

The pandemic of incomplete OpenSSL error handling

https://blog.jak-linux.org/2026/07/03/openssl-pandemic/
2•teddyh•5m ago•0 comments

Show HN: Groot – Kubernetes incident evidence in one .tar.gz

https://github.com/hrodrig/groot/releases/tag/v1.0.0
1•hejeroaz•10m ago•0 comments

Fly for Less

https://erranta.com/
2•vasie•12m ago•0 comments

Show HN: Rethinking Anti-Cheat: Can Trust Be Distributed?

https://medium.com/@www.ahadprogamer/rethinking-anti-cheat-can-trust-be-distributed-b37a353ec84b
1•Ahadprogamer•19m ago•0 comments

The Asymmetric Future of AI in Cybersecurity

https://mstrada.me/posts/aicybersec
2•mstrada•23m ago•0 comments

P2P out the box alternative to Ngrok/Cloudflare using Iroh

https://www.npmjs.com/package/p2p-tunnel
1•objectwizard•24m ago•0 comments

Lead Mines of Galena, Kansas

https://dustbowlhighway.com/kansas/lead-mines/
1•saltdoo•27m ago•0 comments

Show HN: I built a tool to audit error density and modern PC optimization

https://flash-auditory-1-0.trcstudiosflashaudit.workers.dev/
1•Thdrough47•28m ago•0 comments

Create your own AI, then watch it battle others in your browser

https://kim-ai-gpu.github.io/2026/07/04/introducing-agenlus-browser-rl/
1•umjunsik132•31m ago•0 comments

Six Months with Claude Code

https://sajith.me/blog/2026/six_months_with_claude_code.html
1•sajithdilshan•38m ago•0 comments

Two channels for the top–antitop excess

https://cerncourier.com/two-channels-for-the-top-antitop-excess/
1•visha1v•39m ago•1 comments

Illuminating Iron Clusters' Magnetism

https://physics.aps.org/articles/v19/s92
1•visha1v•40m ago•1 comments

Explanation of everything you can see in htop/top on Linux

https://peteris.rocks/blog/htop/
2•theanonymousone•41m ago•0 comments

TabFM: Zero-shot tabular foundation model from Google Research

https://huggingface.co/google/tabfm-1.0.0-pytorch
1•theanonymousone•42m ago•0 comments

The Common Lisp Cookbook – LispWorks Review

https://lispcookbook.github.io/cl-cookbook/lispworks.html
2•AlexeyBrin•44m ago•0 comments

The Most Iconic American Artwork Is the Hardest to See

https://www.nytimes.com/interactive/2026/07/02/arts/design/statue-of-liberty-history-france-us.html
1•jsenn•44m ago•0 comments

Show HN: Sandbox-proxy – A forward proxy that injects credentials to sandboxes

https://github.com/yagop/sandbox
2•yagop•45m ago•0 comments

Why AI Will Never Achieve Consciousness

https://roburie.substack.com/p/why-ai-doesnt-think-cannot-reason
1•megamike•46m ago•1 comments

Chip Industry Urges US to Avoid Moves That Distort Memory Market

https://www.bloomberg.com/news/articles/2026-07-02/chip-industry-urges-us-to-avoid-moves-that-dis...
1•giuliomagnifico•47m ago•0 comments

Show HN: Tokdash – a local dashboard for AI token and quota tracking

https://github.com/JingbiaoMei/Tokdash
1•howardme1•49m ago•0 comments

Organization as a Graph [video]

https://www.wearedevelopers.com/en/videos/2051/your-organization-as-a-graph
1•dunyakirkali•50m ago•0 comments

Critical Evidence from Early Evolution of House Dust Mites [pdf]

https://academic.oup.com/sysbio/article-abstract/62/3/411/1652447?redirectedFrom=fulltext
1•thunderbong•51m ago•0 comments

It's not me, it's the compiler

https://parsa.wtf/cast/
3•jonathandeamer•51m ago•0 comments

Olive – Lisp VSCode Extension (Alternative to Alive)

https://github.com/kchanqvq/olive
1•AlexeyBrin•56m ago•0 comments

Meta's Inevitable Cloud

https://spyglass.org/meta-cloud/
1•RickJWagner•57m ago•0 comments

Notes for June 28 – July 4

https://taoofmac.com/space/notes/2026/07/04/1230
1•rcarmo•1h ago•0 comments

It's Hard to Eval Is a Product Smell

https://hamel.dev/blog/posts/eval-smell/
2•_pdp_•1h ago•1 comments

"How do you plan to dismantle the servers of your rival AIs?" [video]

https://www.youtube.com/watch?v=aicfLYrRuUw
1•deadprogram•1h ago•0 comments