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

OpenFlow – Dashboard for Managing Claude Code Sessions with RuFlo

https://github.com/ai-genius-automations/openflow
2•andycodeman•3m ago•0 comments

Poll: What mobile OS do you primarily use?

1•chistev•6m ago•0 comments

You Need Deterministic Gates for Probabilistic AI Agents

https://www.appsoftware.com/blog/you-need-probabilistic-gates-for-deterministic-ai-agents
3•gbro3n•10m ago•1 comments

Watch TK Video Without App

https://watchwithoutapp.org/
1•0xCafeBabee•10m ago•1 comments

The Internet After Search (Matthew Prince from Cloudflare at SXSW) [video]

https://www.youtube.com/watch?v=mQL_97LxAPE
1•gala8y•10m ago•0 comments

Atoms

https://atoms.co/
1•doppp•13m ago•0 comments

Rosetta Map – translating neighborhoods between cities

https://walzr.com/rosetta-map/
1•walz•13m ago•0 comments

A fast, single-file terminal emulator for macOS

https://github.com/LEVOGNE/quickTerminal
1•LEVOGNE•14m ago•0 comments

Identical twins on trial: can DNA testing tell them apart?

https://www.nature.com/articles/d41586-026-00521-z
1•beardyw•16m ago•0 comments

The Appalling Stupidity of Spotify's AI DJ

https://www.charlespetzold.com/blog/2026/02/The-Appalling-Stupidity-of-Spotifys-AI-DJ.html
2•ingve•16m ago•0 comments

A Guide to vim.pack (Neovim built-in plugin manager)

https://echasnovski.com/blog/2026-03-13-a-guide-to-vim-pack
1•birdculture•16m ago•0 comments

Auto-research: The Lab that runs while you sleep

https://adlrocha.substack.com/p/adlrocha-auto-research-the-lab-that
1•adlrocha•17m ago•0 comments

Samsung Galaxy S26 Ultra Review: The Privacy Screen

https://www.wired.com/review/samsung-galaxy-s26-ultra/
1•joozio•17m ago•0 comments

The Serial Safety Net: Efficient Concurrency Control on Modern Hardware

http://muratbuffalo.blogspot.com/2026/03/the-serial-safety-net-efficient.html
1•ingve•21m ago•0 comments

Way of the Future – Religious organization dedicated to the worship of AI

https://en.wikipedia.org/wiki/Way_of_the_Future
1•j3th9n•21m ago•0 comments

Supply-chain attack using invisible code hits GitHub and other repositories

https://arstechnica.com/security/2026/03/supply-chain-attack-using-invisible-code-hits-github-and...
2•tannhaeuser•22m ago•0 comments

Ask HN: Founder is claiming my 2-year RAG architecture as his AI's Featured Work

2•2dogsanerd•29m ago•0 comments

PrivAI – private AI search that runs locally

https://chatpdf-server-shtq.onrender.com/
1•Blockbanana•30m ago•1 comments

How to try Google Chrome vertical tabs

https://9to5google.com/2026/01/19/google-chrome-vertical-tabs-beta/
1•tosh•34m ago•0 comments

Apple Rankings

https://applerankings.com/
1•thunderbong•39m ago•0 comments

Alysa Liu Won Olympic Gold, but She Would've Been Fine Either Way

https://www.teenvogue.com/story/alysa-liu-olympic-gold-teen-vogue-cover-interview-2026
2•Tomte•40m ago•0 comments

What does it take for male friendship to thrive?

https://www.csmonitor.com/Books/Book-Reviews/2026/0313/who-needs-friends-andrew-mccarthy-male-fri...
2•Tomte•41m ago•0 comments

Palantir CEO on Iran, AI Weapons and America's Advantage: A16Z American Dynamism [video]

https://www.youtube.com/watch?v=Wj6ttdIeBnE
1•keepamovin•42m ago•0 comments

Agents prefer structured queries over natural language when given the choice

3•snoren•45m ago•2 comments

Solo founder launching my first product on producthunt can I get some support

2•dattapt•45m ago•0 comments

Trump administration to be paid $10B for brokering TikTok deal

https://www.theguardian.com/technology/2026/mar/14/tiktok-trump-administration-10bn
2•gizzlon•46m ago•0 comments

Zirco.ai – AI employee for dental front desk operations

1•vosidov-msaid•50m ago•0 comments

I built an AI hedge fund panel that debates any stock

https://ainvest-jnpzmtom62rulztvu24d6c.streamlit.app/
2•lovvoong•52m ago•0 comments

Biased AI writing assistants shift users' attitudes on societal issues

https://www.science.org/doi/10.1126/sciadv.adw5578
2•tobr•56m ago•0 comments

Built by Americans. Captured by Foreigners

https://twitter.com/chiefengineerce/status/2032927887943417991
4•MrBuddyCasino•58m ago•1 comments