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

Every time your AI runs, someone else makes money. Not you

https://apcher.dev:443/
1•Samueedwards1•3m ago•0 comments

Can I still find a social platform like early Facebook?

1•01-_-•3m ago•1 comments

Business-as-Code with LittleHorse 1.0

https://github.com/littlehorse-enterprises/littlehorse
7•coltmcnealy•4m ago•2 comments

Human OSS

https://www.human-oss.dev/
1•jensneuse•5m ago•0 comments

Give your AI a codebase map or it will build one the expensive way

https://codeir.dev/index.html
1•tinamnstr•7m ago•0 comments

Formalization of QFT?

https://www.math.columbia.edu/~woit/wordpress/?p=15637
1•jjgreen•8m ago•0 comments

Playable CSS-Only Super Mario Bros Game

https://codepen.io/t_afif/full/JoKYwXO
1•CharlesW•10m ago•0 comments

Both sides of the largest gas field struck – now offline

https://brief.gizmet.dev/issue-009/
2•GIZINT•10m ago•1 comments

UK to examine labelling AI content among wider copyright reforms

https://www.reuters.com/business/media-telecom/uk-examine-labelling-ai-content-among-wider-copyri...
1•chrisjj•11m ago•0 comments

How China is getting everyone on OpenClaw, from gearheads to grandmas

https://www.cnbc.com/2026/03/18/china-openclaw-baidu-tencent-ai.html
1•arbuge•14m ago•0 comments

Ten years late to the dbt party (DuckDB edition)

https://rmoff.net/2026/02/19/ten-years-late-to-the-dbt-party-duckdb-edition/
1•PaulHoule•17m ago•0 comments

The Mirage of Career Inertia in the AI Era: Questions to Ask and Answer Today

https://foggyfuture.substack.com/p/the-mirage-of-career-inertia-in-the
1•el_bhs•19m ago•0 comments

'Ketman' and doublethink: what it costs to comply with tyranny (2017)

https://aeon.co/ideas/ketman-and-doublethink-what-it-costs-to-comply-with-tyranny
2•danielam•19m ago•0 comments

Acquihires, often used by Big Tech, are a 'red flag,' DOJ antitrust head says

https://www.reuters.com/world/acquihires-often-used-by-big-tech-are-red-flag-doj-antitrust-head-s...
4•Anon84•19m ago•0 comments

Pervaziv AI Code Review GitHub Action

https://github.com/marketplace/actions/pervaziv-ai-code-review
1•asmprogrammer5•20m ago•1 comments

'I'm not political': Tim Cook resp to backlash ag. relationship w. Trump admin

https://www.businessinsider.com/tim-cook-response-trump-relationship-criticism-2026-3
6•jacquesm•20m ago•4 comments

FastAPI-compatible Python framework with Zig HTTP core; 7x faster

https://github.com/justrach/turboAPI
1•vaibhav3002•24m ago•1 comments

Coal plant forced to stay open due to emergency order isn't even running

https://arstechnica.com/science/2026/03/coal-plant-forced-to-stay-open-due-to-emergency-order-isn...
1•cratermoon•28m ago•0 comments

Show HN: Prepare for coding interviews via deliberate practice

https://interviewtraner.com/home/
1•trane_project•30m ago•0 comments

What's on HTTP?

https://whatsonhttp.com/
3•elixx•32m ago•0 comments

I built an AI baseball manager that runs all 30 MLB teams

https://deepdugout.com/
1•yesdeleon•37m ago•0 comments

Gea – The fastest compiled UI framework

https://github.com/dashersw/gea
1•arbayi•37m ago•0 comments

A BEAM-native personal autonomous AI agent built on Elixir/OTP

https://github.com/thatsme/AlexClaw
1•ahamez•38m ago•0 comments

iCloud Photo Sharing Sucks – Can AI Help Me Replace It?

https://medium.com/@DougDonohoe/icloud-photo-sharing-sucks-can-ai-help-me-replace-it-3b48fdd1350c
3•dougdonohoe•39m ago•0 comments

An alternative derivation of Shannon entropy

https://iczelia.net/posts/shannon-deriv/
2•purplesyringa•39m ago•0 comments

Rolls-Royce scraps goal to go all-electric by 2030

https://www.theguardian.com/business/2026/mar/18/rolls-royce-scraps-all-electric-car-company
3•bookofjoe•39m ago•0 comments

Stop Building AI "Teams." Start Building Software Factories. – Owen Zanzal

https://medium.com/devops-ai/stop-building-ai-teams-start-building-software-factories-627cef5d09eb
4•JnBrymn•40m ago•1 comments

Make your Linux keyboard act like a 'Tosh

https://github.com/RedBearAK/Toshy
2•conqrr•40m ago•0 comments

Radicle 1.7.0 – Daffodil

https://radicle.xyz/2026/03/18/radicle-1.7.0
2•Tmpod•40m ago•1 comments

IBM completes acquisition of Confluent

https://newsroom.ibm.com/2026-03-17-ibm-completes-acquisition-of-confluent,-making-real-time-data...
2•teleforce•40m ago•0 comments