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

Build native desktop and mobile apps with web UI and Zig

https://github.com/vercel-labs/zero-native
1•kindkang2024•2m ago•0 comments

The Las Vegas Sphere Looked Like a Disaster. It's Become a Huge Hit Instead.

https://www.wsj.com/business/media/sphere-vegas-dolan-disaster-hit-fa0e6b17
1•bookofjoe•3m ago•1 comments

Ask HN: Before Open Source took over the server, what was the discourse like?

1•mbgerring•4m ago•0 comments

Trump reportedly plans to fire FDA Commissioner Marty Makary

https://arstechnica.com/health/2026/05/trump-reportedly-plans-to-fire-fda-commissioner-marty-makary/
1•Bender•5m ago•0 comments

Show HN: Countries where you can leave your MacBook at a random coffee shop

https://vouchatlas.com
1•canergl•5m ago•0 comments

Koide Formula for the Down Quarks

https://doi.org/10.1016/j.physletb.2026.140510
1•arivero•7m ago•1 comments

I built an AI to stress-test my thinking

https://mindmilker.com
1•afxuh•13m ago•0 comments

Ryan Cohen, the rebel CEO who disdains corporate America

https://www.ft.com/content/c0023a3e-08ec-44e8-80a6-f9abb343c52e
1•petethomas•17m ago•0 comments

Data center drains 30M gals of water — until residents complained of pressure

https://www.politico.com/news/2026/05/08/georgia-data-centers-water-00909988
3•thehoff•18m ago•2 comments

Hasan Piker Media Tracker

https://hasanabi.m44.cl/
1•abdelhousni•20m ago•1 comments

ToolOps: One Decorator Away from Production-Ready AI Agents

https://github.com/hedimanai-pro/toolops
2•hedimanai•25m ago•1 comments

Instagram DMs Lose End-to-End Encryption Starting Today

https://www.macrumors.com/2026/05/08/instagram-end-to-end-encryption/
3•0in•25m ago•1 comments

After USDA request, Indiana plant biologist locked out of lab by school

https://www.science.org/content/article/after-usda-request-indiana-plant-biologist-locked-out-lab...
2•petethomas•31m ago•0 comments

macOS 26 adoption rate lower than prior macOS versions

https://forums.macrumors.com/threads/tahoe-adoption-rate.2474641/page-2
2•seam_carver•32m ago•0 comments

Schliemann found Troy by destroying it

https://storica.club/blog/troy-was-real/
1•cemsakarya•35m ago•0 comments

McDonald's is taking away your fountain machine. Burger King not so much.

https://finance.yahoo.com/markets/article/mcdonalds-is-taking-away-your-fountain-machine-burger-k...
2•phyzix5761•36m ago•2 comments

Revival of Blackberry nostalgia and keyboard fuels smartphone startups

https://www.cnbc.com/2026/05/09/blackberry-nostalgia-keyboard-smartphone-comeback-startups-intent...
1•0in•39m ago•0 comments

User just tricked Grok and Bankrbot to send tokens with Morse code

https://www.cryptopolitan.com/user-tricked-grok-bankrbot-to-send-tokens/
3•wglb•45m ago•0 comments

Stale Gov.uk pages are feeding AI overviews old data and Brits are believing it

https://www.theregister.com/software/2026/04/23/govuk-says-ai-gaslighting-brits-with-stale-govuk-...
1•gnabgib•47m ago•0 comments

Upending assumptions about learning, inspired by an AI phenomenon

https://www.santafe.edu/news-center/news/upending-assumptions-about-learning-inspired-by-an-ai-ph...
1•hhs•49m ago•0 comments

Ask HN: Is Claude Code web down?

1•etamponi•49m ago•2 comments

423.7 and 426.5 TB/S GMI Bi-Directional HCF Transmission

https://arxiv.org/abs/2605.04924
1•rbanffy•52m ago•0 comments

Apple, Google and aligned incentives (2020)

https://chameth.com/apple-google-aligned-incentives/
1•juniperplant•54m ago•1 comments

Scientists calculate more precise estimate of how fast the universe is expanding

https://www.wsj.com/science/how-fast-universe-expanding-047cefae
1•hhs•55m ago•0 comments

Investment Optimization for iOS

https://apps.apple.com/us/app/investment-optimization/id6760441967
1•joseph_foster•58m ago•0 comments

Rethinking how our brains use categories to make sense of the world

https://news.mit.edu/2026/rethinking-how-our-brains-use-categories-0507
1•hhs•58m ago•1 comments

Putin says he thinks Russia-Ukraine war is coming to an end

https://www.reuters.com/world/europe/putin-says-he-thinks-ukraine-conflict-is-coming-an-end-2026-...
3•MilnerRoute•59m ago•3 comments

Mario Kart World patented shader technique to enlarge distant objects

https://twitter.com/MarioBrothBlog/status/2053179791495356420
2•bpierre•59m ago•0 comments

Towards Compute-Aware In-Switch Computing for LLMs on Multi-GPU Systems

https://arxiv.org/abs/2605.05628
1•rbanffy•1h ago•0 comments

Bun's rewrite from Zig to Rust passes 99.8% of testsuite

https://xcancel.com/jarredsumner/status/2053047748191232310
1•birdculture•1h ago•1 comments