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.

Ideas

https://www.noahzender.com/ideas
1•andsoitis•22s ago•0 comments

Speech to Bird Song Converter

https://birdspeech.mitpit.com/
1•MitPitt•1m ago•0 comments

The Captain and the Current

https://www.tylerhogge.com/blog/the-captain-and-the-current/
1•andsoitis•2m ago•0 comments

EScan and M-Kavach have issues

1•AngadBasandrai•3m ago•0 comments

Liella: A Glibc Reimplementation in Rust

https://github.com/duskglow/liella
1•duskglow•4m ago•2 comments

Show HN: My Kids TV – Calm, ad-free replacement home screen for Google TV

https://github.com/suboss87/my-kids-tv
2•suboss87•6m ago•0 comments

What Makes Life Beautiful?

https://nautil.us/what-makes-life-beautiful-1285942
3•the-mitr•8m ago•0 comments

A Few Thoughts on Conviction

https://www.tylerhogge.com/blog/a-few-thoughts-on-conviction/
1•andsoitis•10m ago•0 comments

Human Creativity in the Age of AI [video]

https://www.youtube.com/watch?v=kD5qYiLIhJc
1•epiccoleman•11m ago•1 comments

Red-teaming AI agent monitors with an LLM that fakes tool outputs

https://www.redwoodresearch.org/blog/simulated-control-evaluations
1•sgiannopoulos•12m ago•0 comments

Enjoy – A free AI creative studio for macOS, Windows, and Linux

https://enjoy.dev/hn/
1•mobitar•13m ago•0 comments

Cramdle: A game about packing shapes together tightly

https://cramdle.com/
2•underanalyzer•14m ago•0 comments

Architectural Decision Records

https://adr.github.io/
2•pelasaco•14m ago•0 comments

Show HN: I found out a way to make openF1 data easy to analyse for normies

https://pitwall.plusminushalf.com/session/11392?t=4144&drivers=12,3
1•garvitdelhi•14m ago•0 comments

JPEG XL with WebGPU makes smaller files than libjxl in 150 KB JavaScript

https://github.com/jackskip22/rapier-jxl
2•jackskip22•16m ago•0 comments

CIOs admit that after purchase vendors drive the timing and acceptance of change

https://www.computerweekly.com/news/366652380/CIOs-admit-they-are-being-forced-to-upgrade-enterpr...
1•m463•17m ago•0 comments

Mozilla "Come back to Firefox" video "reunites meme royalty"

https://blog.mozilla.org/en/firefox/come-back-to-firefox/
2•brycewray•18m ago•1 comments

Anthropic Wanted to Replace Engineers. Instead, They Shot Their Own Customers

https://techbronerd.substack.com/p/openai-and-anthropic-wanted-to-replace
2•tom2026hn•18m ago•1 comments

Protocols and Relationships

https://systemsoflife.substack.com/p/protocols-and-relationships
1•mday404•20m ago•0 comments

In times of uncertainty, focus on principles

https://r.ena.to/blog/in-times-of-uncertainty-focus-on-principles/
4•napsterbr•22m ago•0 comments

Apple Stores Reportedly Rolling Out New Anti-Theft System for iPhones

https://www.macrumors.com/2026/10/25/apple-stores-anti-theft-iphone-box-checker/
1•tosh•23m ago•0 comments

Check it out. Especially The language greenServeFE

https://github.com/MacoraOne/MacoraOne
1•dominex•24m ago•0 comments

Microsoft and Others Tell Crypto Platform Not to Tokenize Their Stocks

https://gizmodo.com/microsoft-mcdonalds-verizon-and-others-tell-crypto-platform-not-to-tokenize-t...
1•gumby•24m ago•0 comments

Show HN: Swingback, get feedback from your user for free

https://swingback.dev
2•fayorg•27m ago•0 comments

POSIX Wordexp(3) Is Dangerous

https://yossarian.net/til/post/posix-wordexp-3-is-dangerous/
1•woodruffw•27m ago•0 comments

Knip: finds and fixes unused dependencies in JavaScript and TypeScript projects

https://github.com/webpro-nl/knip
1•modinfo•31m ago•0 comments

If AI Can Copy Photoshop, Why Would Anyone Build the Next Figma?

https://www.vincentschmalbach.com/if-ai-can-copy-photoshop-why-build-the-next-figma/
1•vincent_s•32m ago•1 comments

Snowflake per-user quotas for capping Cortex AI spend [video]

https://www.youtube.com/shorts/P4z9L17uEgk
1•yanivleven•32m ago•0 comments

MongoDB vs. FerretDB: When Open Source Compatibility Becomes a Patent Risk

https://shujisado.org/2026/07/15/mongodb-v-ferretdb-when-open-source-compatibility-becomes-a-pate...
2•maxloh•33m ago•0 comments

Recent Tailscale Vulnerability Reports

https://www.reddit.com/r/Tailscale/comments/1xeoj1l/recent_tailscale_vulnerability_reports/
3•taubek•34m ago•0 comments