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.

Making film archives searchable with machine learning

https://huggingface.co/spaces/davanstrien/prelinger-moments-space
1•cmcollier•2m ago•0 comments

Show HN: I Created Canva Alternative

1•singhH11•3m ago•0 comments

Concrete Is Damaging the Planet, While Defending It from Climate Change

https://www.bloomberg.com/features/2026-world-of-concrete/
1•speckx•3m ago•0 comments

Brute Intelligence

https://benn.substack.com/p/brute-intelligence
1•gmays•3m ago•0 comments

I built a platform that lets startups launch affiliate programs in minutes

https://partnac.com
2•spatocode•4m ago•0 comments

Compact GPS-enabled LoRa mesh communicator

https://specfive.com/products/spec5-minitrekker-mkii
1•DanielSusca•4m ago•0 comments

Kelly Criterion Simulator

https://kellysimulator.com/
1•aleyan•5m ago•0 comments

Ask HN: What E-Reader to Buy?

3•conor_f•7m ago•0 comments

Making the Rails Default Job Queue Fiber-Based

https://paolino.me/solid-queue-doesnt-need-a-thread-per-job/
1•earcar•7m ago•0 comments

LLM-mock – open-source REST API to test LLM integrations for real

https://github.com/axium-lab/llm-mock
1•luisperis1011•7m ago•0 comments

BreakMargin – Break-even calculator for live trading-card sellers

1•plus8bit•8m ago•0 comments

Nanocoder: A local coding agent, now with a native VS Code sidebar

https://nanocollective.org/blog/nanocoder-v1290-native-vs-code-gui-subagent-attach-prompt-scrubbi...
1•mrspence•9m ago•0 comments

binpatch

https://github.com/BYK/binpatch
1•tosh•9m ago•0 comments

Sync reading progress between Audiobookshelf and KOReader

https://github.com/cporcellijr/bookbridge
1•itchingsphynx•11m ago•0 comments

Miles of film and a bulb as hot as the sun – projecting The Odyssey

https://www.bbc.com/news/articles/cq564069j1eo
1•theanonymousone•12m ago•0 comments

SG Strings Don't Vibrate the Way You Think [video]

https://www.youtube.com/watch?v=sYdXa_yp0fc
1•sohkamyung•12m ago•0 comments

Hivemind wrote 19 skills from my coding history; the best part was the refusal

https://medium.com/data-science-collective/hivemind-wrote-19-skills-from-my-coding-history-the-be...
1•sebuzdugan•12m ago•0 comments

Get-md now preserves Mermaid diagrams through document-to-Markdown conversion

https://nanocollective.org/blog/get-md-v170-mermaid-diagrams-survive-the-conversion-end-to-end-80
1•mrspence•12m ago•0 comments

Show HN: A Toy Sound Generator

https://toy-sound.surge.sh/
1•stagas•14m ago•0 comments

When transit passes were designed by hand

https://letterformarchive.org/news/milwaukee-transit-passes/
2•nate•15m ago•0 comments

Situational Awareness Down 67% in July in AI Stock Rout

https://www.wsj.com/finance/investing/situational-awareness-down-67-in-july-in-ai-stock-rout-cd19...
13•pondsider•16m ago•2 comments

Pac Maps

https://profrino.github.io/pac-maps/
2•tobadzistsini•16m ago•0 comments

US investigating if Iran was behind cyberattack on water systems in seven states

https://www.cbsnews.com/news/us-investigating-iran-cyberattack-minnesota-water-systems/
5•ck2•17m ago•1 comments

Predicted observability of the Aug. 5 Falcon 9 upper stage lunar impact

https://arxiv.org/abs/2607.23904
1•Thorondor•18m ago•0 comments

Lips Scheme – Powerful Scheme Based Lisp in JavaScript

https://lips.js.org/
1•sourdecor•18m ago•0 comments

Refactoring a Deity

https://olliegreen.info/posts/12/refactoring-a-deity/
1•Oarch•20m ago•0 comments

Trump Admin Weighs $100k Fee for Foreign Students to Work Post-Grad (OPT)

https://news.bloomberglaw.com/daily-labor-report/trump-weighs-100-000-fee-for-foreign-students-to...
1•alephnerd•22m ago•2 comments

Ask HN: I created Canva Alternative with 200+ Tools

3•HSK11•22m ago•2 comments

The creator of Node.js asks if anyone still uses an IDE

https://twitter.com/rough__sea/status/2082882494651842809
2•aanthonymax•22m ago•1 comments

Am29000 emulator for windowed OS in machine code (1996)

https://github.com/nanochess/Am29000
2•nanochess•22m ago•0 comments