frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

Greece unveils restored Parthenon facade unseen in full for 2 centuries

https://apnews.com/article/greece-acropolis-restoration-parthenon-tourism-da06640fcd747498613d31b...
1•gmays•2m ago•0 comments

Second Brain – A free, invisible AI interview copilot (Groq and Llama 3)

https://github.com/hi2brain/second-brain
1•hi2brain•6m ago•0 comments

Modeling Mersenne's Clavichord

https://masonm.org/posts/meresennes-clavichord/
1•anonydsfsfs•9m ago•0 comments

Ask HN: Is Claude Code with Fable 5 worth switching back from Codex?

3•vantareed•9m ago•0 comments

Palmier-Pro: macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
5•vantareed•15m ago•1 comments

Secretive Wall Street Powerhouse Jane Street Seizes the AI Spotlight

https://www.wsj.com/tech/ai/jane-street-ai-wall-street-bdfcc81a
1•kjhughes•16m ago•0 comments

I guess I should have become a Plumber

https://www.robot-future.com/preview/6a3758e002c7a770662f8346
1•robot-future•21m ago•0 comments

Train LLM from Scratch

https://FareedKhan-dev.github.io/train-llm-from-scratch/
1•vinhnx•24m ago•0 comments

Build your project Zig-style

https://fnordig.de/2026/06/16/build-your-project-zig-style/
1•vinhnx•26m ago•0 comments

Rust Prevents Data Races, Not Race Conditions

https://corrode.dev/blog/rust-prevents-data-races-not-race-conditions/
2•vinhnx•27m ago•0 comments

Trump says multiple people arrested for allegedly vandalizing Reflecting Pool

https://www.cbsnews.com/news/trump-reflecting-pool-vandalism-arrest-washington-dc/
2•rolph•30m ago•0 comments

SOCKMAP - TCP splicing of the future

https://blog.cloudflare.com/sockmap-tcp-splicing-of-the-future/
1•zdw•46m ago•0 comments

Early life adversity leaves a lasting molecular imprint across the body

https://medicalxpress.com/news/2026-06-early-life-adversity-molecular-imprint.html
3•gmays•53m ago•0 comments

Show HN: Agent-historian – let your AI agent search its own past sessions

https://github.com/adlternative/agent-historian
1•adltereturn•56m ago•0 comments

Static universe with VSL. Redshift without expansion (open access)

https://pixeltheory.co.uk
1•jimfoweraker•57m ago•0 comments

Moving Machine Learning into the Analog Domain

https://sangota.substack.com/p/one-good-analog-transistor-is-worth
2•random__duck•1h ago•0 comments

I Moved from Arch to Boring Debian Testing

https://www.whileforloop.com/blog/2026/06/20/why-i-moved-from-arch-to-debian-testing/
2•wook__•1h ago•0 comments

Corpulence Index

https://en.wikipedia.org/wiki/Corpulence_index
2•aragonite•1h ago•0 comments

The largest open database of local laws in the US

https://arxiv.org/abs/2606.19334
1•rao-v•1h ago•1 comments

Some of Android's Most Interesting Games Aren't Just on the Play Store

https://gardinerbryant.com/some-of-androids-most-interesting-games/
1•thunderbong•1h ago•0 comments

I Hate Personal CRMs. I Might Need One

https://shikharsachdev.substack.com/p/i-hate-personal-crms-i-might-need
1•shsachdev•1h ago•0 comments

X402 stock APIs for agents, pay per API call

https://x402stock.xyz/
1•parth_nandaniya•1h ago•0 comments

Bevy 0.19

https://bevy.org/news/bevy-0-19/
3•embedding-shape•1h ago•0 comments

Realtime Raytracing in Bevy 0.19 (Solari)

https://jms55.github.io/posts/2026-04-12-solari-bevy-0-19/
2•embedding-shape•1h ago•0 comments

Third Places (NYC)

https://thirdplaces.nyc
2•xhrpost•1h ago•1 comments

Plotting AI model release cadence: two labs are accelerating, three aren't

https://swiftalerts.trade/the-cadence-trade-hn
1•abipal15•1h ago•0 comments

With Every Breath You Take, Thank the Ocean

https://ocean.si.edu/ocean-life/plankton/every-breath-you-take-thank-ocean
4•thunderbong•1h ago•0 comments

The snake-wrangling 84-year-old who lives on a remote barrier island

https://www.bbc.com/travel/article/20260612-the-snake-rearing-84-year-old-who-lives-on-a-remote-b...
2•1659447091•1h ago•0 comments

Show HN: Lean bulk, cut, body recomp. Calculate maintenance calories

https://macrocodex.app/
20•faangguyindia•2h ago•5 comments

The only cauldron ever found in a river in the British Isles

https://www.bbc.co.uk/news/articles/clyrn5e2k9no
2•nickt•2h ago•1 comments