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.

Ask HN: How can I get rich by emigrating to USA and starting a business Q3 2026?

1•roschdal•1m ago•0 comments

Over 400 Malicious packages found in Arch AUR

https://lists.archlinux.org/archives/list/aur-general@lists.archlinux.org/
1•Hydrocarb0n•3m ago•1 comments

Former US execs plead guilty to aiding tech support scammers

https://www.bleepingcomputer.com/news/security/former-us-execs-plead-guilty-to-aiding-tech-suppor...
1•janandonly•4m ago•0 comments

Doclang-Project/Doclang

https://github.com/doclang-project/doclang
2•shallow-mind•11m ago•0 comments

Show HN: MicroECS – entity component system library in Python/NumPy

https://github.com/Meehai/microecs
1•meehai•16m ago•0 comments

Show HN: Real-time ISS tracker with live NOAA solar wind visualisation

https://mujib77.github.io/plasma-net/
2•mujib77•23m ago•0 comments

Microservices for the Benefits, Not the Hustle

https://kiss-and-solid.com/blog/microservices-for-the-benefits
1•WolfOliver•24m ago•0 comments

Matchmakers Are Busy, but Worried

https://www.tabletmag.com/sections/community/articles/matchmaker-business-booming
3•Michelangelo11•26m ago•0 comments

Humans prefer to walk anticlockwise, scientists find – but reason is unclear

https://www.theguardian.com/science/2026/jun/10/humans-prefer-to-walk-anticlockwise-scientists-fi...
2•helsinkiandrew•31m ago•1 comments

SSL Certificate Expiry Explained

https://urlwatch.io/blog/ssl-certificate-expiry.php
1•rajsuper123•35m ago•0 comments

AUR Report Thread

https://lists.archlinux.org/archives/list/aur-general@lists.archlinux.org/thread/FGXPCB3ZVCJIV7FX...
1•xiaoyu2006•35m ago•0 comments

AUR Packages Compromised with Infostealer and Rootkit

https://discourse.ifin.network/t/400-aur-packages-compromised-with-infostealer-and-rootkit/577
2•keyle•38m ago•0 comments

Zepto's published search architecture only applies to logged-in users

https://medium.com/@abhij89/zeptos-llm-search-works-great-unless-you-re-a-new-user-c13e138de331
1•abhij89•40m ago•0 comments

Countdown calendar for Fable 5 leaving Claude Code

https://fable-farewell-calendar.pages.dev/
2•meowokIknewit•41m ago•2 comments

Guardian Runtime – Track AI agents token usage and enforce API budgets

https://github.com/ashp15205/guardian-runtime
4•ashp15205•41m ago•0 comments

LLM for the ESP32-S3

https://github.com/harmansingh4163-ai/ESP-32-s3-Story-maker-LLM
1•Harman-Singh123•42m ago•0 comments

Digital Sovereignty Becomes an Imperative as the US Reads Dutch Emails

https://www.korte.co/2026/06/11/digital-sovereignty-becomes-an-imparative-as-the-us-reads-dutch-e...
2•dotcoma•44m ago•0 comments

Remote Magic Trackpad – Control Mac's Trackpad and Keyboard from Android Device

https://play.google.com/store/apps/details?id=com.magic.trackpad.free&hl=en_US
1•sks147•47m ago•1 comments

There Is Life Before Main in Rust

https://grack.com/blog/2026/06/11/life-before-main/
1•y1n0•53m ago•0 comments

Stimulants Are the Killer of Generalists

2•anonymous-bear•58m ago•2 comments

Scientists unlock the secret behind the Venus flytrap's snap

https://www.reuters.com/science/scientists-unlock-secret-behind-venus-flytraps-snap-2026-06-11/
2•1659447091•1h ago•0 comments

Does Music Help You Focus? (2022)

https://rdegges.com/2022/does-music-help-you-focus/
2•svenfaw•1h ago•0 comments

Show HN: Landcheck – is coordinate is on land?

https://jaakla.github.io/trifold/landcheck.html
1•jaakl•1h ago•0 comments

Senate wants to force US to share sensitive Intel with Israel

https://responsiblestatecraft.org/us-intelligence-israel/
2•WarOnPrivacy•1h ago•1 comments

Peekaboo Timer – Free Boxing and Sports Timer

https://apps.apple.com/ua/app/peekaboo-timer/id6768093897
1•Romachamp•1h ago•0 comments

Why CrabNebula Cloud is now free: Tauri, the CRA

https://crabnebula.dev/blog/why-cloud-is-free/
1•DanielKehoe•1h ago•0 comments

How to (Inadvertently) Sabotage Your Organization (2019)

https://sloanreview.mit.edu/article/how-to-inadvertently-sabotage-your-organization/
2•thelastgallon•1h ago•0 comments

Infineon to open fab in Germany as part of sovereignty push

https://www.bloomberg.com/news/articles/2026-06-12/infineon-to-open-german-chip-fab-as-part-of-eu...
2•SanjayMehta•1h ago•1 comments

Midnight8Ball, a fast browser-based casino game experiment

https://midnight8ball.com
1•Midnight8ball•1h ago•1 comments

Ask HN: How many $SPCX shares did you request and how many did you get?

1•GMoromisato•1h ago•0 comments