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.

Show HN: Zenshi – Google Search Console Dashboards

https://github.com/jakub-kalamarz/zenshi
1•jkalamarz•48s ago•0 comments

Charm v2: Major Updates for Bubble Tea, Lip Gloss, and Bubbles in Go UIs

https://charm.land/blog/v2/
1•birdculture•4m ago•0 comments

Agents can't code MCP apps: it's a Skill issue

https://alpic.ai/blog/agents-can-t-code-ai-apps-it%E2%80%99s-a-skill-issue
2•Eldodi•5m ago•0 comments

Lose Myself

https://www.eod.com/blog/2026/02/lose-myself/
1•interpol_p•7m ago•0 comments

Pigeons and Planes Has a Website Again

https://www.pigeonsandplanes.com/read/pigeons-and-planes-has-a-website-again
1•herbertl•7m ago•0 comments

I built a x86 CPU emulator in CSS (no JavaScript)

https://twitter.com/rebane2001/status/2026120879755628980
1•f-serif•10m ago•0 comments

Bandit a 32bit baremetal computer that runs Color Forth [video]

https://www.youtube.com/watch?v=HK0uAKkt0AE
1•phreda4•10m ago•0 comments

Show HN: QuicFuscate – HTTP/3 VPN transport with adaptive FEC and stealth modes

https://github.com/Christopher-Schulze/QuicFuscate
1•cschulze•12m ago•1 comments

Show HN: A tiny CLI tool for clearer Gov.uk-ish microcopy

https://github.com/sensecall/govuk-rewrite
1•sensecall•13m ago•0 comments

Show HN: SpecLock – Constraint enforcement for AI coding tools (Bolt.new, Claude

https://github.com/sgroy10/speclock
1•sgroy10•16m ago•0 comments

Show HN: Terminal Phone – E2EE Walkie Talkie from the Command Line

https://gitlab.com/here_forawhile/terminalphone
8•smalltorch•18m ago•0 comments

Show HN: Rust-reorder – a CLI tool for reordering top-level items in Rust source

https://github.com/umwelt-ai/rust-reorder
1•soletta•19m ago•0 comments

A set of beautiful KOReader patches

https://github.com/gennaro-tedesco/KOReader.patches
1•evergreengt•19m ago•0 comments

Every agent framework has the same bug – prompt decay. Here's a fix

https://gist.github.com/sigalovskinick/c6c88f235dc85be9ae40c4737538e8c6
1•nikolasi•22m ago•2 comments

Turn pull requests into guided walkthroughs

https://github.com/oddur/gnosis
2•gitnik•23m ago•0 comments

Ferguson's Law: Debt Service, Military Spending, & Fiscal Limits of Power (2025)

https://www.hoover.org/research/fergusons-law-debt-service-military-spending-and-fiscal-limits-power
1•SanjayMehta•26m ago•0 comments

Hubble spotted a 'dark galaxy' that's at least 99.9% dark matter

https://www.science.org/content/article/hubble-spotted-dark-galaxy-s-least-99-9-dark-matter
1•rbanffy•27m ago•0 comments

Why Mars Astronauts Need More Than Just Space Greenhouses

https://www.universetoday.com/articles/why-mars-astronauts-need-more-than-just-space-greenhouses
1•rbanffy•27m ago•0 comments

Show HN: HushWork – A focus environment with ambient sounds and timer in one tab

https://hushwork.app
1•pgebski•28m ago•1 comments

Clonezilla Live (3.3.1-35)

https://sourceforge.net/p/clonezilla/news/2026/02/stable-clonezilla-live-331-35-released/
1•doener•29m ago•0 comments

Mazda Onboard Carbon Capture

https://newsroom.mazda.com/en/publicity/release/2025/202511/251117b.html
2•wolfi1•29m ago•1 comments

Why NVLink Is Nvidia's Secret Sauce Driving a 10x Performance Boost in MoEs

https://www.hpcwire.com/2026/02/23/why-nvlink-is-nvidias-secret-sauce-driving-a-10x-performance-b...
1•rbanffy•30m ago•0 comments

Pilot Human Factors Visualization

https://www.phase-aero.app/en/timeline
1•jcchrrr•31m ago•0 comments

Show HN: PyMOL-RS – Rust reimplementation of PyMOL with modern rendering

https://github.com/zmactep/pymol-rs/releases/tag/v0.1.0
2•zmactep•34m ago•0 comments

A random color on every reload

https://randomcolour.com/
2•liquid99•39m ago•0 comments

Show HN: I built an AI that turns emailed PDFs into ledger entries in 60s

https://baguno.app
2•lakma•39m ago•1 comments

Why etcd breaks at scale in Kubernetes

https://learnkube.com/etcd-breaks-at-scale
1•mweibel•40m ago•0 comments

Rejecting Reality in the Age of AI

https://little-flying-robots.ghost.io/rejecting-reality-in-the-age-of-ai-2/
2•speckx•42m ago•0 comments

Local-first desktop utility to migrate chats from ChatGPT to Gemini

1•transferllm•43m ago•0 comments

Show HN: Autobs – Translate "fix: null ptr" into "Enhanced platform stability"

https://autobs.coolapso.sh
1•coolapso•45m ago•0 comments