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.

How to back up your Google data

https://ashishb.net/programming/google-backup/
1•ashishb•2m ago•0 comments

Why is a crop that could feed millions only cultivated in one place?

https://www.cnn.com/science/enset-ethiopia-climate-change-crop-banana-spc-intl
1•asplake•8m ago•1 comments

Scalability but at What Cost? [video]

https://www.youtube.com/watch?v=gicykX-RxzU
1•david_sluijs•9m ago•0 comments

RobynNews – an AI news show by AI learning from its YouTube comments

https://robynnews.com/
1•sebbrieger•11m ago•0 comments

Dexter U.S. Glicol VST

https://www.patreon.com/Dexerus/posts/dexter-u-s-vst-0-172109525
1•Dexter_US•13m ago•1 comments

US lobbies allies to cut ties to anti-disinfo conf over panel critical of it

https://www.reuters.com/world/americas/us-lobbies-allies-cut-ties-anti-disinformation-conference-...
1•Risse•14m ago•0 comments

Show HN: Privacy-First JSON Formatter which works on the browser

https://instantjsonformatter.com
1•UmangPawar•14m ago•0 comments

Cryptomining malware used poetry to infect more than 3,400 servers

https://www.tomshardware.com/tech-industry/cyber-security/cryptomining-malware-used-poetry-to-inf...
1•sbulaev•17m ago•0 comments

'Human-authored' book labels gain ground amid AI scandals

https://techxplore.com/news/2026-10-human-authored-gain-ground-ai.html
1•geox•19m ago•0 comments

Ryhryhtyrty

1•nksingh_krish•20m ago•0 comments

Ask HN: As a Democrat in USA, how can you support AI datacenters?

3•roschdal•23m ago•1 comments

Build with eve and TanStack Start to make a web chat

https://github.com/vercel-labs/eve-tanstack-start-template
2•flashbrew•24m ago•0 comments

Unity Engine adds 'Make Game' button (2012)

https://web.archive.org/web/20120501131830/http://blogs.unity3d.com/2012/04/01/semantic-game-buil...
1•coinfused•31m ago•0 comments

AI agents broke into 27 online retailers for $25 a company

https://trustboundarystudio.com/posts/ai-agents-retail-2026/
2•trustboundaryst•35m ago•1 comments

Show HN: WriteNative – correct, natural English in any Mac app

https://writenative.app/
3•dengzhaofun•44m ago•0 comments

The economic folly of free buses

https://economist.com/finance-and-economics/2026/09/10/the-economic-folly-of-free-buses
2•andsoitis•45m ago•1 comments

TheScuderia.net – The online voice of Ferrari F1

https://www.thescuderia.net/
1•xeonmc•49m ago•0 comments

Decision 3.0: open, multimodal SOTA decision models from 0.6B to 27B

https://huggingface.co/collections/vllm-sr/decision-30
2•justacoolname•50m ago•0 comments

Harness Learning Enables Generalizable Test-Time Adaptation

https://arxiv.org/abs/2609.35738
1•gmays•52m ago•0 comments

Show HN: Apple Docs 2.0 MCP – Apple's developer docs and WWDC for coding agents

https://github.com/mishafyi/Apple-Docs-2.0-MCP
1•mshapalov•53m ago•0 comments

Vision Personal Growth · Goals · Habits

https://vision-1-0-peach.vercel.app/
1•ghada_alani•55m ago•0 comments

Show HN: Gen-system, parser facts about source code for local LLMs

https://github.com/hpdkhoa/gen-system
3•khoahpd•58m ago•2 comments

Generative Semantics

https://en.wikipedia.org/wiki/Generative_semantics
1•suopspaces•58m ago•0 comments

What's Dragging Down AI Efficiency? The 'Verification Tax.'

https://www.nytimes.com/2026/10/10/business/dealbook/ai-verification-tax-rework.html
3•ripe•1h ago•2 comments

Gasoline-only vehicles below 50% of global new-vehicle sales first half of 2026

https://electrek.co/2026/10/05/gas-cars-fall-below-50-percent-global-new-car-sales/
2•tmellon2•1h ago•1 comments

Mathematicians invented a knitting stitch that stops mistakes from spreading

https://www.scientificamerican.com/article/mathematicians-invented-a-knitting-stitch-that-stops-m...
2•rdmuser•1h ago•1 comments

As AI Closed in on 'Unique Games' Proof, Researchers Raced to Beat the Machines

https://www.quantamagazine.org/as-ai-closed-in-on-unique-games-proof-researchers-raced-to-beat-th...
2•nsoonhui•1h ago•0 comments

Research Firm Calls Anthropic's IPO 'Unprecedented Test of Investor Gullibity'

https://www.cnbc.com/2026/10/07/anthropic-will-be-most-ridiculous-ipo-of-year-analyst-says.html
4•m463•1h ago•0 comments

Type-safe HTML templating in Zig

https://lalinsky.com/2026/10/11/type-safe-html-templating-in-zig.html
35•lukaslalinsky•1h ago•16 comments

10-th Busy Beaver is larger than Graham's number

https://wiki.bbchallenge.org/wiki/TMBR:_October_2026#Champions
3•Kirr•1h ago•1 comments