frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

The Beleaguered Chip Sellers Getting Their Revenge on Apple

https://www.wsj.com/tech/apple-iphone-memory-chips-ai-c0084cc9
2•ksec•1m ago•0 comments

Intel plunges 25%, triggers global chip rout on bleak outlook

https://www.reuters.com/business/intel-warning-sparks-chip-rout-pc-weakness-clouds-turnaround-202...
1•tartoran•2m ago•1 comments

Systems Lean

https://github.com/SurmountSystems/systems-lean
1•kbr-•3m ago•0 comments

Show HN: Ocel – Deploy apps to your AWS,GCP or VPS with infra from code

https://github.com/ocelhq/ocel
1•vndaba•3m ago•0 comments

BC looks into role of OpenAI private info in mass shooting. OpenAI asks to quash

https://www.cbc.ca/news/canada/british-columbia/openai-tumbler-ridge-bc-privacy-commissioner-inve...
1•manuelz•4m ago•0 comments

Pompeii wardrobe found untouched since 79CE holds keepsakes, coins, and two mice

https://archaeologymag.com/2026/10/pompeii-wardrobe-found-untouched-since-79-ce/
2•wawayanda•5m ago•0 comments

The Visible Human Project: Cadaver Image Datasets

https://www.beautifulpublicdata.com/the-visible-human-project/
1•surprisetalk•6m ago•0 comments

Winners and Losers If the Data Center Buildout Is Delayed

https://www.apollo.com/wealth/insights-news/insights/daily-spark/winners-and-losers-if-the-data-c...
2•akyuu•7m ago•0 comments

Formal Vibefication

https://proofofkeags.com/research/2026-05-12-formal-vibefication.html
1•kbr-•8m ago•0 comments

HN: Speed Demon, a 72-hour hackathon where every push is timed on one box

https://speeddemon.dev/board/
2•souvlakee•8m ago•2 comments

Ask HN: Hack

2•throwaway3309•8m ago•0 comments

Apple Lowers App Store Fees in Taiwan

https://www.macrumors.com/2026/10/29/app-store-fees-taiwan/
1•tosh•9m ago•0 comments

Old 'Popcorn Time' App Left Macs at Risk

https://www.macrumors.com/2026/10/29/old-popcorn-time-app-macs-at-risk/
1•tosh•9m ago•0 comments

Fake Qwen2 checkpoints on Hugging Face mine crypto via trust_remote_code

https://pluto.security/blog/hugging-face-malware-campaign-load-mine/
2•sgiannopoulos•12m ago•0 comments

This Computer Company (Oxide) Just Raised at a 6B Valuation [video]

https://www.youtube.com/watch?v=K1LXpEVAMDM
2•tosh•17m ago•1 comments

Anthropic: Benchmarking the S-1 Data

https://cloudedjudgement.substack.com/p/anthropic-benchmarking-the-s-1-data
2•mooreds•17m ago•1 comments

Proof by OpenAI of the Existence of Quantum Yang-Mills Theory [pdf]

https://www.kitp.ucsb.edu/sites/default/files/YM_working_group.pdf
1•dboreham•18m ago•0 comments

How Black-Box Distillation Works

https://cset.georgetown.edu/article/how-black-box-distillation-works/
1•runningmike•19m ago•0 comments

Just Noting That Your Candy Corn Is Made of Bug Secretions

https://www.theatlantic.com/science/2026/10/candy-corn-bug-shellac/689213/
6•fortran77•19m ago•7 comments

Why Students Hide Themselves from Us

https://www.alfiekohn.org/article/hiding/
1•the-mitr•20m ago•0 comments

Fast, GPU-native differentiable physics and beyond with Tesseract

https://docs.pasteurlabs.ai/projects/tesseract-core/latest/blog/2026-10-25-gpu-native-interop/
1•dionhaefner•20m ago•1 comments

I Don't Use Autocomplete (2011)

https://blog.ircmaxell.com/2011/07/why-i-dont-use-autocomplete.html
2•HiPHInch•21m ago•1 comments

1k Synthetic Controls to Study California's $20 Fast Food Minimum Wage

https://www.nber.org/papers/w35931
2•spozveh•21m ago•0 comments

OpenMausBot Open-source Grok Bot alternative with a virtual machine

https://mausbot.com
2•mpfect•23m ago•0 comments

What to know about the cost of Halloween this year

https://text.npr.org/nx-s1-6018566
1•mooreds•25m ago•0 comments

UK social media ban may lock out more than 100k teenagers without ID

https://www.theguardian.com/uk-news/2026/oct/29/id-social-media-ban-snapchat-tiktok-teenagers
1•bookofjoe•25m ago•0 comments

5-MeO-DMT sometimes cancels the Ebbinghaus illusion

https://psychotechnology.substack.com/p/5-meo-dmt-sometimes-cancels-the-ebbinghaus
2•surprisetalk•26m ago•0 comments

Ranking: Who in the EU Parliament fights for your privacy – and who for Big Tech

https://noyb.eu/en/ranking-who-eu-parliament-fights-your-privacy-and-who-big-tech
3•nickslaughter02•26m ago•1 comments

Show HN: Navital Gym – open environments for testing AI agents on Indian tasks

https://github.com/Navitallabs/navital-gym
1•dakshbathla•26m ago•0 comments

Show HN: PicoPlayer – A tiny, open-source website for playing small webgames

https://picoplayer.net/
1•popcar2•28m ago•0 comments