frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Steve Jobs in Exile: NeXT and the Making of a Comeback [video]

https://www.youtube.com/watch?v=WnZeiw8q4Wk
1•tambourine_man•2m ago•0 comments

Gardeners often hear about supposed hacks and quick fix. Here are some debunked

https://apnews.com/article/gardening-myths-vinegar-tilling-watering-c07faf7472e7a2dc40d3886b94f1b508
1•rawgabbit•6m ago•0 comments

Dubious Chinese Carbon Projects Expose Depth of European Market's Flaws

https://www.bloomberg.com/graphics/2026-europe-china-dubious-carbon-credits/
1•RestlessMind•9m ago•0 comments

TypeScript's number type is a lie

https://bluepnume.medium.com/typescripts-number-type-is-a-lie-6b3b10dd8f54
1•bluepnume•18m ago•1 comments

Scientists say they've reversed brain aging with a simple nasal spray

https://www.sciencedaily.com/releases/2026/05/260526022018.htm
5•bookmtn•21m ago•0 comments

A 3D Lattice Boltzmann solver with 200x compute acceleration

https://frontend-seven-delta-66.vercel.app/
1•kauai1•32m ago•0 comments

Ask HN: Would you buy a TRON: legacy neon line clothes?

1•alonsovm44•36m ago•2 comments

Hacker Dojo

https://en.wikipedia.org/wiki/Hacker_Dojo
1•Austin_Conlon•37m ago•0 comments

Apple, Google push for judicial oversight in Canada online safety bill

https://www.reuters.com/legal/litigation/apple-google-push-judicial-oversight-canada-online-safet...
1•Cider9986•42m ago•0 comments

Paxton Wins Texas Republican Primary After Trump Endorsement

https://www.reuters.com/world/us/cornyn-fights-political-life-against-trump-endorsed-paxton-texas...
4•Cider9986•43m ago•0 comments

Book the lakehouse – A beautiful OSS booking calendar for holiday homes

https://github.com/shrimbly/book-the-lakehouse
1•falloon•44m ago•0 comments

Mined in America Act Would Put Bitcoin Network at Risk

https://www.therage.co/mined-in-america-act-bitcoin-at-risk/
3•Cider9986•48m ago•0 comments

New Class of Gaming Systems (Hardware): Imagination Based Gaming [video]

https://www.youtube.com/shorts/TU0SFNk0hg0
2•AleBog•52m ago•1 comments

AV2 codec may be finalized on May 29

https://videocardz.com/newz/av2-codec-may-be-finalized-on-may-29
1•rguiscard•54m ago•0 comments

Effect of Vitamin D2 Supplementation on 25-Hydroxyvitamin D3 Status

https://academic.oup.com/nutritionreviews/advance-article/doi/10.1093/nutrit/nuaf166/8256613
1•bookofjoe•55m ago•0 comments

Webwright: A Terminal Is All You Need for Web Agents

https://www.microsoft.com/en-us/research/articles/webwright-a-terminal-is-all-you-need-for-web-ag...
1•carlual•58m ago•0 comments

Alberta Separatism

https://en.wikipedia.org/wiki/Alberta_separatism
2•lisper•59m ago•0 comments

"my battery is low and it's getting dark" – were never sent from Mars

https://spacedaily.com/b-the-opportunity-rovers-famous-last-words-my-battery-is-low-and-its-getti...
2•wglb•59m ago•0 comments

So, Where Does Next-Token Prediction Leave Us?

https://pop.rdi.sh/where-does-next-token-prediction-leave-us/
2•0x5FC3•1h ago•0 comments

Tunecat: Simple Internet Radio

https://codeberg.org/lindenii/tunecat/
3•croottree•1h ago•0 comments

Trump Administration to Send Americans Exposed to Ebola to Kenya

https://www.nytimes.com/2026/05/26/us/politics/trump-ebola-kenya.html
7•osnium123•1h ago•5 comments

Netherlands blocked US company from buying provider of Dutch digital identity

https://thenextweb.com/news/the-netherlands-just-blocked-a-us-company-from-buying-the-cloud-provi...
3•rguiscard•1h ago•1 comments

Aurora DSQL and the Circle of Life

https://marc-bowes.com/dsql-circle-of-life.html
1•croottree•1h ago•0 comments

Ian's Shoelace Site

https://www.fieggen.com/shoelace/index.htm
3•jmague•1h ago•2 comments

Add your vision and values for earth and see others'

https://wherearewegoing.earth
1•kevinshah•1h ago•0 comments

Show HN: Windows 8 inspired transfer speed graph

https://speed-transfer.arijs.org/
1•rhengles•1h ago•0 comments

Show HN: Hyper, the self driving company brain

https://heyhyper.ai/
1•shainvs•1h ago•0 comments

Kanban Bowl – A lightweight Kanban board inside VS Code

https://github.com/yannickboog/kanban-bowl
1•Schaefle•1h ago•0 comments

Stripe is friendly to "friendly fraud"

https://www.gingerlime.com/2026/stripe-seem-friendly-to-friendly-fraud/
77•gingerlime•1h ago•22 comments

Using SwiftUI to Build a Mac-Assed App in 2026

https://pfandrade.me/blog/mac-assed-swiftui-app/
1•birdculture•1h ago•0 comments