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

I've been sleeping on Chinese models

https://kylenessen.com/ive-been-sleeping-on-chinese-models/
1•kylenessen•1m ago•0 comments

A Cosmic Offense: Elias Canetti's contest against death

https://www.commonwealmagazine.org/cosmic-offense
2•diodorus•2m ago•0 comments

Show HN: Cut the Crap – A meritocratic community for builders

https://www.youtube.com/watch?v=i2xdJ5ISoTI
1•shrutisingh18•3m ago•0 comments

Ask HN: Please suggest a smart watch that can be customized

1•VladVladikoff•3m ago•0 comments

I made a website where you can arrange a Secret Santa over email

https://secretsanta.email
1•elliotbeskow•5m ago•0 comments

Bystander tackled and disarmed one of the Sydney gunmen, video shows

https://www.nytimes.com/2025/12/14/world/australia/bondi-beach-gunman-tackled-video.html
1•mhb•8m ago•0 comments

Show HN: Remixify – Find alternate versions of tracks in your Spotify playlists

https://remixify.xyz
1•kwakubiney•8m ago•0 comments

Control Plane MCP

https://docs.controlplane.com/mcp/overview
1•dorongrinstein•10m ago•0 comments

Get to Know iPhone Privacy and Security Settings

https://ssd.eff.org/module/how-to-get-to-know-iphone-privacy-and-security-settings
1•nabla9•10m ago•0 comments

E: An all in one webapp built using React.js

https://github.com/B35000/E5UI
1•bryonyoni•10m ago•0 comments

Language Immersion, Prison-Style (2017)

https://www.themarshallproject.org/2017/12/14/my-do-it-yourself-language-immersion-prison-style
2•johnny313•10m ago•0 comments

Take the Power Back (Over My Music)

https://wonderfulfrog.com/posts/take-the-power-back-music/
1•cdrnsf•13m ago•0 comments

2002: Last.fm and Audioscrobbler Herald the Social Web

https://cybercultural.com/p/lastfm-audioscrobbler-2002/
6•cdrnsf•14m ago•1 comments

Feather Detective (2016)

https://www.audubon.org/magazine/behind-scenes-worlds-top-feather-detective
2•thither•15m ago•0 comments

Kill Aggregate? An Interview on Dynamic Consistency Boundaries

https://docs.eventsourcingdb.io/blog/2025/12/15/kill-aggregate-an-interview-on-dynamic-consistenc...
1•goloroden•15m ago•0 comments

In Praise of HTML and CSS

https://blog.sturdystatistics.com/posts/html/
2•kianN•20m ago•0 comments

'It's just a bomb': The true story of two strangers and an act of courage

https://www.ft.com/content/cd595e6d-2a5c-4a80-bb28-a792a391b512
1•doener•21m ago•0 comments

AutoMondrian

https://bruceediger.com/automondrian.php
1•bookofjoe•27m ago•0 comments

New book details the epic story behind the fight to save Russia's Amur tigers

https://www.cnn.com/science/siberian-amur-tigers-between-empires-book-spc-c2e-hnk
1•breve•29m ago•0 comments

TabzChrome: Tmux terminals in your Google Chrome sidebar

https://github.com/GGPrompts/TabzChrome
1•handfuloflight•29m ago•0 comments

AI Agents vs. Pentesters

https://arxiv.org/abs/2512.09882
2•takira•30m ago•0 comments

Hideo Kojima wants you to remember his games for decades

https://www.cnn.com/2025/12/12/style/hideo-kojima-death-stranding-2-hnk-intl-dst
1•breve•32m ago•0 comments

The Problem of Teaching Physics in Latin America

https://calteches.library.caltech.edu/46/2/LatinAmerica.htm
3•rramadass•32m ago•1 comments

Show HN: Cardly – Manage, track, and get alerts for your gift card balances

https://cardlyai.app/
2•Pastaza•34m ago•1 comments

Knowledge Basing

https://thinkhuman.com/knowledge-basing/
2•jamesgill•34m ago•0 comments

Opus 4.5 is the first model that makes me fear for my job

https://old.reddit.com/r/ClaudeAI/comments/1pmgk5c/opus_45_is_the_first_model_that_makes_me_actua...
14•nomilk•39m ago•19 comments

Deplit

https://github.com/mdhruvil/deplit
1•handfuloflight•41m ago•0 comments

Ten Tips to Make Conference Talks Suck Less (2022)

https://www.morling.dev/blog/ten-tips-make-conference-talks-suck-less/
3•gunnarmorling•41m ago•1 comments

Is A.I. Actually a Bubble?

https://www.newyorker.com/culture/open-questions/is-ai-actually-a-bubble
2•Kaibeezy•42m ago•3 comments

The other wonders of the Ancient World

https://www.cartographerstale.com/p/the-other-wonders-of-the-ancient
1•Milhaud•43m ago•0 comments