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.

GPU Programming on Mobile Devices

https://github.com/AmrDeveloper/Turtle
1•amrdeveloper•33s ago•0 comments

2.4M+ VRChat users' data accessed following cloud breach

https://www.theregister.com/security/2026/06/11/24m-vrchat-users-data-accessed-following-cloud-br...
2•Bender•2m ago•0 comments

FlakeBOM, a CLI for generating SBOMs from Nix flakes

https://determinate.systems/blog/introducing-flakebom/
1•biggestlou•2m ago•0 comments

Every employee's password was stored in a single Excel file

https://www.theregister.com/security/2026/06/11/every-employees-password-was-stored-in-a-single-e...
2•Bender•3m ago•0 comments

Heterogeneous Pythonic language in your pocket

https://amrdeveloper.medium.com/heterogeneous-pythonic-language-in-your-pocket-921f2197bc39
1•amrdeveloper•3m ago•1 comments

AI needs shame, not taste

https://www.jacquescorbytuech.com/writing/ai-needs-shame-not-taste
1•iamacyborg•3m ago•0 comments

Microsoft's worst 'Nightmare' unleashes BitLocker bypass 0-day

https://www.theregister.com/security/2026/06/11/nightmare-eclipse-drops-claimed-bitlocker-bypass-...
1•Bender•3m ago•0 comments

Calabi–Yau Manifold

https://en.wikipedia.org/wiki/Calabi%E2%80%93Yau_manifold
1•dmschulman•4m ago•0 comments

DiffusionGemma: The Developer Guide

https://developers.googleblog.com/diffusiongemma-the-developer-guide/
1•simonpure•4m ago•0 comments

Jo is a statically typed language that enables compile-time sandboxing

https://github.com/typescope/jo
1•rickcarlino•5m ago•0 comments

History of the Alphabet

https://en.wikipedia.org/wiki/History_of_the_alphabet
1•thunderbong•7m ago•0 comments

The Sad Unusability of Video Game Reviews

https://bottomfeeder.substack.com/p/the-sad-unusability-of-video-game
2•Tomte•9m ago•0 comments

Clarity Act Explained: Why Crypto Regulation Depends on the CFTC

https://catenaa.com/clarity-act-crypto-regulation-bitcoin/
1•NewsCatenaa•9m ago•0 comments

Apollo Is Screening All Software Investments for AI Threat Risk

https://www.bloomberg.com/news/articles/2026-06-11/apollo-is-screening-all-software-investments-f...
2•petethomas•9m ago•0 comments

Show HN: World Cup 2026 CLI

https://github.com/saadel/world-cup-2026-cli
1•saadel•12m ago•0 comments

Hermes Bridge API

https://github.com/jcnh74/hermes-bridge/
1•jcnh74•13m ago•2 comments

Why your asthma inhaler is so expensive (in the US)

https://educatedguesswork.org/posts/asthma-inhaler-pricing/
3•duckduckgo•13m ago•0 comments

4 Signs You Need a Multi-Agent AI System: A Visual Guide

https://aidoses.substack.com/p/4-signs-you-need-a-multi-agent-ai
1•ryanrad•14m ago•0 comments

New experimental versions of TeXmacs for Windows 11 and Android (revision 15512)

https://lists.texmacs.org/wws/arc/texmacs-users/2026-06/msg00000.html
1•amichail•14m ago•0 comments

Ask HN: What's the best LLM model that on a 24 GB VRAM GPU?

1•max93•16m ago•0 comments

Arm shows first use of mobile Arm Neural Technology and Unreal Engine MegaLights

https://newsroom.arm.com/news/announcing-neural-dawn
1•HelloUsername•17m ago•0 comments

Internal docs reveal Mistral valued M&A target Emmi at up to €330M

https://sifted.eu/articles/mistral-emmi-acquisition-330m
1•doener•18m ago•0 comments

Show HN: Remuda, a CLI Agent Orchestrator

https://github.com/yendo-eng/remuda
2•dgunay•19m ago•0 comments

Antikythera Mechanism

https://en.wikipedia.org/wiki/Antikythera_mechanism
2•helterskelter•20m ago•0 comments

Musk's Galactic Ripoff

https://robertreich.substack.com/p/musks-galactic-ripoff
2•dxs•21m ago•0 comments

The MilkV Jupiter 2/SpacemiT K3 (RISC-V vector compute)

https://taoofmac.com/space/reviews/2026/06/11/1830
2•rcarmo•23m ago•1 comments

Intel Management Engine

https://en.wikipedia.org/wiki/Intel_Management_Engine
2•helterskelter•24m ago•0 comments

Researcher made up a disease to test AI. It failed miserably

https://www.scientificamerican.com/podcast/episode/bixonimania-the-fake-illness-that-ai-fell-for/
1•geox•24m ago•0 comments

Show HN: Aurora – A spacey animated background for VSCode

https://github.com/crlang44/AuroraBg/
1•crlang44•25m ago•0 comments

Show HN: Stillwind – High Resolution Electronic Component Search

https://stillwind.ai
4•hannesfur•26m ago•0 comments