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.

Schism Tracker

https://schismtracker.org/
2•Bluestein•2m ago•0 comments

Show HN: The Data Forge – Generate up to 100K rows of JSON/CSV/SQL test data

https://zlvox.com/tools/data-forge
1•zlvox•3m ago•0 comments

Show HN: BuzzRadr – an MCP server for AI trend signals, no API key

1•productikit2046•6m ago•0 comments

Show HN: Customhouse – deterministic MCP proxy that blocks agent exfiltration

https://github.com/vineetpant/customhouse
1•vineetpant•8m ago•0 comments

SSOG: Near linear Visual-Attention that doesn't score but steers

https://www.pisoni.ai/posts/ssog/
1•4rtemi5•9m ago•2 comments

Bubblewrap is the only sandbox you need

https://lorentz.app/blog-item.html?id=bubblewrap
1•baalimago•10m ago•0 comments

Bay Area House Party

https://www.astralcodexten.com/p/the-foothills-of-bay-area-house-party
1•sgt101•12m ago•0 comments

Why travellers are obsessed with foreign supermarkets

https://www.bbc.com/travel/article/20260811-the-supermarket-is-becoming-a-tourist-attraction
1•edward•14m ago•0 comments

The Economist Who Predicted 2008 Crash Says AI Bubble Bursts Soon – Steve Keen [video]

https://www.youtube.com/watch?v=nx5FiWfD5U4
1•SockThief•16m ago•2 comments

Public preview runtimes on AWS Lambda: Node.js 26 and Python 3.15

https://aws.amazon.com/blogs/compute/introducing-public-preview-runtimes-on-aws-lambda-starting-w...
1•lumpa•17m ago•0 comments

What Is Reinforcement Learning

https://www.mathworks.com/discovery/reinforcement-learning.html
1•teleforce•21m ago•0 comments

Is Software Still the Point?

https://janbosch.com/field-notes-is-software-still-the-point/
2•ftomassetti•21m ago•0 comments

Beau­tiful Racket: Intro­duc­tion to language-oriented program­ming using Racket

https://beautifulracket.com/
1•signa11•25m ago•0 comments

Ask HN: Where to learn software engineering fundamentals?

1•mstank•25m ago•0 comments

US Navy 3D prints combat-ready drones and parts aboard during exercise

https://www.tomshardware.com/tech-industry/drones/flight-ready-drones-3d-printed-and-built-on-air...
1•giuliomagnifico•25m ago•0 comments

Show HN: Online FPS Test

https://fpstest.co/
2•artiomyak•26m ago•0 comments

The Two Factions of C++

https://herecomesthemoon.net/2024/11/two-factions-of-cpp/
1•signa11•27m ago•0 comments

App to detect and report potholes in Bengaluru

https://twitter.com/VaibhavSisinty/status/2088702363867742365
1•rohitpaulk•28m ago•0 comments

Show HN: RNet – AI token service provider

2•nextma•28m ago•0 comments

Remaking Party House

https://herecomesthemoon.net/2026/08/remaking-party-house/
1•signa11•29m ago•0 comments

Narrate Complete Books Using Qwen3 TTS, Natural Sounding

https://github.com/drmhse/tts-rs
1•drmhse•32m ago•0 comments

White House authorizes private companies to launch hack-back cyberattacks

https://www.tomshardware.com/tech-industry/cyber-security/white-house-authorizes-private-companie...
1•sbulaev•33m ago•0 comments

Science at LLM Speed

https://christophermeiklejohn.com/series/the-machine-in-the-lab/science-at-llm-speed/
1•jruohonen•33m ago•1 comments

Claude Opus 5: context window, and API changes

https://medium.com/@CometAPI_/claude-opus-5-surprised-me-detailed-explanation-of-its-performance-...
1•WavyPeng•34m ago•0 comments

AI Debt Failure Will Prompt Another Wave of Fed Bailouts [pdf]

https://www.myrmikan.com/pub/Myrmikan_Research_2026_08_14.pdf
1•eodafbaloo•36m ago•0 comments

Is a molecular-scale semiconductor hiding inside metagenomic databases?

https://medium.com/@kisnorbert87/is-a-molecular-scale-semiconductor-hiding-inside-metagenomic-dat...
2•kisnorbert•36m ago•0 comments

Show HN: Harbor – A lightweight ATS and CRM for independent recruiters

https://findharbor.com
1•tima101•38m ago•0 comments

Plausible Community Edition had an unauthenticated RCE for over a year

https://github.com/plausible/analytics/discussions/6355
1•gregzeng95•40m ago•0 comments

Datafeudalism: The Domination of Modern Societies by Big Tech Companies

https://link.springer.com/article/10.1007/s13347-024-00777-1
1•smartmic•43m ago•0 comments

Kimi likes causal decision theory more after RL in twin prisoner's dilemmas

https://www.lesswrong.com/posts/hfNBEKaStASAYMLiu/kimi-likes-causal-decision-theory-more-after-rl...
1•0xkato•45m ago•0 comments