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.

Sulfide coating boosts lithium-ion battery lifespan past 1k cycles

https://techxplore.com/news/2026-03-sulfide-coating-boosts-lithium-ion.html
1•Brajeshwar•29s ago•0 comments

Alceris: Lightweight, Privacy-Focused Analytics

https://alceris.com/en/
1•subdomain•38s ago•0 comments

Philosoph Jürgen Habermas Gestorben

https://www.spiegel.de/kultur/philosoph-juergen-habermas-mit-96-jahren-gestorben-a-8be73ac7-e722-...
1•sebastian_z•1m ago•0 comments

Iran Threatens Amazon, Google and Microsoft Assets in Middle East

https://www.euronews.com/next/2026/03/12/enemy-technology-infrastructure-iran-threatens-amazon-go...
1•inaros•1m ago•0 comments

Jürgen Habermas died

https://www.welt.de/kultur/article69b564f11d2f30593708d717/weltweit-bekannter-denker-juergen-habe...
1•rffn•3m ago•1 comments

Study of NBA finds that pay inequity among top performers erodes cooperation

https://news.wsu.edu/press-release/2026/02/16/study-of-nba-finds-that-pay-inequity-among-top-perf...
2•bruceb•6m ago•1 comments

BuzzFeed has 'substantial doubt' it can stay in business

https://www.cnn.com/2026/03/12/business/buzzfeed-substantial-doubt
1•LordAtlas•8m ago•0 comments

Montana Leads the Nation with Groundbreaking Right to Compute Act

https://www.westernmt.news/2025/04/21/montana-leads-the-nation-with-groundbreaking-right-to-compu...
1•bilsbie•9m ago•0 comments

Show HN: Inscribe – Yet Another Static-Site Generator (SSG)

https://rahuldshetty.github.io/inscribe/
1•anonymousd3vil•9m ago•0 comments

Architectures of Error: A Philosophical Inquiry into Human and AI Code

https://link.springer.com/article/10.1007/s13347-026-01056-x
1•camilochs•10m ago•0 comments

Show HN: PostCLI Substack – CLI, TUI and MCP Server for Substack

https://github.com/postcli/substack
1•andreahlert•10m ago•1 comments

Show HN: Keymatrix – Visual shortcut reference for mechanical keyboards

https://www.keymatrix.dev/
1•lineudemonia•11m ago•0 comments

US warships cannot control the Strait of Hormuz

https://www.aspistrategist.org.au/ghost-of-gallipoli-us-warships-cannot-control-the-strait-of-hor...
1•johnbarron•13m ago•0 comments

SC/APC to SC/APC OS2 Simplex Fiber Patch Cable – 9/125

https://www.langzhichina.com/sc-apc-to-sc-apc-os2-simplex-fiber-patch-cable
1•langzhi•14m ago•0 comments

GitHub infuriates students by removing some models from free Copilot plan

https://www.theregister.com/2026/03/13/microsoft_github_removes_models_student_plan/
2•Brajeshwar•19m ago•0 comments

SUSE Linux Is Up for Sale (Again)

https://forum.cktn.de/t/suse-linux-is-up-for-sale-again/27617
1•CHEF-KOCH•21m ago•0 comments

Reflecting on 12 years of writing code

https://ezzeriesa.notion.site/Reflecting-on-12-years-of-writing-code-31e1308b420480129bd5dd7951f9...
1•kurinikku•23m ago•0 comments

Schedule meetings using the Pareto principle

https://boydkane.com/essays/meetings-have-a-pareto-curve
1•zdw•24m ago•0 comments

GitHub explains six February outages and fixes

https://github.blog/news-insights/company-news/github-availability-report-february-2026/
3•nkko•24m ago•2 comments

Show HN: GitAgent – An open standard that turns any Git repo into an AI agent

https://www.gitagent.sh/
1•sivasurend•28m ago•0 comments

Doom Running on Terminal

https://twitter.com/raphamorims/status/2032226817117937932
1•darkberry•30m ago•0 comments

Show HN: Vim-gramaculate: Vim grammar checker, powered by AI

https://github.com/ahalbert/vim-gramaculate
1•ahalbert4•32m ago•0 comments

Show HN: BirdDex – Pokémon Go, but with real life birds

https://birddex.co/
1•stellay•32m ago•0 comments

We Finally Know How Bumblebee Queens Can Survive Underwater for Days

https://www.sciencealert.com/we-finally-know-how-bumblebee-queens-can-survive-underwater-for-days
1•bookofjoe•33m ago•0 comments

Show HN: Cartero – A personalized, extensible news aggregator

https://github.com/dracarys18/cartero
2•dracarys18•36m ago•0 comments

Xbox Gaming Copilot (Beta)

https://www.xbox.com/en-US/gaming-copilot
1•debo_•36m ago•0 comments

KlongPy: PyTorch Back End and Autograd

http://www.klongpy.org/torch_backend/
1•tosh•37m ago•0 comments

The Great Rotation from Bits to Atoms

https://deadneurons.substack.com/p/the-great-rotation-from-bits-to-atoms
2•nr378•37m ago•0 comments

New chip lets robots see in 4D by tracking distance and speed simultaneously

https://techxplore.com/news/2026-03-chip-robots-4d-tracking-distance.html
2•Brajeshwar•41m ago•0 comments

A New Bigfoot Documentary Helps Explain Our Conspiracy-Minded Era

https://www.wsj.com/arts-culture/film/a-new-bigfoot-documentary-helps-explain-our-conspiracy-mind...
1•fortran77•41m ago•1 comments