frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•7mo 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•7mo 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•7mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•7mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Television Sold the Panama Invasion – Fair (1990)

https://fair.org/extra/how-television-sold-the-panama-invasion/
1•abdelhousni•3m ago•0 comments

KDE Plasma will no longer sleep when your controller is plugged in

https://www.neowin.net/news/good-news-for-gamers-kde-plasma-will-no-longer-sleep-when-your-contro...
2•bundie•14m ago•0 comments

Show HN: Open-source alternative to Cloudflare's Sandbox SDK

https://github.com/system32-ai/sandboxed
1•debarshri•14m ago•1 comments

The Vietnam War: The Press on the Front Lines

https://www.heinzhistorycenter.org/blog/collection-spotlight-vietnam-war-press-on-the-front-lines/
6•georgecmu•21m ago•0 comments

Venezuelan VP: US attack capturing Maduro has 'Zionist overtones'

https://www.jpost.com/diaspora/antisemitism/article-882181
4•pinewurst•21m ago•0 comments

Ask HN: Reading list for being a better engineer?

2•drekipus•23m ago•0 comments

GhostBSD Comes Up with Gershwin, a New Desktop Environment with OS X Like Looks (2025)

https://itsfoss.com/news/ghostbsd-launches-gershwin/
2•alhazrod•24m ago•0 comments

Optimizing Ray Tracing in Haskell (2020)

https://medium.com/@s.nawaz/optimizing-ray-tracing-in-haskell-3dc412fff20a
2•PaulHoule•28m ago•0 comments

Developing a BLAS Library for the AMD AI Engine [pdf]

https://uni.tlaan.nl/thesis/msc_thesis_tristan_laan_aieblas.pdf
3•teleforce•29m ago•0 comments

Prompts Are Engineering Artifacts

https://feipeng.substack.com/p/prompts-are-engineering-artifacts
2•roman10•31m ago•0 comments

Show HN: Why Seamless AI Is a Gaslighting Apparatus

https://github.com/daiki-kadowaki/judgment-transparency-principle
2•daikikadowaki•34m ago•1 comments

MyTorch – Minimalist autograd in 450 lines of Python

https://github.com/obround/mytorch
3•iguana2000•34m ago•0 comments

The Great Gatsby is the most misunderstood novel

https://www.bbc.com/culture/article/20210209-the-worlds-most-misunderstood-novel
3•1659447091•41m ago•1 comments

Show HN: OpenGrad – Self-directed, AI-facilitated graduate programs

https://realadeel.github.io/opengrad/
2•proletarian•45m ago•0 comments

Induction-Based Compass

https://www.youtube.com/watch?v=eiDhbZ8-BZI
3•skogstokig•53m ago•0 comments

SQLNet A social network that looks like Twitter but you write SQL to do anything

https://sqlnet.cc
3•colinbartlett•53m ago•0 comments

Arb – schema-driven CLI generation (Rust example with nested subcommands)

https://github.com/abstractrenderblocks/arb
2•arbopa•58m ago•1 comments

Ask HN: Why Can't We Make Approved Building Plans Reusable?

3•silexia•1h ago•1 comments

Turn your favorite Substack into a printed "newspaper"

https://rawandferal.substack.com/p/substack-print
4•danielleegan•1h ago•1 comments

How the bubble bursts – This time isn't different

https://www.ft.com/content/7987310a-5c90-4976-b730-3559502006e2
6•zerosizedweasle•1h ago•1 comments

The red flags investors should look for in private lending

https://www.ft.com/content/d6b2a25f-7a0d-4f31-96d8-3a0e184af27e
2•zerosizedweasle•1h ago•0 comments

Show HN: Comet MCP – Give Claude Code a browser that can click

https://github.com/hanzili/comet-mcp
4•hanzili•1h ago•0 comments

Interview with Petro Tyschtschenko: Through the Eyes of a Legend

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

Corroded: Illegal Rust

https://github.com/buyukakyuz/corroded
2•csmantle•1h ago•0 comments

Show HN: Shardium – open-source "Dead Man's Switch" for crypto inheritance

https://www.shardium.xyz/
1•maxcomperatore•1h ago•0 comments

Minikv: A little KV store implementation in OCaml to practice DB systems things

https://github.com/alpha-convert/minikv
1•eatonphil•1h ago•0 comments

CSV on the Web

https://csvw.org/
3•cxr•1h ago•0 comments

And This Was My Christmas and New Year Break

https://auteursoftware.substack.com/p/and-this-was-my-christmas-and-new
3•eyeplum•1h ago•0 comments

Product quality improvement and US manufacturing productivity

https://www.nber.org/digest/202512/product-quality-improvement-and-us-manufacturing-productivity
3•hhs•1h ago•0 comments

KDE onboarding is good now

https://rabbitictranslator.com/kde-onboarding/
3•todsacerdoti•1h ago•0 comments