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: FBSimCity – an explorable city that shows how Firebird works

https://mariuz.github.io/FBSimCity/
1•mariuz•1m ago•0 comments

Introducing: Control Drift – An Open-Source Gap Analysis Platform

https://www.controldrift.org/
1•tommyatkin•1m ago•0 comments

PRoctr – doctor/triage for your renovate/dependabot PRs

https://github.com/mxmehl/proctr
1•mxmehl•3m ago•1 comments

Show HN: Scalix World – AI native Neo cloud

https://scalix.world/
1•kiran-ravi•5m ago•0 comments

Show HN: Noticky – A local MCP server for sticky notes on macOS

https://www.noticky.app/en/sticky-notes-mcp
1•leotryhard•6m ago•1 comments

Why Is Everyone Trying to Build a Solid-State Battery?

https://www.construction-physics.com/p/why-is-everyone-trying-to-build-a
1•crescit_eundo•9m ago•0 comments

OpenJDK Interim Policy on Generative AI

https://openjdk.org/legal/ai
3•blenderob•11m ago•0 comments

Offside Chess: Playable variant inspired by Xkcd 3268

https://offside-chess.pages.dev/
1•dedekindcut•11m ago•1 comments

AGI Singer: The Song of AGI Constitution Chapter 2 – The Path Must Remain

https://medium.com/@miho999lv/agi-singer-the-song-of-agi-constitution-chapter-2-the-path-must-rem...
1•miho999lv•12m ago•0 comments

Stretchie

https://stretchie.net/about/
1•almostdeadguy•15m ago•0 comments

Digging Up the Past: Windows Registry Forensics Revisited (2019)

https://cloud.google.com/blog/topics/threat-intelligence/digging-up-the-past-windows-registry-for...
1•ankitg12•18m ago•0 comments

Show HN: Memsprout – share AI context with your teammates

https://memsprout.com/docs
1•mat10112•18m ago•0 comments

Infomaniak announces its planned listing on the Swiss stock exchange

https://news.infomaniak.com/en/infomaniak-announces-its-planned-listing-on-the-swiss-stock-exchange/
2•sp8•21m ago•0 comments

Show HN: Abendrot – The free and open-source macOS app for your circadian rhythm

https://github.com/matthewrball/abendrot
2•balldelegance•22m ago•0 comments

Is Samsung Pioneering Mass Adoption of USDC?

https://irishtechnews.ie/is-samsung-pioneering-mass-adoption-of-usdc/
1•belkin1•23m ago•0 comments

Guide: How to Use Libgpiod with C

https://fiosproject.de/posts/libgpiod/
1•ls-root•25m ago•0 comments

Why Don't People Use Formal Methods?

https://www.hillelwayne.com/post/why-dont-people-use-formal-methods/
2•Thom2503•26m ago•0 comments

Register deprivation: spills and runtime under forced register scarcity

https://rjp.io/blog/2026-07-19-register-deprivation
1•surprisetalk•27m ago•0 comments

Show HN: Edgemetry – self-hosted web analytics on Cloudflare's free tier

https://github.com/hayaran/edgemetry
2•theone•27m ago•0 comments

Building secure Uniswap v4 hooks

https://blog.trailofbits.com/2026/07/30/building-secure-uniswap-v4-hooks/
2•ErenayDev•29m ago•0 comments

Israel defender Bret Stephens calls out 'Jewish terrorists' in West Bank

https://www.timesofisrael.com/stalwart-israel-defender-bret-stephens-calls-out-jewish-terrorists-...
1•tcp_handshaker•31m ago•0 comments

Superrationality

https://en.wikipedia.org/wiki/Superrationality
1•kibwen•31m ago•0 comments

US FCC approves giant space mirror to deliver 'sunlight on demand'

https://www.cbc.ca/news/science/reflect-orbital-approval-fcc-9.7287535
2•throw0101d•32m ago•1 comments

Is open-weight AI banned yet?

https://isopenweightaibannedyet.com/
4•imtany•32m ago•1 comments

Why every Wikimedian should be a toolmaker

https://www.haykranen.nl/2026/07/30/wikimania-2026-every-wikimedian-toolmaker/
1•janvdberg•33m ago•0 comments

Show HN: A browser extension that flags GitHub repos with suspicious star growth

https://ayoublidjici-dotcom.github.io/repo-reality-check/
3•KageFX•33m ago•0 comments

How Old Is Ann?

https://quuxplusone.github.io/blog/2026/07/29/how-old-is-ann/
1•ibobev•33m ago•0 comments

Wallpets: Expressive animal companions that live in your Mac wallpaper

https://wall-pets.com/
1•mihau•33m ago•0 comments

What it means for an API to be RESTful

https://en.andros.dev/blog/9761fd2e/what-it-means-for-an-api-to-be-restful/
1•ibobev•34m ago•0 comments

CosmosEscape: Taking over Every Database in Azure Cosmos DB

https://www.wiz.io/blog/cosmosescape-taking-over-every-database-in-azure-cosmos-db
3•uvuv•34m ago•1 comments