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

A wheel menu for all your shortcuts on Mac

https://www.wheelcmd.com/
1•nickljr•1m ago•0 comments

Kangaroo takes out Tour Down Under peloton

https://www.abc.net.au/news/2026-01-25/kangaroo-crashes-into-tour-down-under-peloton-as-jay-vine-...
1•Tomte•1m ago•0 comments

Genetic Data from over 20k U.S. Children Misused for 'Race Science'

https://www.nytimes.com/2026/01/24/us/children-genetics-race-science.html
2•DustinEchoes•2m ago•1 comments

A P-O-X On Both Your Houses: Reverse Engineering a 20 year RF protocol

https://zach-ennenga.medium.com/a-p-o-x-on-both-your-houses-reverse-engineering-a-20-year-rf-prot...
1•bsilvereagle•3m ago•0 comments

Show HN: Constela – JSON DSL for AI-generated UI with compile-time validation

1•yuu1ch13•4m ago•0 comments

Show HN: Netfence – Like Envoy for eBPF Filters

https://github.com/danthegoodman1/netfence
2•dangoodmanUT•4m ago•0 comments

Show HN: Open Computer-Animated Multivariable Calculus Course in 6 Languages

https://calculus.academa.ai/
2•sinaatalay•10m ago•0 comments

Show HN: Free PDF Editor by TechRex – client-side PDF editing, OCR, compression

https://pdffreeeditor.com/
1•Maaz-Sohail•15m ago•0 comments

Alex Honnold

https://en.wikipedia.org/wiki/Alex_Honnold
1•marklit•15m ago•0 comments

UN Declares That the World Has Entered an Era of 'Global Water Bankruptcy'

https://www.smithsonianmag.com/smart-news/united-nations-declares-that-the-world-has-entered-an-e...
25•pseudolus•16m ago•6 comments

Show HN: AI powered daily tracker of the US slide into authoritarianism

https://www.worstdaysofar.com/
2•locallyoptimal•18m ago•0 comments

How to Become a Hacker

http://www.catb.org/esr/faqs/hacker-howto.html
1•srid•19m ago•0 comments

OpenAI rolling out age prediction for ChatGPT consumer plans

https://www.cnbc.com/2026/01/20/open-ai-age-prediction-chatgpt.html
2•gmays•19m ago•2 comments

Anesthetic Requirement is Increased in Redheads (2004)

https://lww.com/_layouts/1033/OAKS.Journals/Error/JavaScript.html
1•mellosouls•21m ago•0 comments

Bitwise conversion of doubles using only FP multiplication and addition

https://dougallj.wordpress.com/2020/05/10/bitwise-conversion-of-doubles-using-only-floating-point...
1•vitaut•23m ago•0 comments

Back to the Roots with Internet Relay Chat

https://rz01.org/irc/
3•exitnode•23m ago•1 comments

GNU C Library 2.43 released

https://lwn.net/Articles/1055757/
1•gtirloni•26m ago•0 comments

'Rescued men still owe hotel bill three weeks later'

https://www.bbc.co.uk/news/articles/c9vx0jrnmejo
5•mellosouls•29m ago•2 comments

Motivation acts as a camera lens that shapes how memories form

https://www.psypost.org/motivation-acts-as-a-camera-lens-that-shapes-how-memories-form/
2•mustaphah•29m ago•0 comments

Zoot Suit Riots

https://en.wikipedia.org/wiki/Zoot_Suit_Riots
2•JojoFatsani•30m ago•0 comments

Show HN: Ask CLI – A simple, open-source tool to get command-line help

1•david-minaya•33m ago•0 comments

Claude Code: Merging Slash Commands into Skills

https://x.com/trq212/article/2014836841846132761
2•mustaphah•33m ago•1 comments

Wine-Staging 11.1 Adds Patches for Enabling Recent Photoshop Versions on Linux

https://www.phoronix.com/news/Wine-Staging-11.1
2•LorenDB•35m ago•0 comments

The "Discombobulator": Unpacking the Physics of the Weapon That Captured Maduro

https://medium.com/@jcanchola1264/the-discombobulator-unpacking-the-physics-and-the-risks-of-the-...
5•mojosam•37m ago•3 comments

Show HN: Personal AI that understands code and emotions on 8GB RAM

https://twitter.com/enludus/status/2015329162165403683
1•Enludus•37m ago•0 comments

Goomics – Google's corporate culture revealed through internal comics [pdf]

https://goomics.net/img/book/goomics_vol_2_first_five_chapters.pdf
3•wallflower•38m ago•0 comments

How AI Is Learning to Think in Secret

https://nickandresen.substack.com/p/how-ai-is-learning-to-think-in-secret
2•cubefox•38m ago•1 comments

Supply Chain Explorer

https://chipexplorer.eto.tech
1•wallflower•38m ago•0 comments

2025 Globalscape: Race for Compute

https://www.accel.com/globalscape
1•gmays•42m ago•0 comments

Gen Z is Nostalgic for the Photo Aesthetic of 2016

https://petapixel.com/2026/01/25/gen-z-is-nostalgic-for-the-photo-aesthetic-of-2016/
1•gbugniot•42m ago•0 comments