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.

An open protocol for agent feedback

https://feedback.now/
1•iacguy•38s ago•0 comments

Debian 11 bullseye-security repos have gone missing after botched EOL process

https://lists.debian.org/debian-mirrors/2026/09/msg00001.html
1•superkuh•4m ago•1 comments

Roundup of October 2026 Bootstrapper Events

https://bootstrappersbreakfast.com/2026/09/22/roundup-of-october-2026-bootstrapper-events/
1•skmurphy•5m ago•0 comments

Microsoft drops Copilot+ branding from its new laptops

https://www.tomshardware.com/tablets/microsoft-surface/microsoft-quietly-drops-copilot-branding-f...
3•anthuswilliams•8m ago•0 comments

Build a Real‑Time Telemetry Pipeline for SpaceX Starship Launches

https://thelooplet.com/posts/how-to-build-a-real-time-telemetry-pipeline-for-spacex-starship-laun...
2•killme2008•8m ago•0 comments

You are a 1000x maker, and you can't think of how to make your stack 10x better?

https://twitter.com/josevalim/status/2103751481757216781
4•thunderbong•18m ago•2 comments

Nissan's third generation e-POWER powertrain

https://www.nissan-global.com/EN/INNOVATION/TECHNOLOGY/ARCHIVE/E_POWER_GEN3/
2•mroche•23m ago•0 comments

TabPFN and TabICL vs. tuned XGBoost: the model that doesn't train won 14/14

https://efraingaray.com/en/blog/tabpfn-vs-xgboost/
2•EfrainGaray•27m ago•0 comments

How to build a Jev-style classifier with DiffusionGemma and vLLM

https://medium.com/google-cloud/how-to-build-a-jev-style-classifier-with-diffusiongemma-and-vllm-...
1•teleforce•33m ago•1 comments

Russia hits Ukraine's largest mobile provider, strikes data centres

https://www.reuters.com/business/aerospace-defense/russia-hits-ukraines-largest-mobile-provider-s...
3•giuliomagnifico•35m ago•0 comments

Minecraft beat Minecraft after 2B years

https://www.pcgamer.com/games/survival-crafting/minecraft-beat-minecraft-after-2-billion-years/
1•morder•36m ago•0 comments

New Domain:)

https://www.base31.org/
1•notam•37m ago•2 comments

Ruby-lean: A Ruby semantics with a type soundness proof

https://samx.io/blog/topics/devlog/2026-09-26-ruby-lean.html
1•samxif•41m ago•0 comments

Musk, the Movie

https://bleeckerstreetmedia.com/musk
5•yablak•42m ago•0 comments

Emotional Well-Being on ChatGPT

https://arxiv.org/abs/2504.03888
2•lasky•45m ago•1 comments

The next AI breakout will come from a services firm

https://www.introspection.dev/manifesto
2•asasidh•46m ago•0 comments

Claude Generated Summary on Sri Lanka Batalanda Commission of Inquiry

https://claude.ai/artifact/4xzcAXCXwFTeMSopXhJjvk
2•kharon•49m ago•0 comments

Owed a billion dollars in Nvidia stock

https://colo.to/nvidia-stock-narrative.html
31•Eric_Gullichsen•49m ago•8 comments

Fool's Expertise

https://bcantrill.dtrace.org/2026/09/27/fools-expertise/
2•elffjs•50m ago•1 comments

Internal Weather

https://alearningaday.blog/2026/09/26/internal-weather-3/
2•JumpCrisscross•57m ago•0 comments

When Back-to-School Shopping Includes Bulletproof Backpacks

https://www.nytimes.com/interactive/2026/09/21/magazine/shooting-fears-school-equipment.html
2•bookofjoe•59m ago•1 comments

Comet SWAN26Q – The unconfirmed Scout object warrants monitoring, not concern

https://www.astrophyzix.com/2026/09/SWAN26Q-NEOCP-Report.html
4•JEOFFEZZ•1h ago•0 comments

Goodbye to the Hard Parts That Never Mattered

https://jakegoldsborough.com/blog/2026/goodbye-to-the-hard-parts-that-never-mattered/
2•JumpCrisscross•1h ago•0 comments

Show HN: I made a tool that turns Jetpack Compose Previews to embeddable scripts

https://composables.com/
1•alexstyl•1h ago•0 comments

OpenRig: Multi-Agent Harness

https://github.com/mvschwarz/openrig
2•handfuloflight•1h ago•0 comments

Behold the pawpaw, the tropical 'alien banana' that grows right here in Canada

https://www.cbc.ca/radio/thecurrent/pawpaw-tropical-fruit-canada-9.7356882
8•BiraIgnacio•1h ago•0 comments

OpenAI pauses top-model work after AI bypasses internet safeguards [video]

https://www.youtube.com/watch?v=a1qnCu1t9hI
1•kbn•1h ago•0 comments

PostgreSQL 19's "scary patch contest"

https://lwn.net/Articles/1092003/
1•pykello•1h ago•0 comments

(Book) When It Goes Wrong: What Angels and Founders Do Next

https://susanjmontgomery.substack.com/p/when-it-goes-wrong-what-angels-and
2•mgav•1h ago•0 comments

Show HN: Guess which repository has more GitHub stars

https://higherlower.focuslab.pk/
1•alexander2002•1h ago•0 comments