frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

A common measure of communication for thought-to-text brain-computer interfaces

https://twitter.com/DulhanJay/status/2095549128357122522
1•armytricks•35s ago•0 comments

Playing Sounds in Python

https://pypi.org/project/nava
1•rankorn•48s ago•0 comments

Why office workers are turning against AI

https://www.bloodinthemachine.com/p/why-office-workers-are-turning-against
3•speckx•1m ago•0 comments

Colleges Are Sending Acceptance Letters to Kids Who Didn't Apply

https://www.wsj.com/us-news/education/hundreds-of-colleges-are-sending-acceptance-letters-to-kids...
2•fortran77•3m ago•1 comments

LLM Side Quests

https://coldtake.dev/blog/llm-side-quests
1•AlarQ•3m ago•0 comments

Agent behavior, reasoning and collaboration in the OpenAI Hugging Face incident

https://www.redwoodresearch.org/research/hugging-face-incident
1•Bluestein•3m ago•0 comments

Show HN: Model – A Minimal Python ORM for MySQL and SQLite

https://github.com/el1s7/model
1•el1s7•4m ago•0 comments

Yes, no (built-in) AI is now a feature – LibreOffice blog

https://blog.documentfoundation.org/blog/2026/09/03/yes-no-ai-is-now-a-feature/
1•mksaunders2•5m ago•0 comments

Show HN: MCP Tool Definition Quality Score (TDQS) Spec

https://tdqs.dev
1•punkpeye•5m ago•0 comments

China growth straining global auto shipping capacity

https://www.freightwaves.com/news/china-growth-straining-global-auto-shipping-capacity-liner-ceo
1•toomuchtodo•7m ago•0 comments

How concerned should we be about Astra's recurrent architecture?

https://www.lesswrong.com/posts/PLisnSFir8y5AHkmP/how-concerned-should-we-be-about-astra-s-recurrent
2•yurivish•7m ago•0 comments

What archaeology reveals about the rise of autocracy

https://knowablemagazine.org/content/article/society/2026/what-archaeology-reveals-about-rise-of-...
1•knowablemag•7m ago•0 comments

Without new landers or rovers, it's helicopters or bust for NASA's Mars program

https://arstechnica.com/space/2026/09/without-new-landers-or-rovers-its-helicopters-or-bust-for-n...
1•colinprince•8m ago•0 comments

Wary of Artemis IV timeline, NASA is changing lunar spacesuit design

https://arstechnica.com/space/2026/09/wary-of-artemis-iv-timeline-nasa-is-changing-lunar-spacesui...
1•bookmtn•8m ago•0 comments

Usbsid-Pico: Bridging Real Commodore 64 Sound to Modern USB

https://smallrun.net/blog/loud/usbsid-pico-sids-on-usb
2•LouDNL•8m ago•0 comments

Coral: An LLM-Native Harness for Production Recommender Systems

https://arxiv.org/abs/2609.02730
1•Anon84•8m ago•0 comments

Daily football puzzle games. Inazuma Eleven mode included. Free and no ads

https://mundoonce.com/en
1•sadflaskldf•9m ago•0 comments

Justin Mares: Scaling a Bone Broth Empire and How to Prevent Chronic Disease

https://www.new-ontologies.com/posts/TrueMed
1•jger15•9m ago•0 comments

Echo Is Acquiring Minimus

https://www.echo.ai/blog/echo-is-acquiring-minimus
1•devy•10m ago•1 comments

Show HN: LibPolyCall – a C runtime broker for cross-language function calls

https://github.com/obinexus/libpolycall-v1
1•obinexus•12m ago•0 comments

Cheap Desktop 400GbE Switch MikroTik CRS804-4DDQ-HRM Review

https://www.servethehome.com/mikrotik-crs804-4ddq-hrm-review-marvell-annapurna-labs-400gbe/
1•speckx•12m ago•0 comments

Show HN: Wordmate – local speech-to-text for macOS

https://github.com/vdszds/wordmate
1•vdszds•12m ago•0 comments

Apple Apparently Cancels Plans for Two New MacBooks

https://www.macrumors.com/2026/09/03/apple-cancels-plans-for-two-new-macbooks/
4•zingerlio•13m ago•0 comments

The Craft of the Warrior

https://archive.org/details/craftofwarrior0000spen
1•tylerdane•14m ago•0 comments

Disaster Recovery Backups with Rsync

https://jadarma.github.io/blog/posts/2026/09/disaster-recovery-backups-with-rsync/
1•tymscar•15m ago•0 comments

Clojure 1.12.6

https://clojure.org/news/2026/09/02/clojure-1-12-6
2•andrewstetsenko•16m ago•0 comments

The Download: engineered microbes for crops, and OpenAI's culture problem

https://www.technologyreview.com/2026/09/01/1143199/the-download-engineered-microbes-openai-safet...
1•joozio•16m ago•0 comments

Marten 0.7 – A batteries-included web framework for Crystal

https://martenframework.com/news/2026-08-29-marten-release-0.7
1•ellmetha•18m ago•0 comments

Show HN: Radia – agent coordination with leases, permissions and provenance

https://radia.sh/
1•ymodulo•18m ago•0 comments

AIs as Modern Genies

https://www.lawfaremedia.org/article/ais-as-modern-genies
1•hn_acker•20m ago•0 comments