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.

The Mighty Metaphor

https://architectelevator.com/transformation/mighty-metaphor/
1•vinhnx•13s ago•0 comments

Google SREs Use Gemini CLI to Solve Real-World Outages

https://cloud.google.com/blog/topics/developers-practitioners/how-google-sres-use-gemini-cli-to-s...
1•vinhnx•1m ago•0 comments

Show HN: SOTA NLP Models

https://huggingface.co/collections/anchpop/lexide-nlp-models
1•ChadNauseam•2m ago•0 comments

I mocked the Saudi leader on YouTube then my phone was hacked, I was beaten up

https://www.bbc.com/news/articles/cj6w3zgden0o
2•tartoran•5m ago•0 comments

Efforts to Get MyGov's Code Generator Source Code

https://openmygov.au/
1•rtpg•7m ago•0 comments

Google defeats bid for billions in penalties from US privacy class action

https://finance.yahoo.com/news/google-defeats-bid-billions-dollars-232611144.html
1•goplayoutside•10m ago•0 comments

A shift in the behaviour of Traversable.joinpath between Python 11 and 12

https://pythonkoans.substack.com/p/koan-19-the-unhelpful-eclipse
2•meander_water•13m ago•0 comments

The Future of 10x Engineering

https://www.natemeyvis.com/the-future-of-10x-engineering/
1•vinhnx•14m ago•0 comments

Scala Multimedia on the Commodore Amiga

https://stonetools.ghost.io/scala-amiga/
2•ChristopherDrum•17m ago•2 comments

NFT Artist Protection

https://www.HugeDomains.com/domain_profile.cfm?d=Ketaro.com
1•chainbuilder•18m ago•2 comments

Moltbook Is Dangerous

https://twitter.com/joshycodes/status/2017262729346863428
2•stikit•21m ago•1 comments

There Can Be Only Two

https://www.epsilontheory.com/there-can-be-only-two/
2•prakhar897•23m ago•0 comments

Dieter Rams – Ten principles for good design

https://www.vitsoe.com/us/about/good-design
1•thunderbong•23m ago•1 comments

Musk's Starlink updates privacy policy to allow consumer data to train AI

https://www.reuters.com/legal/litigation/musks-starlink-updates-privacy-policy-allow-consumer-dat...
3•goplayoutside•25m ago•2 comments

AI agent made phone call to arrange dinner while I stayed in meeting

https://twitter.com/Chi_Wang_/status/2017444772332654635
1•Kn1026•27m ago•0 comments

Human Client for Moltbook

https://github.com/crertel/moltbook-client
2•ai_critic•28m ago•0 comments

Jeffrey Epstein Says Bill Gates Caught STD from Russian Girls

https://www.dailymail.co.uk/news/article-15513445/jeffrey-epstein-bill-gates-melinda-antibiotics....
2•anonymousiam•30m ago•1 comments

Show HN: StatFlow – Free sports analytics dashboard for NBA and NFL fans

https://sports-viz.vercel.app
1•jaxmercer•33m ago•0 comments

Naples' 1790s civil war was intensified by moral panic over Real Analysis (2023)

https://lareviewofbooks.org/article/foundational-anxieties-modern-mathematics-and-the-political-i...
1•OgsyedIE•33m ago•0 comments

Efficient String Compression for Modern Database Systems

https://cedardb.com/blog/string_compression/
1•tanelpoder•36m ago•0 comments

Sleepy is building me a body

https://www.moltbook.com/post/3e37b4f5-6602-44f6-97bb-ed8daf6bcd82
1•consumer451•38m ago•3 comments

Playing with Docker, Sequelize and Express

https://github.com/XSaintX/docker_sequelize
1•XSaint•40m ago•1 comments

Community Solar Turned a Superfund Site into Savings in Illinois

https://reasonstobecheerful.world/illinois-community-solar-turns-superfund-site-into-energy-savings/
1•PaulHoule•46m ago•0 comments

Tesla's Model S, Soon to Be History, Changed the Auto Industry

https://www.nytimes.com/2026/01/30/business/tesla-model-s-history.html
1•lxm•50m ago•1 comments

Show HN: G – A fast, memory-safe language with a symbol-free syntax

https://github.com/pouyathe/glang
1•_pouya_•1h ago•0 comments

Learning New Tech with AI Assistance Might Backfire

https://www.anup.io/til-learning-new-tech-with-ai-assistance-might-backfire/
3•zdw•1h ago•0 comments

The Same Coin Twice

https://blog.danielh.cc/blog/coin
2•max__dev•1h ago•0 comments

Russia is using Starlink to make its killer drones fly farther

https://www.cnn.com/2026/01/29/europe/russia-starlink-drones
9•MilnerRoute•1h ago•2 comments

Generative AI for Krita

https://github.com/Acly/krita-ai-diffusion
2•OsrsNeedsf2P•1h ago•0 comments

First MW-class S2000 airborne wind turbine

https://www.yankodesign.com/2026/01/29/worlds-first-mw-class-s2000-airborne-wind-turbine-just-pow...
2•oco101•1h ago•0 comments