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

Hill-Climbing: Why Your AI Agent Wastes Half Its Brain Before Writing Any Code

https://twitter.com/notadamking/status/2031445395369504774
1•adamjking3•3m ago•0 comments

From millions of dollars to under a grand: The dramatic fall of the NFT

https://english.elpais.com/culture/2026-03-10/from-millions-of-dollars-to-under-a-grand-the-drama...
1•geox•4m ago•0 comments

Freedesktop Closes Controversial Age Verification API Proposal

https://linuxiac.com/xdg-age-verification-interface-proposal-closed/
2•miohtama•5m ago•0 comments

US and EU sanctions have killed 38M people since 1970 (2025)

https://www.aljazeera.com/opinions/2025/9/3/us-and-eu-sanctions-have-killed-38-million-people-sin...
1•abdelhousni•7m ago•2 comments

Enzyme as Maxwell's Demon: Steady-State Deviation from Chemical Equilibrium

https://arxiv.org/abs/2503.17584
3•PaulHoule•11m ago•0 comments

Stansted Airport starts accepting London's contactless travel tickets

https://www.ianvisits.co.uk/articles/mind-the-tap-stansted-airport-starts-accepting-londons-conta...
1•zeristor•13m ago•0 comments

Daniel Ellsberg: The Effect of Top Secret Clearance

https://wonkmonksnotes.wordpress.com/2021/04/22/daniel-ellsberg-the-effect-of-top-secret-clearance/
1•jdkee•13m ago•0 comments

X Users Find Their Real Names Are Googled After Using X Verification "Au10tix"

https://www.mintpressnews.com/x-users-find-their-real-names-are-being-googled-in-israel-after-usi...
2•miguelazo•15m ago•2 comments

Why Your Pinecone Index Keeps Breaking (and the Vector Ops Fix)

https://decompressed.io/learn/vector-ops-pinecone
1•zacole•15m ago•0 comments

Hereditary peers to be removed from Lords as bill passes

https://www.bbc.co.uk/news/articles/cdxg76rgdp7o
1•zeristor•17m ago•0 comments

Markdown Now Available on Wordpress.org

https://make.wordpress.org/meta/2026/03/03/markdown-now-available-on-wordpress-org/
1•gslin•18m ago•0 comments

Zee – Push-to-talk transcription for macOS (Pure Go, sub-second)

https://github.com/sumerc/zee
2•sumerc•18m ago•1 comments

AI Sucks at Guitar Tones

https://bahadiraydin.com/blog/ai-sucks-at-guitar-tones
1•bahadiraydin•19m ago•0 comments

Orange County homeowner says insurer used drone to inspect her roof

https://abc7.com/post/orange-county-homeowner-says-insurer-secretly-used-drone-inspect-roof/18694...
1•walterbell•19m ago•1 comments

His Mother Vanished When He Was 14. 33 Years Later, He Found Her

https://www.nytimes.com/2026/03/09/us/antonio-wiley-missing-mother-found.html
3•rmason•19m ago•1 comments

How the Eon Team Produced a Virtual Embodied Fly

https://eon.systems/updates/embodied-brain-emulation
1•EvgeniyZh•20m ago•0 comments

Om Malik – The Debt Beneath the Dream

https://om.co/2026/03/09/the-debt-beneath-the-dream/
2•rmason•21m ago•0 comments

U.S. Global War on Terror Has Taken Nearly 1M Lives (2021)

https://theintercept.com/2021/09/01/war-on-terror-deaths-cost/
9•abdelhousni•22m ago•2 comments

Olie, A global dollar account powered by USDC

https://oliecrypto.com
1•jarcer•22m ago•1 comments

Valve facing second, class-action lawsuit over loot boxes

https://www.pcgamer.com/gaming-industry/valve-facing-second-class-action-lawsuit-over-loot-boxes/
4•akyuu•22m ago•0 comments

AI is to software as power tools are to woodworking

3•danfunk•23m ago•2 comments

What it costs to run 1M image search in production

https://vecstore.app/blog/what-it-costs-to-search-1m-images
1•birdculture•24m ago•0 comments

Actis: Autonomous Coordination and Transaction Integrity Standard

https://actis.world/
1•blazingjolt•24m ago•1 comments

Starlink Mini solar-powered unlimited range R/C boat [video]

https://www.youtube.com/watch?v=UjFrFAIM2Aw
1•nstj•25m ago•0 comments

Another automaker joins BYD with ultra-fast 1,500 kW EV chargers

https://electrek.co/2026/03/09/automaker-joins-byd-ultra-fast-1500-kw-ev-chargers/
5•breve•28m ago•0 comments

First ever SL5 Standard to secure frontier automated AI R&D against nationstates

https://standard.sl5.org
4•lthi•29m ago•1 comments

Containers – What's in the Box?

https://www.buzzsprout.com/2469780/episodes/18778761-23-containers-what-s-in-the-box
5•sbalneav•31m ago•1 comments

Using directx shared surfaces as a kernel IPC channel

https://afpereira.me/posts/dxsurflink/
1•afpereira•31m ago•1 comments

MacBook Neo review: I think Apple's going to sell these

https://mashable.com/review/apple-macbook-neo-budget-laptop
5•mobilio•32m ago•0 comments

Create Google API credentials in 50 easy steps (2023)

https://github.com/glotlabs/gdrive/blob/main/docs/create_google_api_credentials.md
2•20wenty•32m ago•1 comments