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

Global ripple effects of corporate tax reforms

https://www.nber.org/papers/w34627
1•hhs•4m ago•0 comments

What are you using today to monitor uptime for small or personal projects?

https://updown.fly.dev/
1•ejncman•10m ago•1 comments

Get Salty [video]

https://www.youtube.com/watch?v=NfxHiT-0inM
2•marysminefnuf•11m ago•1 comments

CES 2026: These 32 Tech Products Made Some of the Biggest Impressions

https://www.cnet.com/pictures/ces-2026-overall-products/
1•SilverElfin•12m ago•0 comments

Carina Hong of Axiom Math at the Neuron

https://www.youtube.com/watch?v=xldMXTPGMGI
1•rasengan0•13m ago•0 comments

Show HN: GlyphLang – An AI-first programming language

1•goose0004•14m ago•0 comments

Show HN: TheTabber – Create, repurpose, and post across 9+ platforms

https://thetabber.com/
1•dibasdauliya•14m ago•0 comments

Show HN: Librario, a book metadata API that aggregates G Books, ISBNDB, and more

5•jamesponddotco•15m ago•0 comments

Cocopilot: Self-Updating Repository

https://acbart.github.io/cocopilot/
1•acbart•16m ago•0 comments

Disaggregated machine learning via in-physics computing at radio frequency

https://www.science.org/doi/10.1126/sciadv.adz0817
2•gnabgib•20m ago•0 comments

Polymaths: An Argument for Analogies

https://nonzerosum.games/polymaths1.html
1•samixg•21m ago•1 comments

The "Good Will Hunting" Problem in Generative AI

https://medium.com/@chipmunkworks/ai-the-will-hunting-of-our-age-59952c1744f1
2•treelover•21m ago•1 comments

Show HN: Embex – 9K downloads in 2 weeks, a universal ORM for vector databases

https://www.bridgerust.dev/embex/introduction/
1•mimchak•23m ago•0 comments

MCP Joins the Linux Foundation

https://github.blog/open-source/maintainers/mcp-joins-the-linux-foundation-what-this-means-for-de...
1•raju•24m ago•1 comments

Private equity firms acquired more than 500 autism centers in past decade: study

https://www.brown.edu/news/2026-01-07/private-equity-autism-centers
5•hhs•24m ago•0 comments

Mapping and editing learned functional geometry inside a CNN (with controls)

https://github.com/boglim1984/functional-geometry-hebbian-manifold
1•boglim1984•25m ago•1 comments

CFT: "sqawk" 0.8.0 – optimized SQL Awk utility with Rust's sqlparser

https://github.com/jgarzik/sqawk/tree/v0.8.0
1•jgarzik•26m ago•1 comments

The da Vinci Code: Quest to Identify Leonardo da Vinci's DNA

https://www.science.org/content/article/have-scientists-found-leonardo-da-vinci-s-dna
1•bookmtn•26m ago•0 comments

Using the physics of radio waves to empower smarter edge devices

https://pratt.duke.edu/news/using-the-physics-of-radio-waves-to-empower-smarter-edge-devices/
1•hhs•29m ago•0 comments

The Celtic Tiger bridge that wouldn't open because of a lost remote control

https://www.thejournal.ie/sean-ocasey-bridge-remote-1713102-Oct2014/
2•JumpCrisscross•33m ago•0 comments

The Robot Cars Have Come for the Kids

https://www.nytimes.com/2026/01/05/us/waymo-kids-los-angeles.html
1•JumpCrisscross•34m ago•0 comments

Iranian Crown Prince in Exile – Interview with Reza Pahlavi (2025) [video]

https://www.youtube.com/watch?v=VwWQ3hnJLZQ
1•thomassmith65•35m ago•1 comments

Philosopher of Pride

https://aeon.co/essays/the-hidden-role-of-pride-and-shame-in-the-human-hive
1•benbreen•36m ago•0 comments

Show HN: Chordle. Learn to identify pitch by playing Wordle with chords

https://codepen.io/tehryanx/full/RNRGGEQ
1•tehryanx•37m ago•0 comments

The Manifold Mind of Saul Bellow

https://www.metropolitanreview.org/p/the-manifold-mind-of-saul-bellow
1•samclemens•37m ago•0 comments

People are abusing Facebook's deceased persons account hacked request form

https://infosec.exchange/@teriradichel/115873364828247139
2•gpi•39m ago•1 comments

[Claude Code Plugin Proposal] Add agent-session-commit to iterate on AGENTS.md

https://github.com/anthropics/claude-code/pull/17395
1•Olshansky•40m ago•0 comments

Tcl Nxtpaper 70 Pro phone has dedicated reading modes that help reduce strain

https://www.pcmag.com/news/tcl-nxtpaper-70-pro-phone-dials-up-the-specs-we-go-hands-on-at-ces-2026
1•teleforce•41m ago•0 comments

Show HN: Lolodex turns email threads and attachments into clean/searchable notes

https://lolodex.com
1•yungookim•50m ago•0 comments

The Wren Stack

https://speakez.tech/blog/wren-stack/
1•Multicomp•53m ago•1 comments