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

Job Postings for Software Engineers Are Rapidly Rising

https://www.citadelsecurities.com/news-and-insights/2026-global-intelligence-crisis/
1•delichon•1m ago•0 comments

Why Footbinding Persisted in China for a Millennium (2015)

https://www.smithsonianmag.com/history/why-footbinding-persisted-china-millennium-180953971/
1•thomassmith65•8m ago•0 comments

Robot fighting league has new home in S.F. you can watch – and buy – 'humanoids'

https://www.sfchronicle.com/tech/article/buy-fighting-robots-sf-22231111.php
1•iancmceachern•8m ago•0 comments

OpenX32: Open Linux kernel for Behringer X32 mixer

https://github.com/OpenMixerProject/OpenX32
2•brudgers•10m ago•0 comments

We Built an Authorization Engine That the Fortune 100 Bet On

https://www.technology.org/2026/04/30/we-built-an-authorization-engine-that-the-fortune-100-bet-o...
1•mooreds•15m ago•0 comments

Trump issues executive order against Cuba

https://www.cbsnews.com/miami/news/trump-executive-order-tightening-u-s-sanctions-on-cuba/
2•mark336•20m ago•1 comments

Echon – A privacy-first Discord alternative built in Tauri/Rust

https://echon-voice.com
1•highest678•23m ago•0 comments

Apple Is Holding My Pictures Hostage Until I Accept Their New Terms of Service

https://probablydance.com/2026/05/01/apple-is-holding-my-pictures-hostage-until-i-accept-their-ne...
4•akkartik•31m ago•0 comments

Gut bacteria may play a role in the rise in colon cancer in young adults

https://www.npr.org/sections/shots-health-news/2025/04/25/g-s1-62623/colon-cancer-gut-health-micr...
2•littlexsparkee•37m ago•0 comments

There's a lot of hype about Chinese EVs, is any of it true?

https://arstechnica.com/cars/2026/05/theres-a-lot-of-hype-about-chinese-evs-is-any-of-it-true/
2•Bender•43m ago•0 comments

Show HN: Transparent Tor Proxy – Route all Linux system traffic through Tor

https://github.com/onyks-os/TransparentTorProxy
1•onyks•45m ago•0 comments

xAI Has Used OpenAI's Models to Train Its Own

https://www.wired.com/story/elon-musk-distill-openai-models-partly-xai/
1•bhouston•48m ago•0 comments

Show HN: MemHub, Turn Your GPT/Claude/Gemini History into LLM-Wiki Mindmap

https://github.com/XTraceAI/memhub-llm-wiki-guide
3•TristanX•51m ago•0 comments

Hobson vs. Hansen and the Decline of D.C. Schools

https://www.educationprogress.org/p/hobson-v-hansen-and-the-decline-of
1•barry-cotter•55m ago•1 comments

Finny – AI trading agent that runs in your terminal

https://www.finnyai.tech/
1•jaimin67•1h ago•0 comments

Kubernetes Secret Extraction via ArgoCD ServerSideDiff

https://github.com/argoproj/argo-cd/security/advisories/GHSA-3v3m-wc6v-x4x3
1•milkglass•1h ago•0 comments

TanStack Start: Full-Stack Framework Powered by TanStack Router for React+Solid

https://tanstack.com/start/latest
1•doener•1h ago•0 comments

TanStack Router: modern router designed for type safety, data‑driven navigation

https://github.com/TanStack/router
1•doener•1h ago•0 comments

Show HN: Hackamaps – A global hackathon map I build after hitting Lovable Limits

1•ostenjap•1h ago•0 comments

So, About That AI Bubble

https://www.theatlantic.com/economy/2026/05/ai-bubble-revenue-anthropic/687022/
2•JumpCrisscross•1h ago•1 comments

Vite: Next Generation Front End Tooling

https://github.com/vitejs/vite
1•doener•1h ago•0 comments

Agsist – free real-time grain market dashboard for US producers

https://agsist.com/
1•dnilgis•1h ago•0 comments

The Half of CI We Forgot to Automate

https://blog.sebastiansastre.co/posts/the-half-of-ci-we-forgot-to-automate/
1•sebastianconcpt•1h ago•2 comments

GitHub Enshittification

https://pablotron.org/2026/04/30/github-enshittification/
2•birdculture•1h ago•0 comments

Russian forces defeated in Saharan stronghold after wave of attacks

https://www.ft.com/content/e40ba9d0-7430-4545-8c26-c99cde5caf33
4•JumpCrisscross•1h ago•1 comments

Good developers learn to program. Most courses teach a language

https://evilgeniuslabs.ca/blog/good-developers-learn-to-program-not-a-language
9•andsoitis•1h ago•2 comments

Probability Sampling

https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm
1•firasd•1h ago•0 comments

History of Visual Basic (Chapter 1)

https://evilgeniuslabs.ca/books/visual-basic-history
2•andsoitis•1h ago•0 comments

A Physics Engine with Incremental Rollback for Multiplayer Games

https://easel.games/blog/2026-rollback-physics
1•BSTRhino•1h ago•1 comments

What did you love about VB6?

https://evilgeniuslabs.ca/blog/vb6-modern-dotnet-question
43•andsoitis•1h ago•49 comments