frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•9mo 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•9mo 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•9mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•9mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Abusing AAD Family Refresh Tokens for Unauthorized Access and Persistence (2022)

https://github.com/secureworks/family-of-client-ids-research
1•fowl2•1m ago•0 comments

The "-1" User

https://stackexchange.com/users/-1/community
1•otobrglez•2m ago•1 comments

Prefix sums at gigabytes per second with ARM NEON

https://lemire.me/blog/2026/03/08/prefix-sums-at-tens-of-gigabytes-per-second-with-arm-neon/
1•signa11•2m ago•0 comments

Dolphin Progress Release 2603

https://dolphin-emu.org/blog/2026/03/12/dolphin-progress-report-release-2603/
1•BitPirate•3m ago•0 comments

Text formats are everywhere. Why?

https://lemire.me/blog/2026/03/05/text-formats-are-everywhere-why/
1•signa11•4m ago•0 comments

Show HN: CareerCraft AI – Generate tailored resumes from a conversation

https://super.myninja.ai/apps/6de082c7-a05f-4fc5-a7d3-ab56ccb48631
1•ptak_dev•5m ago•0 comments

Seed – AI-growable firmware over HTTP API, single C file, tested on a PDP-11

https://github.com/Awis13/seed
1•awis•5m ago•0 comments

Calvin Seibert Builds Architectural Sandcastles

https://www.greyscape.com/calvin-seibert-builds-architectural-sandcastles/
1•stared•6m ago•0 comments

Nerq Trust Protocol – How AI agents verify each other before interaction

https://nerq.ai/protocol
1•Agentindex•7m ago•1 comments

Executing programs inside transformers with exponentially faster inference

https://www.percepta.ai/blog/can-llms-be-computers
1•u1hcw9nx•8m ago•0 comments

Has your data been leaked?

https://chromewebstore.google.com/detail/digital-shield-all-in-one/pkonihncnkmbejhhjadaognganhinnhc
1•shwn2989•12m ago•1 comments

The Downside of User Accounts

https://threema.com/en/blog/downside-of-user-accounts
1•andrew918277•12m ago•0 comments

The next $1T company will be a software company masquerading as a services firm

https://sequoiacap.com/article/services-the-new-software/
1•kaizenb•13m ago•0 comments

Show HN: Bandmeter: Per-program network usage monitor for Linux, built with GPUI

https://github.com/emamoah/bandmeter
1•emamoah•14m ago•0 comments

chDB 4.0

https://clickhouse.com/blog/chdb.4-0-pandas-hex
1•tosh•16m ago•0 comments

Avoiding Trigonometry (2013)

https://iquilezles.org/articles/noacos/
2•WithinReason•19m ago•0 comments

Fully-funded trip to Stanford from anywhere in the world

https://www.svfellow.com
1•weissbergj•20m ago•0 comments

Basic C programming facts worth knowing

https://buildsoftwaresystems.com/post/essential-c-programming-facts/
1•ThierryBuilds•21m ago•0 comments

Storing Preexisting Passwords on a Yubikey

https://dubovik.eu/blog/yubikey
1•h45x1•21m ago•1 comments

MCP server for Faker-style mock data and hosted mock endpoints for AI agents

https://jsonplace.com/docs/mcp
1•fatihmgenc•21m ago•1 comments

Solid Pine Single Bed: Durable for Long-Term Rentals

https://dreamhomestore.co.uk/collections/bed-frames
1•Stevencoles89•24m ago•1 comments

SIMD implementation and Kotlin checkcast incompatibility

https://gryt.io/til/2026-03-12-simd-kotlin-checkcast-incompatibility/
1•synapticrob•25m ago•0 comments

I made a real BMO local AI agent with a Raspberry Pi and Ollama [video]

https://www.youtube.com/watch?v=l5ggH-YhuAw
2•vinhnx•26m ago•0 comments

OpenClaw has 247k stars and no governance layer

https://www.leanmcp.com/blog/you-think-youre-using-ai
2•jialu1•26m ago•0 comments

I upgraded my BMO local AI agent's voice and brain [video]

https://www.youtube.com/watch?v=W5bdM9yIEiY
1•vinhnx•27m ago•0 comments

The Usefulness of Useless Knowledge (1939) [pdf]

https://www.ias.edu/sites/default/files/library/UsefulnessHarpers.pdf
1•bookofjoe•29m ago•1 comments

Optimizing for non-uniform memory and cache effects in Stockfish

https://anemato.de/blog/nuca
1•anematode•29m ago•0 comments

Request for developer feedback: focusgroup RFC

https://developer.chrome.com/blog/focusgroup-rfc
2•agos•34m ago•0 comments

The Film That Should Be Nominated

https://animationobsessive.substack.com/p/the-film-that-should-be-nominated
1•vinhnx•34m ago•0 comments

Wiggmap

https://wiggmap.com/
2•wiggmap•38m ago•1 comments