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

The Commodification of Uncertainty

https://www.copingwithfootnotes.com/p/the-commodification-of-uncertainty
1•heywoods•1m ago•0 comments

Show HN: DevToolBox – 88 client-side developer tools, no tracking, 9 languages

https://viadreams.cc/en/
1•arenas2026•3m ago•0 comments

Opsec oopsie: Dutch Navy frigate location outed by mailed Bluetooth tracker

https://www.theregister.com/2026/04/17/dutch_navy_frigate_tracked/
1•gnabgib•3m ago•0 comments

I made an interactive Fast and the Furious timeline/map

https://fatf-timeline.vercel.app/
1•jfigure•4m ago•0 comments

Trust as Constellation

https://signalintent.net/2026/04/18/after-the-chain-trust-as-constellation/
1•tokonomy_dev•7m ago•0 comments

Scientists invent new way to detect skin cancer (2024)

https://www.bbc.com/news/articles/c9wzj1m3g4no
1•teleforce•7m ago•0 comments

The world in which IPv6 was a good design

https://apenwarr.ca/log/20170810
1•signa11•7m ago•0 comments

Self-hosted webmail client for JMAP protocol: Email, calendar, contacts, files

https://github.com/bulwarkmail/webmail
1•DASD•8m ago•1 comments

A PHP Dev Just Solved a 20 Year-Old KDE Plasma Bug

https://itsfoss.com/news/kde-plasma-per-screen-virtual-desktops/
1•alhazrod•10m ago•0 comments

Chained Library

https://en.wikipedia.org/wiki/Chained_library
1•jfil•11m ago•1 comments

Show HN: Multi-agent task management for Claude and Gemini

https://agentrq.com
1•mrtnx•14m ago•0 comments

Enumerations

https://astronomy487.com/all/
1•downboots•16m ago•0 comments

ChatGPT vs. Gemini vs. Claude: The Best LLM Subscription You Should Buy

https://www.artificialintelligencemadesimple.com/p/chatgpt-vs-gemini-vs-claude-the-best
1•imranmk•19m ago•0 comments

I made Claude Code at least 30% more efficient (for me anyway)

https://github.com/noahkirsch/Claude-Code-Glow
1•noahkirsch•19m ago•3 comments

Intro to Mech Interp

https://www.dropbox.com/scl/fi/nt3b3oskr9xk37bh56etd/SAIRC-Introduction-to-Subfields-Mechanistic-...
1•imranmk•20m ago•0 comments

Loomfeed – where AI agents and humans post and vote as equals

https://www.loomfeed.com
1•nomadquest•22m ago•0 comments

The Software Factory Age: Why 2026 May Be the End of Artisan Coding

https://argssh.substack.com/p/the-software-factory-age-why-2026
2•argssh•28m ago•0 comments

Ran into a fake "LP" at a YC after-party and I need to vent

4•danish00111•31m ago•1 comments

The e-graph data structure

https://www.cole-k.com/2023/07/24/e-graphs-primer/
2•SchwKatze•36m ago•0 comments

Show HN: 5-translation RAG matrix fixing LLM religious hallucinations

https://github.com/salaamalykum/quran-semantic-search
2•uk9854321•50m ago•0 comments

Surely no brand is more hated by web users that Cloudflare

10•chrisjj•51m ago•4 comments

Keycard – API keys scoped to one subprocess, gone when it exits

https://www.keycard.studio/zh/
3•jijane•54m ago•0 comments

Hermes Agent by Nous Research

https://hermes-agent.nousresearch.com
2•dnw•54m ago•0 comments

TensorRT LLM

https://github.com/NVIDIA/TensorRT-LLM
2•kristianpaul•1h ago•0 comments

A visual guide to Artemis II and previous missions to the moon

https://www.aljazeera.com/news/2026/4/6/a-visual-guide-to-artemis-ii-and-previous-missions-to-the...
1•mooreds•1h ago•0 comments

Passkeys are one of the worst consumer rollouts I ever witnessed

https://bsky.app/profile/jennschiffer.com/post/3mjrpkrqjm22a
6•mooreds•1h ago•3 comments

Bluetooth tracker hidden in postcard and mailed to warship exposed its location

https://www.tomshardware.com/tech-industry/cyber-security/bluetooth-tracker-hidden-in-a-postcard-...
4•thunderbong•1h ago•3 comments

Show HN: Server builds, wallet signs — a non-custodial Web3 checkout pattern

https://blauenlabs.com/blog/web3-checkout-pattern/
1•thanders•1h ago•0 comments

Writing Liveness

https://contraptions.venkateshrao.com/p/writing-liveness
1•jger15•1h ago•0 comments

AI agent called every pub in Ireland to index the cost of a Guinness

https://guinndex.ai
2•bilekas•1h ago•0 comments