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.

Rubygem typosquat campaign deploys Windows stealer

https://opensourcemalware.com/blog/stubmaker-rubygems-windows-infostealer
1•6mile•4s ago•0 comments

A Tour of Magit's Status Interface

https://heiwiper.com/posts/magit-status-tour/
1•birdculture•3m ago•0 comments

BanProof – AI that scans TikTok Shop videos for violation points before you post

https://banproof.io/
1•Pratham3690•4m ago•0 comments

Credentio: Open-Source C++ Library for C2PA Content Credentials from Google

https://developers.googleblog.com/introducing-credentio-open-source-c-library-for-c2pa-content-cr...
1•vinayakborkar•4m ago•0 comments

Silver Lake in talks to buy Workday, sources say

https://www.reuters.com/world/silver-lake-talks-buy-workday-sources-say-2026-08-13/
1•healsdata•6m ago•0 comments

Jason Steffen's Home Page

https://www.physics.unlv.edu/~jsteffen/airplanes.html
1•thunderbong•7m ago•0 comments

Dividend Puzzle

https://en.wikipedia.org/wiki/Dividend_puzzle
1•rzk•18m ago•0 comments

A 23-year-old founder built Radiant World into a $12B-a-year trading giant

https://www.msn.com/en-us/money/general/a-23-year-old-founder-built-radiant-world-into-a-12-billi...
1•petethomas•18m ago•0 comments

Enabling the next iteration of the borrow checker on nightly

https://blog.rust-lang.org/2026/08/04/enabling-polonius-alpha-on-nightly/
1•weinzierl•22m ago•0 comments

Stripe will reportedly acquire AI gateway startup OpenRouter for $7B+

https://techcrunch.com/2026/08/16/stripe-will-reportedly-acquire-ai-gateway-startup-openrouter-fo...
9•sbulaev•26m ago•2 comments

What Early Internet Hackers Understood That We Forgot [video]

https://www.youtube.com/watch?v=XHeMsXDyw2A
1•pierrephpguru•27m ago•0 comments

Agents Aren't Software

https://runta.com/blog/agents-arent-software/
2•jinqueeny•27m ago•1 comments

Show HN: Slick – I built a search engine where you control the ranking

https://slicksearchhq.com/
1•nox21125•30m ago•0 comments

The billionaire threatening to upend Wall Street

https://www.ft.com/content/cf87b6cd-f940-4b09-b072-7da36faa183f
1•petethomas•33m ago•0 comments

Single-User Inference Card

https://markohaberl.substack.com/p/single-user-inference-card
1•mhaberl•39m ago•1 comments

SINR: Signal-to-interference-plus-noise ratio

https://en.wikipedia.org/wiki/Signal-to-interference-plus-noise_ratio
2•teleforce•40m ago•0 comments

AI Slop Is Real

https://aichatspot.online/what-is-ai-slop-and-does-it-really-ruin-youtube/
1•coinpress•40m ago•0 comments

Anthropic CEO says the way for AI to win over the public is to cure cancer

https://www.businessinsider.com/anthropic-ceo-dario-amodei-ai-public-opinion-cure-cancer-2026-8
9•wertyk•42m ago•11 comments

Show HN: Punyecs – A puny ECS library based on class attributes and querying

https://github.com/Modular-Game-Components/punyecs
1•thyrgle•43m ago•0 comments

Frontier models, transparency and trust; a new golden age in research for some?

https://scholarlyfutures.substack.com/p/frontier-models-transparency-and
2•JohnHammersley•48m ago•0 comments

Show HN: TKeeper – OSS machine identities without a single point of compromise

https://tkeeper.org
1•_qnt•54m ago•0 comments

Show HN: ChatGPT and Claude export viewer that runs locally in the browser

https://www.vinaa.ai/tools/ai-chat-history-browser/
1•sujee•55m ago•0 comments

Ukraine Finds Nvidia AI Chip in New Russian Missile, HUR Says

https://www.kyivpost.com/post/82225
7•osivertsson•1h ago•1 comments

Nobody Knows Anything

https://www.strangeloopcanon.com/p/nobody-knows-anything
2•gtirloni•1h ago•0 comments

Off-Sprey

https://offsprey.com/
1•voidmain0001•1h ago•1 comments

Apologia for the Old Ball

https://ponnekanti.net/oldball/
1•reasonableklout•1h ago•0 comments

Smarter – open-source, declarative AI authoring platform (Django, K8s-inspired)

https://github.com/smarter-sh/smarter
1•lpm0073•1h ago•0 comments

Sperm whales in 19th century shared ship attack information – Whales

https://www.theguardian.com/environment/2021/mar/17/sperm-whales-in-19th-century-shared-ship-atta...
4•bilsbie•1h ago•1 comments

Show HN: I Turned Apple Calendar into Tetris

https://github.com/EvanZhouDev/calendar-tetris
2•EvanZhouDev•1h ago•0 comments

Ghosts of the Past and Devils of the Present

https://thenewcuriosityshop.substack.com/p/ghosts-of-the-past-and-devils-of
1•benbreen•1h ago•0 comments