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.

The world's longest railway tunnel is being built under the Alps

https://www.euronews.com/my-europe/2026/05/01/world-record-made-in-europe-the-worlds-longest-rail...
1•vrganj•5m ago•0 comments

Ask HN: Tips for Longevity, as a Software Engineer

1•2bird3•8m ago•0 comments

Modern jet engine turbines: each blade a single crystal (2015)

https://www.americanscientist.org/article/each-blade-a-single-crystal
1•whycome•9m ago•0 comments

Ask HN: Please, I need your help to try out an iOS app I work on

1•erosa01•9m ago•2 comments

Alert-Driven Monitoring

https://simpleobservability.com/docs/alert-driven-monitoring
1•khazit•9m ago•0 comments

ImagePrint 1.52 Released

https://www.imageprint.io/blog/whats-new-in-imageprint-1-52/
1•coragi•11m ago•0 comments

CPU Work and GPU Work

https://www.talhoffman.com/2026/05/03/cpu-work-and-gpu-work/
2•talhof8•14m ago•0 comments

Fisheries and Aquaculture

https://www.oecd.org/en/topics/fisheries-and-aquaculture.html
1•mooreds•15m ago•0 comments

Show HN: Hello, World in many different languages

https://languages.jdunn.dev/
2•jdironman•17m ago•2 comments

NOAA forecaster on how this year's El Niño could shatter records

https://www.livescience.com/planet-earth/weather/one-of-the-most-rapid-transitions-that-ive-seen-...
2•ukz•17m ago•0 comments

I Have Lived in Your Camp

https://green.spacedino.net/i-have-lived-in-your-camp/
1•mooreds•19m ago•0 comments

The Petroleum System Is Entering Its Volatile Decline Phase

https://cleantechnica.com/2026/04/29/the-petroleum-system-is-entering-its-volatile-decline-phase/
1•xbmcuser•20m ago•0 comments

Company said I could move and then changed their mind

https://www.askamanager.org/2026/04/company-said-i-could-move-and-then-changed-their-mind-how-do-...
2•mooreds•24m ago•0 comments

Show HN: I made a simulator for personal finance (5 year update)

https://projectionlab.com/
1•scubakid•25m ago•0 comments

Custom Voices and Voice Library

https://x.ai/news/grok-custom-voices
1•tjek•27m ago•0 comments

I'm a late arrival to short-form video – its effect on my life has shocked me

https://www.theguardian.com/commentisfree/2026/may/03/algorithm-short-form-video-overload
2•andsoitis•29m ago•0 comments

Sandwich Theorem

https://en.wikipedia.org/wiki/Squeeze_theorem
1•_Microft•32m ago•0 comments

Pipelight

https://pipelight.dev/
1•fulafel•33m ago•0 comments

After giving away $26B MacKenzie Scott's wealth remains largely unchanged

https://timesofindia.indiatimes.com/world/us/after-giving-away-26-billion-in-philanthropy-mackenz...
1•gscott•33m ago•0 comments

The Lobster in the Hot Pot – OpenTentacle

https://opententacle.com/article/2026-04-05/
1•birdculture•33m ago•0 comments

Dogs' brains began to shrink at least 5k years ago

https://www.theguardian.com/science/2026/apr/29/dogs-brains-shrink-5000-years-ago
1•gmays•35m ago•0 comments

What are the chances a hurricane will hit my home?

https://www.noaa.gov/stories/what-are-chances-hurricane-will-hit-my-home
1•bilsbie•36m ago•0 comments

How the JVM Optimizes Generic Code – A Deep Dive [pdf]

https://cr.openjdk.org/~jrose/pres/202603-SpecializedGeneric.pdf
2•Tomte•37m ago•0 comments

I rebuilt my blog's cache. Bots are the audience now

https://hoeijmakers.net/thirty-years-of-caching-sorted-in-an-afternoon/
3•robhoeijmakers•38m ago•1 comments

Robotics startups are losing to slow feedback loops

https://www.simbiotic.dev/blog/robotics-startup-development-speed
1•nikhilol•39m ago•0 comments

I completed 100 Days of Java over 5 years and mapped the journey as a graph

https://mohibulsblog.netlify.app/java/100daysofjava/graph/
1•celurian92•45m ago•1 comments

Learn concurrency – a deep dive into multithreading with Python

https://blog.geekuni.com/2026/04/python-concurrency.html
2•aquastorm•46m ago•0 comments

StackGraveyard.dev – Live mortality scores for NPM packages

https://www.stackgraveyard.dev/
1•tlseternal•47m ago•0 comments

What If Your Boss Monitored Your Emotions?

https://www.theatlantic.com/culture/2026/05/worker-surveillance-emotion-ai/687029/
2•Brajeshwar•47m ago•1 comments

1984 Called: It predicted our AI-obsessed reality

https://medium.com/@tk512/the-ai-predictions-in-the-movie-electric-dreams-1984-0c6a47a6326e
1•sgt•49m ago•0 comments