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.

Show HN: Computer Use with any models Clanker Secretary

https://twitter.com/tekbog/status/2075086378459898210
1•tekbog•8s ago•0 comments

AI is creating economic winners, says IMF

https://www.axios.com/2026/07/08/imf-ai-energy-iran
1•TMWNN•54s ago•0 comments

How Donkey Kong Toppled Atari

https://dfarq.homeip.net/how-donkey-kong-toppled-atari/
1•giuliomagnifico•3m ago•0 comments

Book: RISC-V System-on-Chip Design

https://www.amazon.com/RISC-V-Microprocessor-System-Chip-Design/dp/0323994989
1•xlmnxp•9m ago•0 comments

Artificial Climate Controls Might Become Ineffective – Because of Climate Change

https://scripps.ucsd.edu/news/artificial-climate-controls-might-become-ineffective-because-climat...
1•SiempreViernes•10m ago•0 comments

An off switch for dual use knowledge in AI models

https://www.anthropic.com/research/off-switch-dual-use
1•DeveloperErrata•15m ago•0 comments

The Unlikely Journalist Who Looked into the Heart of War

https://www.newyorker.com/books/page-turner/the-unlikely-journalist-who-looked-into-the-heart-of-war
1•petethomas•15m ago•0 comments

What Scientists Learned by Eavesdropping on Thousands of People

https://www.newyorker.com/culture/annals-of-inquiry/what-scientists-learned-by-eavesdropping-on-t...
2•petethomas•17m ago•0 comments

AI software that generates 'rage bait' developed by Germany's far-right AfD

https://www.irishtimes.com/world/europe/2026/07/08/ai-software-that-generates-rage-bait-developed...
2•giuliomagnifico•20m ago•0 comments

Companies must address self-driving car interference with emergency vehicles

https://www.reuters.com/world/us/companies-must-address-self-driving-car-interference-with-emerge...
1•1vuio0pswjnm7•20m ago•0 comments

Pg_re2: Postgres extension for fast, RE2-powered regular expressions in Postgres

https://clickhouse.com/blog/introducing-pg_re2-regex-in-postgres
2•saisrirampur•20m ago•0 comments

Spider venom kills varroa mites without harming honeybees

https://connectsci.au/news/news-parent/9703/Spider-venom-kills-varroa-mites-without-harming
17•Jedd•23m ago•1 comments

Microsoft's gaming strategy has misfired badly

https://www.economist.com/business/2026/07/08/microsofts-gaming-strategy-has-misfired-badly
4•petethomas•28m ago•0 comments

Reload Rust code without app restarts. For faster feedback cycles

https://github.com/rksm/hot-lib-reloader-rs
2•vlovich123•29m ago•0 comments

Show HN: Embeddable visual HTML/CSS page editor

https://neikiri.dev/page-editor/
1•neikiri•29m ago•0 comments

OpenCode Bug: "I did not say that you did"

https://www.williamangel.net/blog/2026/07/08/OpenCode-Bug-I-did-not-say-that-you-did.html
2•datadrivenangel•34m ago•0 comments

Compendium – Shared workspace for teams and AI agents

https://www.cerenovus.ai/
1•Azimuth05•46m ago•1 comments

The AI Policy That Never Shipped

https://mendelevium.github.io/the-policy-never-shipped/
1•bobbybidon•46m ago•0 comments

Global Cancer Observatory – interactive visualization and data explore

1•andsoitis•50m ago•1 comments

EU's border check needs complete 'overhaul', says Greek airports chief

https://www.ft.com/content/83ae0ca8-ccce-4253-abfb-4c204f24bbbd
1•JumpCrisscross•51m ago•0 comments

FarRail Tours

https://www.farrail.com/
1•Svip•52m ago•0 comments

I am Scott Hansen, I make music as Tycho and visual work as ISO50 (2013)

1•andsoitis•58m ago•0 comments

China's Comicup convention showcases 'nüwu,' a niche genre avoiding romance

https://www.sixthtone.com/news/1018736/NoWoo:AtChina’sTopAnimeConvention,LoveTakesaBackSeat
1•whiteblossom•58m ago•0 comments

GPT‑Live

https://openai.com/index/introducing-gpt-live/#
1•adithyaharish•1h ago•1 comments

Modernizing Kernel Cryptography [video]

https://www.youtube.com/watch?v=TBUK5DKeXRg
1•zdkaster•1h ago•1 comments

Meta Tapped a Pentagon Supplier to Prototype Face Recognition for Its Glasses

https://www.wired.com/story/meta-rank-one-computing-face-recognition-smart-glasses/
2•1vuio0pswjnm7•1h ago•0 comments

Feds demand autonomous vehicle companies stop interfering with first responders

https://techcrunch.com/2026/07/08/feds-demand-autonomous-vehicle-companies-stop-interfering-with-...
2•rilan•1h ago•0 comments

Neuromorphic Silicon Neuron Controller for Deep Brain Stimulation in Parkinsons

https://arxiv.org/abs/2607.05453
1•Jimmc414•1h ago•0 comments

I fact-checked 15 stats from a 1.2M-subscriber creator against primary sources

https://hemantpatil.substack.com/p/i-fact-checked-15-stats-from-a-12m
1•HPatil7•1h ago•2 comments

How to Kill the Bloat in Claude Code's System Prompt

https://www.aihero.dev/how-to-kill-the-bloat-in-claude-codes-system-prompt
2•Garbage•1h ago•0 comments