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.

They Looked Like They Were Getting Rich on Polymarket–But None of It Was Real

https://www.wsj.com/business/media/polymarket-social-media-bets-prediction-market-441cdeb5
1•bushwart•36s ago•1 comments

Read your writes: WAIT FOR in PostgreSQL 19

https://clickhouse.com/blog/postgresql-19-wait-for-read-your-writes
1•thunderbong•57s ago•0 comments

How I Automated CodeWarrior with Claude, AppleScript, and SSH

https://www.patreon.com/MacSurf/posts/how-i-automated-167688725
1•mplsllc•7m ago•0 comments

The 'Do or Die' Days

https://shagbark.substack.com/p/the-do-or-die-days
1•herbertl•8m ago•0 comments

MouseHunt – cat-vs-mouse RTS that runs in the browser

https://ghassen1302.itch.io/mousehunt
3•ghassen13021302•13m ago•0 comments

The brain may be about to have its Ozempic moment

https://www.economist.com/science-and-technology/2026/08/11/the-brain-may-be-about-to-have-its-oz...
2•Anon84•14m ago•2 comments

Powerful US utilities fund 'grassroots' groups to sway cities away from

https://www.theguardian.com/business/2026/may/07/us-utilities-fund-groups-against-public-power-lobby
2•newsomix9xl•15m ago•1 comments

Show HN: A batch settlement layer for tokenized NYSE stocks

https://github.com/niumeta/niumeta
1•niumeta_TZ•17m ago•0 comments

Utilities Break California Lobbying Record Under Newsom While Former Aides Lead

https://consumerwatchdog.org/energy/utilities-break-california-lobbying-record-under-newsom-while...
1•newsomix9xl•19m ago•1 comments

Microsoft's Maia 200 AI Accelerator at Hot Chips 2026

https://www.servethehome.com/microsofts-maia-200-accelerator-at-hot-chips-2026/
1•pella•21m ago•0 comments

Life may have inherited metabolism from geochemistry

https://www.science.org/doi/epdf/10.1126/sciadv.aef3128
1•jumploops•28m ago•0 comments

Japan to undertake its biggest arms buildup since World War II

https://www.reuters.com/world/japan-rushes-rearm-with-eye-2027-chinas-taiwan-ambitions-2022-10-18/
2•cwwc•32m ago•0 comments

Queryable Executables

https://fzakaria.com/2026/08/24/actually-queryable-executables
3•rguiscard•34m ago•0 comments

As-Album – A Web Component Because Sometimes You Just Want to Post Pictures

https://sheep.horse/2026/8/as-album_-_a_web_component_because_sometimes_you_j.html
1•leephillips•38m ago•0 comments

Lego Skylines [video]

https://www.youtube.com/watch?v=mfBg8TQQrCQ
2•duck•40m ago•0 comments

A scorer that finds "alive but invisible" GitHub repos, not by stars

https://capuz.github.io/silentstars/
2•fcapuz2•42m ago•0 comments

Hacker News now has an active (official) X account

https://twitter.com/hackernews/status/2092359322433191997
7•n2d4•43m ago•5 comments

America's Desert Metropolis Is on the Short List to Lose Water

https://www.nytimes.com/2026/08/23/us/arizona-canals-colorado-river.html
1•littlexsparkee•43m ago•1 comments

AI Realist Radar:GPT‑5.6 Sol Pricing, Stripe's OpenRouter Deal

https://msukhareva.substack.com/p/ai-realist-radar-gpt56-sol-pricing
1•Airealist•43m ago•0 comments

Smart Toilets – Any serious opinions?

https://www.consumerreports.org/home-garden/toilets/best-smart-toilets-a5030436405/
1•josefritzishere•51m ago•1 comments

Let Me Click

https://ilyabirman.net/meanwhile/all/let-me-click/
3•herbertl•51m ago•1 comments

Nine life lessons from the happiest man in the world

https://www.theguardian.com/lifeandstyle/ng-interactive/2026/aug/14/life-lessons-from-happiest-ma...
1•herbertl•52m ago•1 comments

The Open Health Foundation

https://theopenhealth.foundation
2•xtracto•52m ago•0 comments

Short Squeeze in US Swaps, Options Shows 'Bessent Put' at Work

https://www.bloomberg.com/news/articles/2026-08-25/short-squeeze-in-us-swaps-options-shows-bessen...
2•petethomas•55m ago•1 comments

Show HN: Reachpad CLI – Spin up free sandboxes in seconds to develop apps

https://github.com/Reachpad/reachpad-cli
1•sakuraiben•56m ago•0 comments

Vaccines and Forgotten Diseases with my Father (2025) [video]

https://vimeo.com/1049186263
1•arunc•56m ago•0 comments

Follow the Money: Why Financial Crimes Often Go Unpunished

https://www.forensicscolleges.com/blog/follow-the-money/unpunished-financial-crimes
3•paulpauper•57m ago•0 comments

Show HN: Agent Purge – Scrub any mention of anything agent related

1•aihatterer•1h ago•1 comments

Engineer who built DarkBloom (P2P GPU inference) – started coding at 10, now 18

https://twitter.com/pratikg/status/2091799024299086319
2•TheBengaluruGuy•1h ago•0 comments

Show HN: CaptureAgent – find, price, draft, grade, run and fund federal work

https://captureagent.us/
1•MTakla•1h ago•0 comments