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: Oidc-SSH-ca – Issues short-lived SSH certs for GitHub Actions via OIDC

https://github.com/atsuoishimoto/oidc-ssh-ca
1•atsuoishimoto•1m ago•0 comments

Why the Serializable Closures Kill Switch in Maravel-Framework 20?

https://marius-ciclistu.medium.com/hardening-maravel-framework-20rc-why-the-serializable-closures...
1•marius-ciclistu•2m ago•0 comments

Smarter Robot Emotions from Vision Language Models

https://spectrum.ieee.org/robot-emotions-visual-language-models
1•rbanffy•5m ago•0 comments

Richard Halsey Best – the man who sank two Japanese aircraft carriers in one day

https://en.wikipedia.org/wiki/Richard_Halsey_Best
1•lifeisstillgood•8m ago•0 comments

America's grid is reeling. GM offers itself as a distributed utility in disguise

https://fortune.com/2026/06/09/general-motors-utility-in-disguise-sodium-ion-batteries/
1•breve•9m ago•0 comments

It Is Beginning: AI Improves Itself (auth: Sabine Hossenfelder) (+abridgement)

https://www.youtube.com/watch?v=QADKN3hantI
1•mdp2021•11m ago•1 comments

Repo-Slopscore: Detecting AI Contributions in Git Repositories via Commit

https://slopscan.ava.pet/
1•birdculture•15m ago•1 comments

Scientists Tracked Down the Echo of Creatio

https://www.youtube.com/watch?v=CVl5XkAeN2I
1•Asheed•18m ago•0 comments

Questions to ask at the end of a technical interview (2017)

https://smalldata.tech/blog/2017/03/27/questions-to-ask-at-the-end-of-a-technical-interview
2•downbad_•22m ago•0 comments

Slim Tide

https://finance.yahoo.com/sectors/healthcare/articles/slim-tide-capsules-urgent-report-194400961....
1•SlimTide•27m ago•0 comments

The Same-Fringe Problem

https://www.nsl.com/papers/samefringe.htm
1•tosh•32m ago•0 comments

Show HN: Switcheroo-control-rs, a Linux hybrid graphics manager in Rust

https://github.com/LuMarans30/switcheroo-control-rs
1•LuMarans30•35m ago•0 comments

GMass CEO Ajay Goel grew to $8.6M revenue and 200K customers in 2024

https://getlatka.com/companies/gmass
1•mmarian•37m ago•0 comments

Conquering Recursion

https://nsl.com/misc/Conquering_Recursion.html
1•tosh•39m ago•0 comments

ExpensePal - AI expense tracker & budget planner

https://play.google.com/store/apps/details?id=com.expenseiq.app&hl=en_US
1•sandeepannandi•39m ago•1 comments

Paint it blue: Attacking the Bluetooth stack (2025)

https://www.synacktiv.com/en/publications/paint-it-blue-attacking-the-bluetooth-stack
1•D4Ha•42m ago•0 comments

An unofficial solution to a obvious wayfinding problem

https://highcapacityhayden.substack.com/p/the-djerring-trail-disappears-at
1•Nition•43m ago•0 comments

Show HN: Chess in SQL

https://swingbit.github.io/quackmate/
2•swingbit•45m ago•0 comments

I mined 224 transcripts to salvage a model too good to be legal

https://johnkueh.com/articles/borrowed-intelligence
1•johnkueh•45m ago•0 comments

Buying Britain: overseas buyers pile into UK companies

https://www.ft.com/content/2b475640-0ea6-4c25-8511-116eca6b78c5
1•mmarian•46m ago•1 comments

White House's export limits on Anthropic linked to concerns about Chinese access

https://www.semafor.com/article/06/13/2026/white-house-move-to-limit-anthropic-linked-to-concerns...
2•dsr12•53m ago•1 comments

The Jailbreak That Got Fable 5 Pulled Exists in Every Model

https://eigenwise.io/writing/the-jailbreak-in-every-model
2•KennyVan•54m ago•1 comments

Have we made a unicorn? Continuous SVG-pelican style benchmark

https://havewemadeaunicorn.com/
1•curioussquirrel•56m ago•1 comments

Naismith's Rule

https://en.wikipedia.org/wiki/Naismith%27s_rule
3•samuel2•58m ago•0 comments

Surpassing Frontier Performance with Fusion

https://openrouter.ai/blog/announcements/fusion-beats-frontier/
2•jcfrei•59m ago•1 comments

Demystifying phone unlocking tools: A technical overview – Osservatorio Nessuno

https://osservatorionessuno.org/blog/2026/05/demystifying-phone-unlocking-tools-a-technical-overv...
1•Cider9986•59m ago•0 comments

The Machine Stops (1909)

https://en.wikipedia.org/wiki/The_Machine_Stops
1•tosh•1h ago•0 comments

Telegram filter bot and Bluesky poster

https://github.com/bananaosint/bsky-poster
1•bananaosint•1h ago•0 comments

Show HN: Sabela – A Reactive Notebook for Haskell

https://sabela.datahaskell.com/
2•mchav•1h ago•0 comments

AI Slop flooding maths YouTube [video]

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