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•10mo 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•10mo 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•10mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•10mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

NASA's Lunar Gateway space station is out. Moon bases are in

https://www.space.com/space-exploration/artemis/nasas-lunar-gateway-space-station-is-out-moon-bas...
1•divbzero•2m ago•0 comments

Cognitive Rust Belt: Hollowing Human Analytic Capacity by Delegating to Machines

https://www.sentinelone.com/blog/the-implementation-blind-spot-why-organizations-are-confusing-te...
1•walterbell•3m ago•0 comments

New Strides Made on Deceptively Simple 'Lonely Runner' Problem

https://www.quantamagazine.org/new-strides-made-on-deceptively-simple-lonely-runner-problem-20260...
1•downboots•4m ago•0 comments

Harnessing Hype to Teach Empirical Thinking with AI

https://arxiv.org/abs/2604.01110
2•azhenley•19m ago•0 comments

A truck driver spent 20 years making a scale model of every building in NYC

https://www.smithsonianmag.com/smart-news/a-truck-drive-spent-20-years-making-this-astonishing-sc...
2•1659447091•19m ago•0 comments

VPN ban 'on the table' as Online Safety Act could be expanded

https://www.express.co.uk/news/uk/2127999/vpn-ban-on-table-online
2•rvnx•24m ago•0 comments

Grokking wavefunction collapse in actual quantum systems

https://www.asiae.co.kr/article/2026032509340425584
1•vi_sextus_vi•32m ago•0 comments

Show HN: We built a camera only robot vacuum for less than 300$ (Well almost)

https://indraneelpatil.github.io/blog/2026/robot-vacuum/
1•indraneelpatil•33m ago•0 comments

Scientists found a protein that drives brain aging – and how to stop it

https://www.sciencedaily.com/releases/2026/04/260405065236.htm
2•mikhael•35m ago•0 comments

Anthropic Removed MagicDocs from Claude Code

https://translunar.io/blog/2026/04/05/magicdocs-removed/
3•translunar•42m ago•1 comments

Show HN: REST API for Gymnasium (fka OpenAI Gym) reinforcement learning library

https://github.com/cloudkj/gymnasium-http-api
1•cloudkj•43m ago•0 comments

Mark Andreessen: "AGI is here"

https://twitter.com/i/status/2040922415551959338
1•SergeAx•45m ago•1 comments

Can your AI rewrite your code in assembly?

https://lemire.me/blog/2026/04/05/can-your-ai-rewrite-your-code-in-assembly/
2•sysoleg•53m ago•0 comments

Wizards of Leroy (and Wrico) Lettering

https://kleinletters.com/Blog/wizards-of-leroy-and-wrico-lettering/
1•rgovostes•54m ago•0 comments

More teens are getting hooked on gambling, often going undetected

https://text.npr.org/nx-s1-5762276
2•1659447091•58m ago•0 comments

NativeRest – Native REST API Client

https://nativesoft.com/
1•KomoD•1h ago•0 comments

RSA WARNING

https://zenodo.org/records/19435034
2•sunbagger•1h ago•0 comments

NSA and IETF, Part 7

https://blog.cr.yp.to/20260405-votes.html
2•Tomte•1h ago•0 comments

The Extinction of the Junior Engineer

https://michaelnovati.substack.com/p/the-extinction-of-the-junior-engineer
1•michaelnovati•1h ago•1 comments

An Inside Look at OpenAI and Anthropic's Finances Ahead of Their IPOs

https://www.wsj.com/tech/ai/openai-anthropic-ipo-finances-04b3cfb9
3•1vuio0pswjnm7•1h ago•1 comments

Realtime monitor of count of animals slaughtered in the US this year

https://animalclock.org/
3•chirau•1h ago•2 comments

Bump Mesh: A vibe-coded, open-source tool for texturing 3D prints

https://www.youtube.com/watch?v=rTBkjR7JvzI
2•kmmbvnr_•1h ago•0 comments

Drop, formerly Massdrop, ends most collaborations and rebrands under Corsair

https://drop.com/
2•stevebmark•1h ago•0 comments

TSMC plans 12 fabs in Arizona as supply chain shifts from passive to active

https://www.digitimes.com/news/a20260402PD213/tsmc-arizona-fab-expansion-supply-chain-usa.html
2•alephnerd•1h ago•0 comments

Stop Pushing AI Generated Code to Git

https://blog.tombert.com/Posts/Technical/2026/04-April/Stop-Pushing-AI-Generated-Code-to-Git
4•tombert•1h ago•0 comments

Eight years of wanting, three months of building with AI

https://simonwillison.net/2026/Apr/5/building-with-ai/
1•doppp•1h ago•1 comments

The Reason VO₂ Max Declines with Age

https://www.gethealthspan.com/research/article/why-vo2-max-declines-with-age
14•dtawfik1•1h ago•1 comments

Hierarchical-Context-Compressor

https://github.com/reyavir/hierarchical-context-compressor
1•handfuloflight•1h ago•0 comments

Hacker News Rank – Chrome Web Store

https://chromewebstore.google.com/detail/hacker-news-rank/hidhfijjhnnajlkikijcnmpgamfjocdh
2•shanyat•1h ago•0 comments

GK4I: Guidance Key for Insights(Beta)

https://www.gk4i.com/
1•nashwar•1h ago•0 comments