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.

I built an AI that analyzes rental leases before you sign

https://goleazly.com/
1•octadevcba•5m ago•0 comments

Autoresearch on Steroids with Sandboxes

https://www.tensorlake.ai/blog/autoresearch-on-steroids-with-sandboxes
1•cooleel•9m ago•0 comments

Global warming is making the strongest hurricanes stronger

https://yaleclimateconnections.org/2026/04/global-warming-is-making-the-strongest-hurricanes-stro...
2•pier25•12m ago•0 comments

Claude Monitor Track token usage, costs, and tool calls for Claude Code sessions

https://github.com/szaher/claude-monitor
1•szaher•13m ago•0 comments

Suspend vs. Snapshot: Pause a Sandbox or Save It for Reuse?

https://www.tensorlake.ai/blog/suspend-vs-snapshot-pause-a-sandbox-or-save-it-for-reuse
1•cooleel•14m ago•0 comments

A content-aware loudness processor with emergent non-linear behavior

https://github.com/aston89/CALP-Content-Aware-Loudness-Processor
2•Aston89•14m ago•0 comments

Vakra: Reasoning, Tool Use, and Failure Modes of Agents

https://huggingface.co/blog/ibm-research/vakra-benchmark-analysis
2•gmays•17m ago•0 comments

Kitum Cave: A Natural Wonder Hosting a Deadly Disease

https://explorersweb.com/kitum-cave-deadly-disease/
3•thunderbong•19m ago•0 comments

Mammals cannot be cloned infinitely, Japanese mouse study shows

https://www.japantimes.co.jp/news/2026/04/15/japan/science-health/mammals-cannot-be-cloned-infini...
2•libpcap•23m ago•0 comments

Solitaire simulator for finding the best strategy: Current record is 8.590%

https://github.com/dacracot/Klondike3-Simulator
1•PaulHoule•25m ago•0 comments

Google Opens Personal Intelligence AI to All US Users

https://www.heygotrade.com/en/news/google-ai-expansion-challenges-microsoft-apple/
1•demiurges•27m ago•0 comments

Anyone used this new tool?

https://vybsly.ai/about
20•robertbfl•28m ago•3 comments

Robots walked outdoors at a public-road event in Akihabara, Tokyo

https://www.youtube.com/watch?v=142d-OF7GeA
1•meganetaaan•34m ago•0 comments

Inventor of Heelys Dies at 71

https://www.nytimes.com/2026/04/16/business/roger-adams-dead.html
2•nxobject•38m ago•0 comments

I Built My Dream Bug Tracking Software in a Week

https://markjardine.com/blog/i-built-my-dream-bug-tracking-software-in-a-week
1•sashk•47m ago•0 comments

AI companies are buying the Slack data of failed startups

https://twitter.com/_iainmartin/status/2044758204773486925
5•harambae•52m ago•2 comments

DARPA builds AI to investigate China's claim it can break military encryption

https://www.scientificamerican.com/article/darpa-built-an-ai-to-fact-check-enemy-weapons-claims/
2•Jimmc414•54m ago•0 comments

New NTFS File-System Driver Submitted for Linux 7.1

https://www.phoronix.com/news/New-NTFS-Driver-Submitted-Linux
4•Bender•55m ago•0 comments

Much Ado about Protein

https://www.theverge.com/column/897715/optimizer-protein-proteinmaxxing-proteinwashing-wellness
1•paulpauper•56m ago•0 comments

EP 172: SuperBox

https://darknetdiaries.com/episode/172/
2•paulpauper•57m ago•0 comments

The Patchwright – AI Assisted Short Film

https://www.youtube.com/watch?v=-Rzl7nUdEs4
1•gradus_ad•58m ago•0 comments

The scientific case for being nice to your chatbot

https://www.platformer.news/chatbot-emotion-research-anthropic-alignment-interpretability/
1•herbertl•58m ago•0 comments

The most dangerous student on campus

https://hollisrobbinsanecdotal.substack.com/p/the-most-dangerous-student-on-campus
1•HR01•59m ago•0 comments

Rust 1.95 Released with Several Improvements

https://www.phoronix.com/news/Rust-1.95-Released
2•Bender•1h ago•0 comments

The tech jobs bust is real. Don't blame AI (yet)

https://www.economist.com/finance-and-economics/2026/04/13/the-tech-jobs-bust-is-real-dont-blame-...
1•pseudolus•1h ago•1 comments

MAGA Indians Went All in on Trump. Many Right-Wingers Can't Stand Them

https://www.wired.com/story/maga-indians-went-all-in-on-trump/
8•aanet•1h ago•2 comments

Datastar v1 Released – The hypermedia framework

https://github.com/starfederation/datastar
1•vyrotek•1h ago•1 comments

Pixar Movies, Definitively Ranked

https://www.gq.com/story/the-best-pixar-movies-definitively-ranked
1•mooreds•1h ago•0 comments

It's Time to End the War on Salt (2011)

https://www.scientificamerican.com/article/its-time-to-end-the-war-on-salt/
3•downbad_•1h ago•1 comments

Show HN: LabelCompass, a new website to check for record labels

https://labelcompass.pages.dev/
1•telui•1h ago•0 comments