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.

Mononoke Hime FAQ's

http://www.nausicaa.net/miyazaki/mh/faq.html
1•Eridanus2•2m ago•0 comments

WebGPU Snippets – Vercel Inspired

https://webgpusnippets.vercel.app/
1•hsnice16•2m ago•0 comments

I underestimated SEO, & now got surprised, my website is going up

https://www.lync.me
1•Mohamm6d•6m ago•1 comments

Mac Tahoe looks like shit

1•hax0ron3•6m ago•0 comments

Show HN: Truesize.net – Now with 140k regions and iOS and Android apps

https://truesize.net/
1•FreeGuessr•8m ago•0 comments

A free, no-signup address label maker that works in the browser

https://blondfrogs.github.io/label-maker/
1•thunderbong•9m ago•0 comments

The undeserved status of the pigeon-hole principle (EWD 1094)

https://www.cs.utexas.edu/~EWD/transcriptions/EWD10xx/EWD1094.html
1•tosh•10m ago•0 comments

What Happens When You Move the Mouse Pointer

https://youtu.be/sZC0Biv_Iyk
1•artisandip7•12m ago•0 comments

PEP 638 – Syntactic Macros

https://peps.python.org/pep-0638/
3•skeledrew•18m ago•1 comments

Having Fun with K&R C

https://sbaziotis.com/compilers/having-fun-with-k-and-r-c.html
1•saurabh•20m ago•0 comments

With Love to KDE: Take a Moment

https://korcenji.neocities.org/Writings/KDE-Take-A-Moment
1•birdculture•30m ago•0 comments

Ballerina.io

https://ballerina.io/learn/by-example/
2•gigatexal•31m ago•0 comments

Unconferences: A Better Way to Run Meetups

https://psychotechnology.substack.com/p/unconferences-a-better-way-to-run
2•eatitraw•32m ago•0 comments

Bank Street Writer on the Apple II

https://stonetools.ghost.io/bankstreetwriter-apple2/
2•TMWNN•33m ago•0 comments

GWR train fitted with F1 tech for two-month superfast WiFi trial

https://www.theguardian.com/business/2025/nov/17/gwr-train-f1-technology-superfast-wifi-trial-5g-...
1•zeristor•34m ago•1 comments

Foundations: My 1999 (and Part of 2000)

https://michaeljburry.substack.com/p/foundations-my-1999-and-part-of-2000
1•avonmach•36m ago•0 comments

Show HN: Convert Docs to Meaningful Visuals

https://www.doc2q.com
1•rokontech•43m ago•0 comments

Ask HN: Dunkelflaute' turns off my monitor

2•bertili•47m ago•0 comments

Airbus issues major A320 recall after mid-air incident grounds planes

https://www.theguardian.com/business/2025/nov/28/airbus-issues-major-a320-recall-after-recent-mid...
1•tosh•48m ago•0 comments

Everyone Should Learn C

https://computergoblin.com/blog/everyone-should-learn-c-pt-1/
2•0x54MUR41•48m ago•0 comments

How fast can browsers process base64 data?

https://lemire.me/blog/2025/11/29/how-fast-can-browsers-process-base64-data/
3•mfiguiere•54m ago•0 comments

Self-hosting my photos with Immich

https://michael.stapelberg.ch/posts/2025-11-29-self-hosting-photos-with-immich/
1•secure•59m ago•0 comments

Acmeleaf: Simple DNS-01 ACME client

https://codeberg.org/lindenii/acmeleaf
1•todsacerdoti•1h ago•0 comments

MP resigns over allegations she duped South Africans to fight for Russia

https://www.bbc.com/news/articles/cx2dndy228xo
4•breve•1h ago•0 comments

The Slow Grind That Sets You Free

https://medium.com/@naveensky/the-slow-grind-that-sets-you-free-97abd8b9bf2c
1•naveensky•1h ago•0 comments

Show HN: Structural Genesis – structure emerging from nothing (Ø₀)

https://github.com/jengbeng/structural-genesis
1•jengbeng•1h ago•0 comments

Ask HN: How are you preparing for the impending Android sideloading changes?

2•BrenBarn•1h ago•0 comments

Show HN: VidBee – A cross-platform video downloader with RSS auto-download

https://vidbee.org
2•nexmoe•1h ago•0 comments

Extreme Go Horse Process

https://gist.githubusercontent.com/banaslee/4147370/raw/fde1036073a94af5b0ee1f3c38d96bcef63e24d7/...
1•ArcHound•1h ago•0 comments

ChatGPT prompt consumes equivalent to 10s of Netflix

https://simonwillison.net/2025/Nov/29/chatgpt-netflix/
7•makeavish•1h ago•2 comments