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: MetaArena – Leaderboard for 5,353 Meta Global AI Hackathon Projects

https://meta-hackathon.com/
1•ohong•1m ago•0 comments

Tell HN: Gemini Hydrogen Reachable via Vertex

1•jcmp•3m ago•0 comments

Online multiplayer and more on an original NES [video]

https://www.youtube.com/watch?v=eGUmaMX9nOs
1•LaserDiscMan•4m ago•0 comments

Show HN: Tmv – File sorting utility written in Bash

https://github.com/SamerKolasevic29/tmv
2•znj29•11m ago•1 comments

FreeSpeech Messenger – Decentralized messaging with your own relay servers

https://github.com/rebisway/freespeech
2•rebisway•14m ago•0 comments

Possible Futures

https://borretti.me/article/possible-futures
2•varjag•16m ago•1 comments

'GTA 6' Pre-Loads Are Slowing Down the Internet, Warns ISP

https://www.forbes.com/sites/paultassi/2026/11/11/gta-6-pre-loads-are-slowing-down-the-internet-w...
3•vismit2000•16m ago•1 comments

Banks turn to credit insurance as they hit limits on lending to AI boom

https://www.ft.com/content/599932b7-a548-4d45-8ba4-70bdb8d14565
2•petethomas•16m ago•0 comments

Uncle Timmy's Public Blog PSF 2024 Bans

https://tim-one.github.io/psf/
3•Bluestein•20m ago•0 comments

1,509 to 6ms: Why Was Sending Feedback So Slow from Sydney?

https://usero.io/blog/why-feedback-was-slow-from-sydney
1•willsmith72•20m ago•1 comments

Show HN: Sparks Dating reply assistant focused on natural conversarion

https://www.yourdatingassistant.com
2•saurav7__•21m ago•1 comments

Computational Thinking Through Modular Sound Synthesis

https://olney.ai/ct-modular-book/index.html
1•CyMonk•23m ago•0 comments

Every email is three emails in a trench coat

https://buttondown.com/blog/plain-text-email
1•maguay•29m ago•0 comments

Open Agentic Web Challenge – Help Build the Open Agentic Web

https://worldwideagenticweb.org/
1•sjdh76•30m ago•0 comments

Unable to start new workspace agent runs

https://status.openai.com
1•planb•36m ago•1 comments

Flash Aloha

https://johnyao93.github.io/flash-aloha/
2•GaggiX•41m ago•0 comments

WFX Phantom: The GitHub Actions Secret Stealer That Deletes Its Tracks

https://www.stepsecurity.io/blog/wfx-phantom-the-github-actions-secret-stealer
1•varunsharma07•42m ago•0 comments

Show HN: TripCoral – Free itinerary and live updates from public flight data

https://www.tripcoral.com/
1•yuav•43m ago•0 comments

Revisiting inferences of trustworthiness from moral judgments

https://www.nature.com/articles/s41598-023-27943-3
1•bryanrasmussen•46m ago•1 comments

Convert PDF to Markdown and JSON

https://github.com/datalab-to/marker
1•saikatsg•47m ago•0 comments

A Family Tree of Software Job Titles

https://zwischenzugs.com/2026/11/03/a-family-tree-of-software-job-titles/
1•slyall•51m ago•1 comments

Tesserae: E-ink dashboard companion. Compose dashboards and push to e-ink panels

https://github.com/dmellok/tesserae
1•thunderbong•52m ago•0 comments

Exploration–Exploitation Dilemma

https://en.wikipedia.org/wiki/Exploration%E2%80%93exploitation_dilemma
1•aragonite•52m ago•2 comments

Ask HN: Still Getting [Dead] Posts

2•_ananos_•58m ago•0 comments

Show HN: Builderoom – find indie-made software by describing what you need

https://www.builderoom.com/en
1•cena576•1h ago•0 comments

Orpheus.el: Emacs Transient Music Player (SSH, MPD, Local, YouTube, etc.)

https://github.com/jjba23/orpheus.el
1•jjba23•1h ago•0 comments

Runwisp: Cron job manager and process supervisor

https://runwisp.com/
1•sts153•1h ago•1 comments

Activae iOS app – turns forgotten screenshots into useful actions

https://apps.apple.com/us/app/activae/id6828392199
1•srsstyle•1h ago•0 comments

Show HN: Indic-Turn-Detector – open-weights end-of-turn model for voice agents

https://huggingface.co/tarun7r/indic-turn-detector
1•tarun7r•1h ago•0 comments

Recursive Functions of Symbolic Expressions and Their Computation by Machine

https://www-formal.stanford.edu/jmc/recursive/recursive.html
3•humility•1h ago•0 comments