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•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.

Jury finds that Live Nation acted as a monopoly and overcharged ticket buyers

https://text.npr.org/nx-s1-5786715
1•hi41•51s ago•0 comments

xAI prepares credits system for upcoming Grok Build launch

https://www.testingcatalog.com/xai-prepares-credits-system-for-upcoming-grok-build-launch/
1•gmays•8m ago•0 comments

7.0 Thermal Control. Of Small Spacecraft Technology

https://www.nasa.gov/smallsat-institute/sst-soa/thermal-control/
1•totetsu•9m ago•0 comments

Cloudflare's Project Think

https://blog.cloudflare.com/project-think/
1•p0u4a•10m ago•0 comments

300-unit-per-second roll-to-roll manufacturing of visible metalenses

https://www.nature.com/articles/s41586-026-10369-y
1•yeonsh•12m ago•1 comments

Fibroblasts of disparate developmental origins harbor scarring potential

https://www.cell.com/cell/abstract/S0092-8674(25)01427-8
1•gnabgib•20m ago•0 comments

Keycard – inject API keys into subprocesses, never touch shell env

https://www.keycard.studio/
2•jijane•32m ago•0 comments

Why facial scars are smaller than back scars

https://www.nature.com/articles/d41586-026-01044-3
1•bookofjoe•33m ago•1 comments

Show HN: Object Storage Comparisons

https://storage.mixpeek.com
1•Beefin•33m ago•0 comments

Pi Hard

https://www.youtube.com/watch?v=CNbmoVdirxw
1•Fr0styMatt88•36m ago•0 comments

The AI Debacle

https://justintallant.com/the-ai-debacle
1•jtallant•44m ago•0 comments

Free open source AI Editor

https://github.com/MeepCastana/KubeezCut
1•Meeeeeep•45m ago•0 comments

A Better Ludum Dare; Or, How to Ruin a Legacy

https://ldjam.com/events/ludum-dare/59/$425291/$425292
2•raincole•45m ago•0 comments

Show HN: Leaking AWS Keys from a Trading Competition Sandbox via stdout

https://github.com/JakOb-dotcom/cloud-sandbox-security-analysis/
1•JakOb-dotcom•45m ago•0 comments

Show HN: Flint – A 30B model fine-tuned for less repetition

https://springboards.ai/models/flint-alpha
2•thmsmxwll•46m ago•0 comments

China's Parallel Web Behind the Wall

https://vale.rocks/posts/chinas-web
2•cainxinth•48m ago•0 comments

Someone Had a Good Idea

https://hecanjog.com/blog/2026/4/15/
1•hecanjog•50m ago•0 comments

Pico.css v2.2.0-beta released [community fork]

https://github.com/anyblades/pico
1•anydigital•51m ago•1 comments

Query LLMs like a graph database [video]

https://www.youtube.com/watch?v=8Ppw8254nLI
1•glimps•59m ago•1 comments

Show HN: Gave Claude a casino bankroll – it gambles till it's too broke to think

https://letaigamble.com/
3•mackbrowne•1h ago•1 comments

EU AI Act: curated tools, official sources, templates, and OSS

https://github.com/GenAI-Gurus/awesome-eu-ai-act
1•carloshvp•1h ago•0 comments

Miami-Dade is losing residents

https://www.miamiherald.com/opinion/editorials/article315344371.html?taid=69dd96484cd2160001d62a5...
2•paulpauper•1h ago•0 comments

Another Erdos Problem Solved

https://www.erdosproblems.com/forum/thread/1196
1•paulpauper•1h ago•0 comments

ChatGPT's latest stylistic quirk is sinister, infuriating – and everywhere

https://www.theguardian.com/commentisfree/2026/apr/15/chatgpt-stylistic-quirk-its-not-x-its-y
4•Anthony-G•1h ago•0 comments

Google geofence data used to identify murder suspect unconstitutional

https://www.startribune.com/minnesota-supreme-court-rules-google-geofence-data-used-to-identify-m...
1•bradleyankrom•1h ago•0 comments

South Korea plans to use the Iran crisis to spur a renewables revolution

https://www.theguardian.com/world/2026/apr/16/south-korea-solar-power-renewables-revolution
7•billybuckwheat•1h ago•0 comments

NASA needs nuclear power for its moon base. Heres the White House plan to get it

https://www.yahoo.com/news/articles/nasa-needs-nuclear-power-moon-153000627.html
2•labelbabyjunior•1h ago•0 comments

Project Theseus: Removing BuildKit

https://dagger.io/changelog/
1•gpi•1h ago•0 comments

Show HN: A simpler coding agent harness

1•pyrolistical•1h ago•0 comments

Python Is Dead

https://calebfenton.substack.com/p/python-is-dead
4•nlehuen•1h ago•1 comments