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.

Lenovo unveils ThinkBook AeroBlade: 14", Ultra 7, 830 grams, solid-state cooling

https://www.notebookcheck.net/Lenovo-unveils-ThinkBook-AeroBlade-14-inch-laptop-that-weighs-under...
1•cromka•1m ago•0 comments

OSHintosh IIxi Works

https://tech.lgbt/@DosFox/117218857930993108
2•mariuz•2m ago•0 comments

OSHintosh – an open source hardware 68000 Macintosh with a Bootable ROM Disk

https://github.com/DosFox1/OSHintosh
1•mariuz•3m ago•0 comments

AfterQuery becomes Y Combinator's fastest-ever unicorn, now valued at $3.2B

https://techcrunch.com/2026/09/01/afterquery-reportedly-becomes-y-combinators-fastest-ever-unicor...
1•andsoitis•4m ago•0 comments

NeurIPS started desk-rejecting papers over references that don't exist

https://strictcite.com/blog/neurips-2026-hallucinated-citations-desk-reject
1•Tughan•6m ago•0 comments

Capta – The Mac screen recorder that edits itself

https://capta.cam/
1•gorgekara•6m ago•0 comments

UN agrees text on lethal autonomous weapons

https://www.dawn.com/news/2027728
1•fork-bomber•7m ago•0 comments

Warmbly: Open-Source Cold Email

https://github.com/warmbly/warmbly
1•handfuloflight•8m ago•0 comments

Bad Apple but It's Frontier Lab Benchmarks [video]

https://www.youtube.com/watch?v=o3CJnpUG3tY
1•TheIronYuppie•8m ago•0 comments

America has a whopping debt. But Europe has the whopping debt problem

https://www.economist.com/europe/2026/09/03/america-has-a-whopping-debt-but-europe-has-the-whoppi...
1•andsoitis•9m ago•1 comments

LLMs as a Cognitive Virus

https://arxiv.org/abs/2609.03344
2•canjobear•10m ago•0 comments

Discord Is Bringing Back Age Verification

https://www.gadgetreview.com/discord-is-bringing-back-age-verification-for-millions-of-users
1•variety8675•12m ago•0 comments

Effect Agent

https://github.com/danieljvdm/effect-agent
1•handfuloflight•13m ago•0 comments

How work makes families more equal

https://www.economist.com/international/2026/09/03/how-work-makes-families-more-equal
1•andsoitis•15m ago•0 comments

Patterns, Predictions, and Actions: A story about machine learning [pdf]

https://mlstory.org/pdf/patterns.pdf
1•Anon84•17m ago•0 comments

NoGraphicsAPI

https://github.com/sebbbi/NoGraphicsAPI
2•coffeeaddict1•18m ago•0 comments

GitHub issues on Laravel open-source packages are disabled now

https://twitter.com/taylorotwell/status/2095516796748996843
2•heyiamlukas•19m ago•1 comments

Does KaiOS sell my text message data?

https://www.reddit.com/r/KaiOS/comments/1w4op2m/does_kaios_sell_my_text_message_data/
1•endofreach•19m ago•0 comments

How (Not) to Find a SWE Job in North America

https://tolkunov.dev/posts/how-to-find-a-job-in-north-america/
2•frant1c•23m ago•0 comments

Kevin Bass on X: "Women gained all of the new jobs since January 2025

https://twitter.com/kevinnbass/status/2096073961524076916
2•bilsbie•25m ago•1 comments

There's No Such Thing as an AI 'Lab'

https://www.theatlantic.com/technology/2026/09/stop-calling-ai-companies-labs/688528/
1•Anon84•25m ago•0 comments

Discrete Dipole Approximation Code Ddscat 7.2 (2012)

https://arxiv.org/abs/1202.3424
1•doener•27m ago•0 comments

OpenSourceRail

https://github.com/modernecotech/OpenSourceRail/tree/main
1•modernecotech•29m ago•1 comments

ISAR Aerospace 5 Sept Mission Onward and Upward

https://isaraerospace.com/mission-updates-overview
2•t43562•31m ago•1 comments

Trump Officials Draft Plan to Pay At-Home Parents, Using Funds for Working Ones

https://www.nytimes.com/2026/09/05/us/politics/stay-at-home-parents-subsidies.html
3•koolba•32m ago•0 comments

Who Killed the American Demoscene? (2019)

https://www.vice.com/en/article/who-killed-the-american-demoscene-synchrony-demoparty/
3•wy35•34m ago•1 comments

Generating scenarios for extreme events, without extreme data

https://news.mit.edu/2026/generating-scenarios-extreme-events-without-extreme-data-0824
1•taubek•35m ago•0 comments

Daemoncore Academy Now 100% Free Cyber Security Certifications

https://www.daemoncore.app/
1•DaemonCoreApp•38m ago•0 comments

Ling 3.0 Tiny

https://huggingface.co/inclusionAI/Ling-3.0-tiny
1•AbuAssar•39m ago•0 comments

Ask HN: Did you see this Polymarket post on X today?

1•skwasimin•42m ago•1 comments