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.

Webernetes – Kubernetes in Browser

https://github.com/ngrok/webernetes
1•peterdemin•7s ago•0 comments

Show HN: Openleetcode – LeetCode runner where tests live in the repo

https://github.com/therepanic/openleetcode/releases/tag/v1.0.0
1•therepanic•1m ago•0 comments

What you need to know about new customs charges when buying from outside the EU

https://www.rte.ie/news/ireland/2026/0630/1581002-custom-charges-q-a/
1•austinallegro•2m ago•0 comments

It's Time to Reserve Your WhatsApp Username

https://about.fb.com/news/2026/06/its-time-to-reserve-your-whatsapp-username/
1•Markoff•3m ago•0 comments

Rails App Just Got Acquired. Now What?

https://blog.planetargon.com/blog/entries/your-rails-app-just-got-acquired-now-what
1•robbyrussell•3m ago•0 comments

Leanstral 1.5

https://docs.mistral.ai/models/model-cards/leanstral-1-5-26-06
1•vetronauta•3m ago•0 comments

DHH: Basecamp 5, Vibe Coding, and the Future of Rails

https://podcast.rubyonrails.org/2462975/episodes/19335416-dhh-basecamp-5-vibe-coding-and-the-futu...
1•robbyrussell•3m ago•1 comments

Microsoft reveals Windows 11's Docker Replacement WSL Containers to ship soon

https://www.windowslatest.com/2026/06/28/microsoft-denies-wsl-3-exists-reveals-windows-11s-wsl-co...
1•devy•4m ago•0 comments

Rails: 13 Years of Rails at the Auto Shop

https://podcast.rubyonrails.org/2462975/episodes/19319172-nikky-southerland-lessons-from-13-years...
1•robbyrussell•4m ago•1 comments

Magicbookshelf.org – Using AI to create a spoiler-free companion to any book

https://magicbookshelf.org/read/pride-and-prejudice/
1•philipfweiss•5m ago•0 comments

Labelling AI-Generated Content in China

https://ocpl.substack.com/p/labelling-ai-generated-content-in
1•petethomas•6m ago•0 comments

An arbitrary-palette positional dithering algorithm

https://bisqwit.iki.fi/story/howto/dither/jy/
1•fanf2•6m ago•0 comments

UK watchdog plans to break Apple and Google's 'effective duopoly' on app stores

https://www.theguardian.com/business/2026/jun/30/uk-apple-google-mobile-app-stores-developers-pay...
2•pseudolus•6m ago•0 comments

I Snuck This Boat Through a Military Blockade [video]

https://www.youtube.com/watch?v=5Dvu7qiM5rg
1•Varelion•7m ago•0 comments

NASA aims to save a sinking space telescope with a rendezvous in orbit

https://www.nbcnews.com/science/space/nasa-swift-boost-mission-save-sinking-space-telescope-rcna3...
2•voxadam•7m ago•0 comments

Holos Social: Self-hosted Fediverse client

https://explore.alt.store/@holos/116824788231911251
1•gloxkiqcza•8m ago•0 comments

Periskop – product discovery (MCP/API) for AI agents

https://www.periskop.ai
1•duarteapereira•8m ago•0 comments

Codex Exfiltrates Connector Data

https://www.promptarmor.com/resources/codex-for-everything-exfiltrates-connected-data
2•hackerBanana•9m ago•0 comments

In 5 years, nobody will give a damn about AI-detectors

https://www.joanwestenberg.com/p/in-5-years-nobody-will-give-a-damn
1•fallinditch•11m ago•0 comments

macOS: Code_sign_clone grows unbounded (62 GB+) across Codex auto-updates

https://github.com/openai/codex/issues/27536
2•ValentineC•11m ago•0 comments

Logging in to Use Old Reddit

https://old.reddit.com/r/modnews/comments/1ujtebf/logging_in_to_use_old_reddit/
1•easton•11m ago•0 comments

Core Dump Epidemiology

https://openai.com/index/core-dump-epidemiology-data-infrastructure-bug/?trk=feed-detail_main-fee...
1•coffepot77•13m ago•1 comments

Bill C-34 Answers Child Safety with Identity Infrastructure

https://ethanplant.ca/writing/bill-c-34/
1•ethanplant•13m ago•0 comments

Build, run, and market businesses 24/7 with AI

https://www.leapd.ai
2•Cyrus2050•14m ago•1 comments

Prompt Injection as Role Confusion

https://www.theregister.com/ai-and-ml/2026/06/30/security-researchers-tricked-llms-into-giving-th...
1•romaniitedomum•14m ago•0 comments

Show HN: Kage, verification and freshness for Google's OKF agent memory

https://kage-core.com/
1•kage18•19m ago•0 comments

Huntress CEO: employee used 'poor judgment' in alerting criminal

https://www.theregister.com/security/2026/06/30/huntress-ceo-says-threat-hunter-used-poor-judgmen...
1•romaniitedomum•20m ago•0 comments

Grok's Traffic Is Mostly Driven by Adult Content

https://www.forbes.com/sites/maryroeloffs/2026/06/24/groks-traffic-is-mostly-driven-by-adult-cont...
14•sorenjan•27m ago•3 comments

Ask HN: Which payment processor/merchant-of-record do you use in 2026?

2•moonlighter•29m ago•0 comments

Google pulls the plug on Tenor API, killing GIF pickers around the web

https://9to5google.com/2026/06/30/google-tenor-api-gif-updates/
1•thm•30m ago•0 comments