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.

Venus Might Harbor Subsurface Lava Tunnels

https://www.universetoday.com/articles/venus-might-harbor-massive-subsurface-lava-tunnels
1•rbanffy•2m ago•0 comments

Rover wheel tribocharging in lunar shadowed regions

https://www.sciencedirect.com/science/article/pii/S0273117725012724
1•PaulHoule•2m ago•0 comments

MIDI Survivor

https://www.funwithcomputervision.com/piano
1•bilsbie•3m ago•0 comments

Theorizer: Turning Papers into Scientific Laws

https://allenai.org/blog/theorizer
1•kjhughes•4m ago•0 comments

The Quiet Shift in America's Population Growth

https://brookstonenews.substack.com/p/the-quiet-shift-in-americas-population
1•toomuchtodo•4m ago•0 comments

I gave my personal site a new look, what do you think? Built using Flutter

https://thrivedev.net/
1•luis_journey•4m ago•0 comments

Slow AI Manifesto

https://www.shardcore.org/spx/2026/01/30/slow-ai-manifesto/
1•speckx•5m ago•0 comments

Show HN: Flowly – Managed Clawdbot in 5 min

2•hakanorensy•8m ago•0 comments

Show HN: Claude Commander: runtime model switching in Cloud Code via hooks/API

https://github.com/sstraus/claude-commander
1•stefanostraus•9m ago•0 comments

Buttered Crumpet, a custom typeface for Wallace and Gromit

https://jamieclarketype.com/case-study/wallace-and-gromit-font/
1•tobr•9m ago•0 comments

Trump Taps Kevin Warsh to Lead the Federal Reserve

https://www.npr.org/2026/01/30/nx-s1-5645091/trump-kevin-warsh-federal-reserve-chair
1•healsdata•11m ago•0 comments

Americans can expect to live longer than ever, per the latest CDC data

https://sherwood.news/world/americans-can-expect-to-live-longer-than-ever-per-the-latest-cdc-data/
1•avonmach•12m ago•0 comments

Monsanto's House of the Future: A Plastic Dream of Tomorrow in Photos

https://rarehistoricalphotos.com/monsanto-house-of-the-future-photos/
2•celsoazevedo•13m ago•0 comments

More Than 2M Afghan Girls Denied Secondary Education, Says UN

https://www.afintl.com/en/202601245551
2•mhb•13m ago•0 comments

Taliban's New Law Legalises Slavery in Afghanistan, Makes Mullahs Immune

https://www.ndtv.com/world-news/talibans-new-law-legalises-slavery-in-afghanistan-makes-mullahs-i...
1•mhb•14m ago•1 comments

Challenge to compress 1M rows to the smallest possible size

https://github.com/agavra/compression-golf
1•birdculture•14m ago•0 comments

Ex-CNN anchor Don Lemon arrested on charges connected to Minnesota church protes

https://www.theguardian.com/us-news/2026/jan/30/don-lemon-minnesota-protest-charges
3•gizzlon•15m ago•1 comments

Stop using low DNS TTLs

https://blog.apnic.net/2019/11/12/stop-using-ridiculously-low-dns-ttls/
1•swills•16m ago•0 comments

Optimal Software Pipelining Using an SMT-Solver

https://arxiv.org/abs/2601.21842
1•ahsillyme•16m ago•0 comments

Resist and Unsubscribe

https://www.resistandunsubscribe.com
1•ptrhvns•17m ago•0 comments

GitHub Action that updates an OpenRouter guardrail daily with US-only providers

https://github.com/speedshop/openrouter-us-only-cached-guardrail
1•dataminer•17m ago•0 comments

Decrease the frequency of product subscription deliveries

https://practicalbetterments.com/decrease-the-frequency-of-product-subscription-deliveries/
1•surprisetalk•17m ago•0 comments

One Minute Park

https://oneminutepark.tv/?park=27296633
1•surprisetalk•18m ago•0 comments

Can AI (actually) beat Minecraft? [video]

https://www.youtube.com/watch?v=Wh4abvcUj8Q
1•surprisetalk•18m ago•0 comments

Stagnant Construction Productivity Is a Worldwide Problem

https://www.construction-physics.com/p/stagnant-construction-productivity
1•surprisetalk•18m ago•0 comments

Evaluations for Testing Agentic AI

1•stichers•19m ago•0 comments

Amazon: "We are also forming a new engineering team in India "

https://twitter.com/PlumbNick/status/2017239458677231736
3•sergiotapia•20m ago•1 comments

Standalone Android utility apps and a VS Code companion I built

2•kalinuxer•22m ago•0 comments

Ask HN: Is free identity theft protection after a data breach worth the bother?

2•daoboy•22m ago•0 comments

Preserving Human Voices and Faces

https://www.vatican.va/content/leo-xiv/en/messages/communications/documents/20260124-messaggio-co...
2•swannodette•23m ago•0 comments