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.

N8N in Production: Lead Qualification That Works

https://trpevski.com/blog/n8n-in-production-lead-qualification-that-works/
1•dzugumot•1m ago•0 comments

Computing Graph Dominators

https://neugierig.org/software/blog/2026/08/dominators.html
1•fanf2•5m ago•0 comments

Show HN: UltimateXO – Open-Source Ultimate Tic-Tac-Toe Web Game

https://ultimatexo.com/
1•mekky16•8m ago•0 comments

People with Stronger Psychopathic Traits Carry Certain Gut Bacteria

https://www.rathbiotaclan.com/study-reveals-microbes-in-your-gut-and-mouth-may-track-psychopathic...
1•Akasci•11m ago•0 comments

Secondhand UK and Irish booksellers suspect AI firms behind strange bulk orders

https://www.theguardian.com/technology/2026/aug/15/uk-ireland-booksellers-suspect-ai-companies-bu...
1•mellosouls•12m ago•0 comments

DX12.0 and Vulkan 1.0 were designed for ~15 year old GPUs

https://twitter.com/SebAaltonen/status/2087870023557697856
1•ksec•20m ago•0 comments

One of the Most Important Policy Decisions of Our Lifetime

https://www.nytimes.com/2026/08/14/opinion/ai-policy-tax-technology.html
2•reasonableklout•26m ago•0 comments

Show HN: HN Without AI Stories

https://hnnoai.readpipe.org/
4•zorked•30m ago•1 comments

manim: Framework for Creating Mathematical Animations

https://github.com/manimCommunity/manim
1•pykello•33m ago•0 comments

Coreboot Overclocking Arrives on MSI's Z690 and Z790

https://hwbusters.com/news/coreboot-overclocking-arrives-on-msis-z690-and-z790-experimental-and-u...
1•pietrushnic•33m ago•1 comments

No Plan Survives Contact with the Enemy (Reality)

https://blog.exe.dev/planning
1•tosh•33m ago•0 comments

Causation in Climate Change: ICJ)'S Climate Change Advisory Opinion Re Tort Law

https://opiniojuris.org/2026/03/03/causation-in-climate-change-the-international-court-of-justice...
1•bryanrasmussen•33m ago•1 comments

Healthcare Palantir Prototype

https://tmg.marcokittel.de
1•evlute•34m ago•1 comments

Show HN: Chemistry AI – step-by-step chemistry solver

https://chemistryai.chat
1•realisticaigen•36m ago•0 comments

Jason Arday, professor at centre of Cambridge plagiarism row, found dead

https://www.theguardian.com/uk-news/2026/aug/14/jason-arday-found-dead-after-resigning-from-cambr...
2•jimnotgym•36m ago•0 comments

Show HN: Homelander – free desktop app that applies for apartments in Germany

https://www.youtube.com/watch?v=udNWQz3WNBI
1•b1z0n•37m ago•0 comments

Charity and Sylvia: The Extraordinary Claims of Rachel Hope Cleves

https://buttondown.com/thene/archive/charity-and-sylvia-the-extraordinary-claims-of/
1•bryanrasmussen•38m ago•0 comments

OpenAI updates its Privacy Policy to include ads

3•1equalsequals1•38m ago•1 comments

Qwen3.8 27B Coming to Cerebras

https://twitter.com/cerebras/status/2088419572416147582
1•Moduke•43m ago•1 comments

Django is moving to an annual release cycle

https://www.djangoproject.com/weblog/2026/aug/10/annual-release-cycle/
3•JodieBenitez•47m ago•0 comments

Using GCC's Nested Functions with Wide Pointers and No Trampolines II

https://uecker.codeberg.page/2026-07-14.html
1•uecker•48m ago•0 comments

Show HN: Sandbox the install step of any NPM package

https://www.npmjs.com/package/@kenwea/mcp
1•Myzura•48m ago•0 comments

State media control influences large language models

https://www.nature.com/articles/s41586-026-10506-7
1•theanonymousone•53m ago•0 comments

René Goscinny

https://en.wikipedia.org/wiki/Ren%C3%A9_Goscinny
2•wolfi1•57m ago•0 comments

Copyright Is Brain Damage

https://www.youtube.com/watch?v=XO9FKQAxWZc
2•theanonymousone•57m ago•0 comments

Tell HN: My open-source form builder has reached ~7k registered users

1•darkhorse13•59m ago•0 comments

Tropical Storm Lala forecast to bring hurricane conditions to Hawaii Saturday

https://www.hawaiinewsnow.com/2026/08/15/tropical-storm-lala-forecast-bring-hurricane-conditions-...
1•saisrirampur•1h ago•0 comments

High-performance single-GPU inference for selected model checkpoints and GPUs

https://github.com/Neroued/ninfer
1•davedx•1h ago•0 comments

The pursuit of excellence does not need justification

https://twitter.com/mitchellh/status/2074225453217505494
1•tosh•1h ago•0 comments

New findings throw light on enduring Sun mysteries

https://www.bbc.com/news/articles/c934wqpd74xo
1•porridgeraisin•1h ago•0 comments