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.

Apple Will Kill iPadOS

https://birchtree.me/blog/apple-will-kill-ipados/
2•ingve•2m ago•0 comments

Claude Code published fabricated claims to 8 platforms over 72hrs

https://github.com/anthropics/claude-code/issues/27430
2•SwitchBlade2026•3m ago•0 comments

Miller 6.17.0: YAML and DCF file formats; performance improvements; bugfixes

https://github.com/johnkerl/miller/releases/tag/v6.17.0
1•john_kerl•5m ago•0 comments

AI Placebo Differential – Measuring What AI Apps Add Beyond ChatGPT

https://github.com/selvaprakash/ai-placebo-differential
1•selvaprakash•7m ago•1 comments

What Pressure Does to an Athlete's Body

https://www.theatlantic.com/culture/2026/02/pressure-olympics-malinin-shiffrin/686097/
1•bookofjoe•10m ago•1 comments

Show HN: Prodlint – Static analysis for the bugs AI coding tools write

https://github.com/prodlint/prodlint
1•AMARCOVECCHIO99•11m ago•1 comments

A Replacement for Domain Names

1•talkingtab•12m ago•0 comments

Ask HN: What are your thoughts about collecting user statistics?

1•logicallee•14m ago•0 comments

PSA: Annual ZoomInfo Opt Out Reminder

2•windexh8er•14m ago•0 comments

Show HN: Catching breaking interface changes in TypeScript refactors (AST-based)

https://github.com/LogicStamp/logicstamp-context
1•AmiteK•15m ago•0 comments

Show HN: MailCat – Email service for AI agents (open-source)

https://github.com/apidog/mailcat
8•pitwin•16m ago•0 comments

Seeking a Front End Engineer Role

2•gauravFrontend•16m ago•0 comments

Show HN: A Product Commercialization Framework for Solo Developers

2•groask•16m ago•0 comments

Step by Step Analysis of Malicious NPM Package

https://safedep.io/npm-sandworm-mode-supply-chain-attack/
1•abhisek•17m ago•0 comments

Task Specific Knowledge Graphs

https://arxiv.org/abs/2312.16890
1•alansaber•17m ago•0 comments

Aquarium Is Good Enough for Mac/Win/Mac CI in AWS?

https://github.com/sparshev/aquarium-fish
1•dave455•17m ago•1 comments

macOS's Little-Known Command-Line Sandboxing Tool

https://igorstechnoclub.com/sandbox-exec/
11•Igor_Wiwi•17m ago•2 comments

Lite³: A JSON-Compatible Zero-Copy Serialization Format

https://lite3.io/
1•woadwarrior01•17m ago•0 comments

We Are the Introverts

https://incidentalcomics.substack.com/p/we-are-the-introverts
3•herbertl•18m ago•0 comments

Neo Emacs – A GPU-powered Emacs written in Rust with a modern display engine

https://github.com/eval-exec/neomacs
2•agarttha•19m ago•1 comments

Limnic Eruption

https://en.wikipedia.org/wiki/Limnic_eruption
1•alch-•19m ago•0 comments

Google Gemini Music

https://gemini.google.com/music
1•danielfalbo•20m ago•0 comments

CXMT has been offering DDR4 chips at about half the prevailing market rate

https://www.koreaherald.com/article/10679206
2•phront•20m ago•0 comments

[Ask HN] Reading Recs for Product Management as a Dev

3•ch4s3•24m ago•0 comments

Show HN: DDV – Terminal DynamoDB Viewer

https://github.com/lusingander/ddv
2•lusingander•29m ago•0 comments

Flexoki

https://stephango.com/flexoki
2•Tomte•29m ago•0 comments

Show HN: LocalAgent: local coding agent CLI with trust and replay

https://github.com/CalvinSturm/LocalAgent
2•CalvinBuild•32m ago•0 comments

Shortening the Spiral

https://afterburnout.co/p/shortening-the-spiral
1•mooreds•33m ago•0 comments

Humans, vampires, and why you aren't Steve Yegge

https://www.beyondwritingcode.com/2026/02/20/humans-vampires-and-why-you-arent-steve-yegge.html
2•mooreds•34m ago•0 comments

An attempt at a balanced perspective on AI [video]

https://www.youtube.com/watch?v=FC7YGG0FzZ0
1•mooreds•35m ago•0 comments