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.

Show HN: A linear-time approach to P vs. NP via Information Noise Subtraction

https://zenodo.org/records/18188972
1•alemonti06•1m ago•1 comments

The AI bubble doesn't *require* AI

1•cadabrabra•1m ago•0 comments

IonQ Acquires Seed Innovations to Make Quantum Computing Act Like Software

https://www.siliconsnark.com/ionq-acquires-seed-innovations-to-make-quantum-computing-act-like-so...
1•SaaSasaurus•4m ago•0 comments

Poll: Trump voters support military intervention in more countries

https://www.politico.com/news/2026/01/28/trump-is-threatening-strike-iran-his-supporters-wouldnt-...
1•JumpCrisscross•4m ago•0 comments

Signs god is saying soon

https://applygodsword.com/3-signs-god-is-saying-soon/
1•marysminefnuf•5m ago•0 comments

It's incredible. It's terrifying. It's MoltBot

https://1password.com/blog/its-moltbot
1•duck•5m ago•0 comments

Death of an Indian Tech Worker

https://restofworld.org/2026/india-tech-workers-crisis-suicide/
3•adrianwaj•6m ago•0 comments

US Company Ubiquiti Aids Russian Military [video]

https://www.youtube.com/watch?v=8KyMY9i__Ks
4•tacheiordache•6m ago•0 comments

Show HN: Lexiso – Authorization layer for AI agents that spend money

1•Deonnroberts•6m ago•0 comments

Show HN: Vietnam Elections (open, source-linked datasets and site)

https://bamboo-filing-cabinet.github.io/vietnam-elections/
1•vietthan•6m ago•0 comments

Coding agents are a new infrastructure primitive

https://www.mesa.dev/blog/coding-agents-are-infra
1•remolacha•7m ago•0 comments

Fork and Make

https://github.com/gabrilend/ai-stuff
1•meldowin•8m ago•1 comments

Show HN: Ignite – Run Firecracker Micro-VMs with a Docker-Like CLI (Rust)

https://github.com/Subeshrock/micro-vm-ecosystem
1•Subesh•10m ago•1 comments

The Artificial Man

https://jack-bradshaw.com/journal/item/the-artificial-man/
1•jackbradshaw•11m ago•0 comments

Ask HN: Feature request: include the second path segment for GitHub URLs

3•rbalicki•16m ago•0 comments

LLMs sabotage existing programming practices by privatizing a public good

https://michiel.buddingh.eu/enclosure-feedback-loop
2•encyclopedism•19m ago•0 comments

Show HN: Fast, private image compression in the browser using WASM

https://img-compress.pages.dev/
1•sethyl•20m ago•1 comments

Web inventor Tim Berners-Lee says he is in a battle for the soul of the internet

https://www.theguardian.com/technology/2026/jan/29/internet-inventor-tim-berners-lee-interview-ba...
4•emptybits•21m ago•1 comments

Open Gaming Collective – Unified gaming-focused components for Linux ecosystem

https://opengamingcollective.org/
1•embedding-shape•21m ago•0 comments

Genesis Designed a Body-on-Frame Truck for the US

https://www.thedrive.com/news/genesis-designed-a-body-on-frame-truck-for-the-us
1•PaulHoule•22m ago•0 comments

Kamaji: Containerized Control Planes for K8s

https://kamaji.clastix.io/
1•asaiacai•23m ago•0 comments

Maybe code was never the point

https://subintp.substack.com/p/maybe-code-was-never-the-point
2•datafloyd•24m ago•0 comments

AlphaGenome

https://github.com/google-deepmind/alphagenome_research
1•logannyeMD•26m ago•0 comments

pg_tracing: Distributed Tracing for PostgreSQL

https://github.com/DataDog/pg_tracing
1•tanelpoder•29m ago•0 comments

iPhone Claude full stack dev – no VPN, no remote desktop

https://blog.rchase.com/iphone-claude-full-stack-dev-no-vpn-no-remote-desktop/
1•reillychase•33m ago•1 comments

Powering IoT Devices with Wiegand Energy-Harvesting Technologies

https://www.electronicdesign.com/technologies/power/article/55343024/ubito-powering-iot-devices-w...
1•WaitWaitWha•34m ago•0 comments

AI Engineering Has a Runtime Problem

https://twitter.com/ashpreetbedi/status/2011607262893129943
1•gmays•39m ago•0 comments

The AI Reconstructability Gap v2.o

https://zenodo.org/records/18408102
1•businessmate•40m ago•1 comments

Fabrication, Testing and Validation of Microsystems Eng, Science and Apps (Mesa)

https://www.sandia.gov/mesa/fabrication-testing-and-validation-capabilities/
1•transpute•40m ago•0 comments

Show HN: LinkBin – Modern URL shortener with analytics ($15 vs. bit.ly's $35)

https://linkbin-phi.vercel.app
1•Jollydevs•43m ago•0 comments