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

6.1M workers with 86% women, face AI disruption without a safety net

https://www.cryptopolitan.com/6-1-million-workers-with-86-women-face-ai-disruption-without-a-safe...
2•cumo•5m ago•0 comments

Why One of OpenAI's Top Researchers Walked Away [video]

https://www.youtube.com/watch?v=VaCq4u5c78U
1•gmays•5m ago•0 comments

Clawdbot-Webchat-Lite

https://github.com/study8677/clawdbot-webchat-lite
2•study8677•23m ago•0 comments

Gold Breaks $5.000/Oz

https://goldprice.org/?new
3•csomar•24m ago•0 comments

We're on the News

https://www.abc.net.au/news/2026-01-21/qld-teenagers-create-coding-app-code-lab-sri-lanka-student...
1•thadusTeam•25m ago•0 comments

A global startup marketplace where investors can message founders directly

https://azion.lovable.app
1•Aryannnmm•29m ago•1 comments

'Halo' Actor Steve Downes Asks You Not to Remake His Voice with AI

https://gizmodo.com/halo-actor-steve-downes-asks-you-not-to-remake-his-voice-with-ai-2000713343
1•cebert•30m ago•0 comments

Iran's internet blackout may become permanent, with access for elites only

https://restofworld.org/2026/iran-blackout-tiered-internet/
15•siev•30m ago•5 comments

Running the Stupid Cricut Software on Linux

https://arthur.pizza/2025/12/running-stupid-cricut-software-under-linux/
1•starkparker•43m ago•0 comments

Gold blasts past $5k to record high on safe-haven rush

https://www.reuters.com/business/finance/gold-rushes-record-high-above-5000oz-2026-01-25/
4•SilverElfin•45m ago•3 comments

Show HN: InsAIts V2 – Real-time monitoring for multi-agent AI communication

https://github.com/Nomadu27/InsAIts
1•MrSteaddy•51m ago•0 comments

Show HN: (29x faster)Rapidvalidators - Python's validators lib rewritten in Rust

https://github.com/vivekkalyanarangan30/rapidvalidators
2•vivekkalyanaran•55m ago•0 comments

Flying Toasters

https://www.bryanbraun.com/after-dark-css/all/flying-toasters.html
3•sadeshmukh•58m ago•1 comments

Cloudflare-level AI-LLM bot protection, but data is under your control

https://github.com/cocky-punch/fantasma_cero
2•cascada•59m ago•0 comments

Trump says US used secret weapon to disable Venezuelan equipment in Maduro raid

https://apnews.com/article/trump-venezuela-weapon-maduro-drug-strikes-c052fd24a350a04a458f501b4b5...
6•colinprince•1h ago•5 comments

The Politics of Struggling Americans

https://www.gojiberries.io/the-politics-of-struggling-americans/
3•neehao•1h ago•0 comments

A Poem That Behaves Like a Machine

https://medium.com/@darwingosal/a-poem-that-behaves-like-a-machine-737fce2791f4
2•CharlesW•1h ago•0 comments

Environmentalists worry Google behind bid to control Oregon town's water

https://www.sfgate.com/national-parks/article/mount-hood-water-google-21307223.php
12•voxadam•1h ago•0 comments

Gemini team, please add URL query parameter support (?q= or?prompt=)

1•hiddenest•1h ago•1 comments

A New Hardware Class of 2026

https://www.recordsofthought.com/signal-to-source
1•colinprince•1h ago•0 comments

The Atelier: Craft, Code, and the Coming Guild

https://jamesmunsch.com/words/2026-01-18-the-atelier--craft--code--and-the-coming-guild.html
1•b1n•1h ago•1 comments

Show HN: WhyThere – Compare cities side-by-side to decide where to move

https://whythere.life
1•daversa•1h ago•0 comments

We built an AI coding tool that stores nothing on our servers

https://shakespeare.diy
5•ravenbitcoin•1h ago•3 comments

Central Banks Hit Next Stage in Cross-Border Payment Project

https://www.pymnts.com/news/cross-border-commerce/cross-border-payments/2026/central-banks-hit-ne...
3•shorsher•1h ago•0 comments

NukeCast: If it happened today, where would the fallout go

https://nukecast.com/
4•todd_tracerlab•1h ago•1 comments

Loki Mode: Autonomous System for Claude, Codex and Gemini CLI

https://github.com/asklokesh/loki-mode
1•slogansand•1h ago•2 comments

Windows 11's Patch Tuesday nightmare: Microsoft says some PCs might not boot

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
5•speckx•1h ago•1 comments

It Was One Guy

https://dannyman.toldme.com/2026/01/26/it-was-one-guy/
4•saulpw•1h ago•0 comments

The pandemic's hidden toll: chronic conditions left undiagnosed

https://medicalxpress.com/news/2026-01-pandemic-hidden-toll-millions-chronic.html
3•WaitWaitWha•1h ago•1 comments

Japan Bond Crash Unleashes a $7T Risk for Global Markets

https://www.bloomberg.com/news/features/2026-01-25/japan-bond-market-crash-raises-alarm-for-globa...
3•zerosizedweasle•1h ago•1 comments