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.

Engine Simulator – Community Edition

https://github.com/Engine-Simulator/engine-sim-community-edition
1•andre9317•48s ago•1 comments

Show HN: Luma – A New Workspace for Frida

https://luma.frida.re/
1•oleavr•1m ago•0 comments

Legion LegalTech sues U.S. over Anthropic Fable 5 and Mythos 5 shutdown

https://thenextweb.com/news/legion-legaltech-sues-us-anthropic-access
1•airstrike•8m ago•0 comments

Non-Existent or Intermittent Internet Access When Using FusionAuth (2025)

https://fusionauth.io/community/forum/topic/3055/non-existent-or-intermittent-internet-access-whe...
1•mooreds•10m ago•0 comments

Apple seeks to buy memory chips from blacklisted Chinese company

https://www.ft.com/content/d72a25e2-7bde-4aa9-bd8d-0c4f3d6cb2cb
3•ksec•16m ago•1 comments

The PM's Guide to Managing AI Debt

https://newsletter.artofsaience.com/p/the-pms-guide-to-managing-ai-debt
2•mooreds•17m ago•0 comments

You've tried DuckDuckGo and Brave Search, now get serious with SearXNG

https://www.neowin.net/editorials/youve-tried-duckduckgo-and-brave-search-now-get-serious-with-se...
3•philonoist•18m ago•0 comments

Liquid-Cooling a TE Connectivity 800V DC Busbar and More from the Wiwynn Booth

https://www.servethehome.com/liquid-cooling-a-te-connectivity-800v-dc-busbar-and-more-from-the-wi...
1•ksec•20m ago•0 comments

Text Files as a User Interface

https://ratfactor.com/cards/text-files-as-ui
3•birdculture•22m ago•0 comments

Show HN: HotFX Pseudorandom – value noise in a CSS variable via custom element

https://fx.hot.page/pseudorandom
2•WebBurnout•23m ago•0 comments

Passkey Central

https://www.passkeycentral.org/home/
2•mooreds•24m ago•0 comments

Microsoft extends free Windows 10 security updates until October 12, 2027

https://www.tomshardware.com/software/windows/microsoft-extends-free-windows-10-security-updates-...
3•aleph_minus_one•26m ago•0 comments

Show HN: Ocarina – Automate and test MCP servers from YAML, no LLM

https://github.com/msradam/ocarina
2•msradam•27m ago•0 comments

The State has entered the Model Loop

https://peteridah.substack.com/p/the-state-has-entered-the-model-loop
2•peteridah•30m ago•0 comments

Back to the good old times – Win 7 for Debian (2024)

https://mehdy.eu/back-to-the-good-old-times-win-7-for-debian/
3•TuringTux•33m ago•0 comments

Distributed LLM Inference with LLM-d

https://cefboud.com/posts/llm-d/
3•cefboud•33m ago•0 comments

Double threat to privacy: Chat Control 1.0 and 2.0 are back

https://old.reddit.com/r/europe/comments/1ugc4td/double_threat_to_privacy_chat_control_10_and_20/
3•nickslaughter02•33m ago•0 comments

Height of Harmonic Numbers

https://www.johndcook.com/blog/2026/06/27/height-of-harmonic-numbers/
2•ibobev•34m ago•0 comments

Art by Maths

https://www.mathchronicles.org/copy-of-the-math-behind-the-rsa-encry
2•jruohonen•34m ago•0 comments

The Demoralization of the White-Collar Worker

https://nooneshappy.com/article/the-demoralization-of-the-white-collar-worker/
2•zdw•34m ago•0 comments

Show HN: Use any SVG as QR code On Dots

https://bar.codes/
2•Ciaranio•35m ago•0 comments

Four New Chameleon Species Found in Tropical "Sky Islands"

https://nautil.us/four-new-chameleon-species-found-in-tropical-sky-islands-1282292
2•Brajeshwar•38m ago•0 comments

Thousands more artists join Ireland's basic income plan

https://rgmii.org/blog/thousands-more-artists-join-irelands-basic-income-plan/
3•colinprince•38m ago•1 comments

Show HN:I got tired of spending 3hrs daily on job applications,so I automated it

https://jobspire.co.in/
3•cbyteai•39m ago•1 comments

Students Are Doing Worse Than You Think

https://www.economist.com/international/2026/06/25/students-are-doing-worse-than-you-think
2•karakoram•42m ago•1 comments

A peek into Reddit's anti-spam internals

https://lyra.horse/blog/2026/06/reddit-spam-internals/
6•OuterVale•42m ago•0 comments

Americans Are in a Sour Mood as the Country Turns 250

https://www.pewresearch.org/2026/06/12/on-the-countrys-250th-anniversary-the-american-people-are-...
2•karakoram•44m ago•0 comments

Ask HN: Which Zig version to use for my thesis?

2•xuinnz•52m ago•0 comments

Show HN: AI-whisper – Claude works better when Codex watches its back

https://ai-creed.dev/projects/ai-whisper/
3•vuphanse•52m ago•0 comments

Show HN: Apex-1-flash, 4B LLM finetuned on RTX 5070

https://huggingface.co/OrbitAIEU/Apex-1-flash
2•Qmay_Dev•52m ago•0 comments