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.

Why did Clovis toolmakers choose difficult quartz crystal?

https://phys.org/news/2026-04-clovis-toolmakers-difficult-quartz-crystal.html
1•PaulHoule•2m ago•0 comments

Show HN: OpenSpec – OpenAPI/Swagger explorer with a contract linter

https://openspec.vercel.app/
2•geox•4m ago•0 comments

How to Achieve Truly Serverless GPUs

https://modal.com/blog/truly-serverless-gpus
1•birdculture•4m ago•0 comments

70 years of love, empowerment, and freedom. A look at Eurovision by its lyrics

https://puntofisso.net/eurovision/
1•sebg•6m ago•0 comments

AlanLukacovic

1•AlanLukacovic•6m ago•0 comments

The AI Zombification of Universities

https://www.thenewcritic.com/p/the-great-zombification
4•rmdmphilosopher•8m ago•0 comments

Anthropic moves Claude Code SDK and claude -p out of subscription plans

https://twitter.com/ClaudeDevs/status/2054610152817619388
3•deviantintegral•8m ago•0 comments

Hoot 0.9.0 Released

https://spritely.institute/news/hoot-0-9-0-released.html
6•birdculture•9m ago•0 comments

Ask HN: Anyone have experience with infomaniak.com? Are they a scam?

1•OhMeadhbh•9m ago•1 comments

AMD will bring FSR 4 to RDNA 3 and RDNA 2 GPUs

https://twitter.com/jackhuynh/status/2054904153013387273
1•LorenDB•9m ago•0 comments

The Power of a Free Popsicle (2018)

https://www.gsb.stanford.edu/insights/power-free-popsicle
1•NaOH•12m ago•0 comments

Docker demystified: create your own containers in five minutes

https://discourse.openrobotics.org/t/what-are-you-using-for-containerization-in-ros-deployments/5...
1•chfritz•12m ago•0 comments

Just Aim the Cannon Correctly

https://www.jmduke.com/posts/difficulty-scores.html
1•speckx•13m ago•0 comments

Early Access Grok Build CLI

https://x.ai/cli
4•skp1995•13m ago•0 comments

SQLite affinity is stranger than it looks, a peek inside

https://theconsensus.dev/p/2026/05/06/sqlite-affinity.html
2•eatonphil•14m ago•0 comments

Brazil markets rattled by report linking Flavio Bolsonaro to disgraced banker

https://www.reuters.com/world/americas/brazil-markets-rattled-by-report-linking-flavio-bolsonaro-...
1•CXSHNGCB•20m ago•0 comments

Understanding the Linux Kernel: The Linux Kernel Startup

https://internals-for-interns.com/posts/linux-kernel-startup/
4•valyala•20m ago•0 comments

First public macOS kernel memory corruption exploit on Apple M5

https://blog.calif.io/p/first-public-kernel-memory-corruption
5•quadrige•20m ago•1 comments

OracleGPT: Thought Experiment on an AI Powered Executive

https://senteguard.com/blog/oraclegpt-thought-experiment-of-an-ai-powered-executive-1768719394050
1•paulpauper•20m ago•0 comments

There Is a Fire Sale on M.B.A.s

https://www.wsj.com/lifestyle/careers/there-is-a-fire-sale-on-m-b-a-s-87d56c69
1•paulpauper•21m ago•0 comments

The Most Surprising Capitalist Makeover Is Under Way in Sweden

https://www.wsj.com/world/europe/the-worlds-most-surprising-capitalist-makeover-is-under-way-in-s...
1•paulpauper•21m ago•0 comments

House Republicans Vote to Dilute Gas as Prices Rise Above $4.50

https://www.newsweek.com/republicans-vote-to-dilute-gas-as-prices-rise-above-4-50-11949494
3•solid_fuel•22m ago•1 comments

Which country will be the first to pass laws limiting Meta Ray-Ban glasses?

3•nothrowaways•22m ago•0 comments

Runge–Kutta Methods

https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods
1•tosh•23m ago•0 comments

Show HN: PlanBridge: open-source tool for precise feedback on coding agent plans

https://github.com/contextbridge/planbridge
3•floodfx•23m ago•0 comments

Normalizing Trajectory Models

https://arxiv.org/abs/2605.08078
1•gmays•24m ago•0 comments

Portolanmap.com: World Connectivity Map

https://portolanmap.com/
1•rembish•25m ago•1 comments

God Damn AI is making me dumb

https://jpain.io/god-damn-ai-is-making-me-dumb/
19•Eighth•26m ago•5 comments

The tortoise and the hare: will China beat the US in the race back to the moon?

https://www.theguardian.com/science/2026/apr/26/china-us-space-race-moon
2•PaulHoule•26m ago•0 comments

You Don't Align an AI, You Align with It

https://danieltan.weblog.lol/2026/05/you-dont-align-an-ai-you-align-with-it
3•danieltanfh95•26m ago•0 comments