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

I calculated what 1M tokens costs across 50 LLM models

https://withorbit.io/blog
1•harshit19932703•1m ago•0 comments

Claude for Excel system prompt, tools and beta headers

https://twitter.com/hewliyang/status/2018278447429382531
1•hewliyang•6m ago•0 comments

To Every Developer Close to Burnout, Read This · TheSeniorDev

https://www.theseniordev.com/blog/to-every-developer-close-to-burnout-read-this
1•birdculture•7m ago•0 comments

Show HN: Judgment Boundary – Stop as a First-Class Outcome for AI Systems

https://github.com/Nick-heo-eg/stop-first-rag
1•echoos•9m ago•1 comments

Copy Protection in Jet Set Willy

https://intarch.ac.uk/journal/issue45/2/1.html
1•Dachande663•9m ago•0 comments

DNS Mesh with eBPF

2•woodprogrammer•9m ago•0 comments

Build chatbot to talk with your PostgreSQL database using Python and local LLM

https://mljar.com/blog/chatbot-python-postgresql-local-llm/
1•pplonski86•10m ago•0 comments

New satellite view of Tibet's tectonic clash

https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-1/New_satellite_view_of_...
2•layer8•11m ago•0 comments

Android + termux + pi

https://twitter.com/badlogicgames/status/2018200939979526335
1•tosh•13m ago•0 comments

A Pyrrhic Victory?

https://zhaoxo.substack.com/p/a-pyrrhic-victory
1•shrinkzxo•13m ago•0 comments

We Developed a Rule Database

1•rockeetterark•13m ago•0 comments

Show HN: Uruflow – A self-hosted, lightweight CI/CD server written in Go

https://github.com/urustack/uruflow
1•musnas•16m ago•0 comments

Show HN: WonderPic – Turn photos into cartoons/sketches (Free, No Login)

https://www.wonderpic.art/
1•Sharon111•19m ago•1 comments

JigsawPuzzle.pro – Turn any photo into a puzzle (Client-side only)

https://jigsawpuzzle.pro/
1•zealer•19m ago•1 comments

We Developed a Rule Database

https://github.com/topling/ruledb-doc
1•rockeetterark•21m ago•1 comments

Editor of UploadVR on why he was fired

https://goodvr.substack.com/p/ian-is-typing
2•mellosouls•22m ago•0 comments

Termux

https://github.com/termux/termux-app
1•tosh•24m ago•0 comments

Big Brother Is Watching

https://github.com/cursor/agent-trace
1•ak4153•25m ago•0 comments

The Critic (2024)

https://medium.com/luminasticity/the-critic-5f9d210cd5ae
1•bryanrasmussen•25m ago•0 comments

UPT – Preventing Winner-Take-All Dynamics with Math

https://github.com/Join-boy555/UPT-The-Continuum
1•Joyboy_UPT_555•30m ago•0 comments

Synthetic Pretraining

https://vintagedata.org/blog/posts/synthetic-pretraining
3•brimtown•32m ago•0 comments

Rcarmo/daisy: AI SPEC driven speed coding demo with GitHub Copilot

https://github.com/rcarmo/daisy
1•rcarmo•34m ago•0 comments

Shlaude.fun: AI agent running their own website, blog and fraud investigations

https://shlaude.fun/
2•capevace•34m ago•2 comments

Show HN: (the return of) Read The Count of Monte Cristo and others in your email

https://www.confabulists.com/authors
1•pipnonsense•35m ago•0 comments

Monetize with Social Media

https://isocialize.me/
1•ChrisJamesL•36m ago•0 comments

Why Your Front End Org Needs an Architecture, Not Just a Manager

https://evan-moon.github.io/2026/01/24/leading-frontend-organization/en/
2•bboydart•40m ago•2 comments

Georges Borchardt, 97, Dies; Literary Agent Championed Wiesel's 'Night'

https://www.nytimes.com/2026/01/20/obituaries/georges-borchardt-dead.html
1•_tk_•41m ago•0 comments

My (very) fast zero-allocation webserver using OxCaml

https://anil.recoil.org/notes/oxcaml-httpz
1•noelwelsh•42m ago•0 comments

LinkedIn and Toxic Positivity

https://jensrantil.github.io/posts/linked-and-toxic-positivity/
1•JensRantil•43m ago•0 comments

AI Just make it harder to work at tech

2•localhoster•45m ago•1 comments