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

AI detection tools cannot prove that text is AI-generated

https://www.seangoedecke.com/ai-detection/
1•Twixes•3m ago•0 comments

Show HN: Know your employees skills gap and boost retention rate

https://semis.reispar.com
1•tolulade_•3m ago•0 comments

The Gamma Language

https://lair.masot.net/gamma/
1•RossBencina•7m ago•0 comments

Giant humanoid electrical pylons

https://choishine.com/Giants.html
1•yzydserd•13m ago•0 comments

Should CSS Be Constraints?

https://pavpanchekha.com/blog/why-css-bad.html
1•tannhaeuser•16m ago•0 comments

Why Does A.I. Write Like That?

https://www.nytimes.com/2025/12/03/magazine/chatbot-writing-style.html
2•carabiner•18m ago•0 comments

Instagram Profit Margin Calculator Online Free Tool

https://metaconvert.blogspot.com/2025/10/instagram-profit-margin-calculator.html
2•MetaConvert•25m ago•0 comments

Unix Original Bell Labs v4 Found at University of Utah

https://www.youtube.com/watch?v=IR-f07LN0-Y
1•rasengan0•27m ago•0 comments

Grok 4.20 beats all other AI models in Alpha Arena test

https://www.sammyfans.com/2025/12/05/grok-4-20-beats-all-other-ai-models-in-alpha-arena-test/
1•terryds•29m ago•0 comments

High-Performance DBMSs with io_uring: When and How to use it

https://arxiv.org/abs/2512.04859
1•mfiguiere•32m ago•0 comments

Loopi – Open-Source Visual Browser Automation Platform

https://loopi.dyan.live/
1•0018akhil•33m ago•1 comments

Nano Banana Pro: reasoning-first 4K studio

https://nanobanapro.com
1•AnyVideoAI•41m ago•0 comments

Which protocol do you guys use in NAS shares to Proxmox – NFS or SMB?

https://old.reddit.com/r/Proxmox/comments/1i50jy9/which_protocol_do_you_guys_use_in_nas_shares_to/
2•sipofwater•41m ago•2 comments

Alternate Reality Christmas Gifts

https://medium.com/luminasticity/alternate-reality-christmas-gifts-9d9dd9c81a2b
1•bryanrasmussen•47m ago•0 comments

Show HN: How to play imposter game with impostergame.win

https://impostergame.win/how-to-play
1•tomstig•50m ago•1 comments

Turning everyday observations into investable signals

https://www.prophit.investments/
2•porterh•50m ago•1 comments

UK IVF couples rank embryos based on potential IQ, height and health

https://www.theguardian.com/society/2025/dec/06/uk-ivf-couples-use-legal-loophole-rank-embryos-iq...
2•sorokod•53m ago•0 comments

Maher Arar

https://en.wikipedia.org/wiki/Maher_Arar
4•KnuthIsGod•59m ago•0 comments

Very Important People

https://dirt.fyi/article/2025/11/very-important-people
1•gmays•1h ago•0 comments

Why Theme Parks Keep Getting More Extreme

https://www.theatlantic.com/culture/archive/2025/09/universal-epic-universe-disney-theme-park-att...
2•vinhnx•1h ago•0 comments

Rnj-1: Building Instruments of Intelligence

https://essential.ai/research/rnj-1
1•aratahikaru5•1h ago•0 comments

Pantone Color of the Year 2026

https://www.pantone.com/uk/en/color-of-the-year/2026
1•vinhnx•1h ago•1 comments

Schizophrenia sufferer mistakes smart fridge ad for psychotic episode

https://old.reddit.com/r/LegalAdviceUK/comments/1pc7999/my_schizophrenic_sister_hospitalised_hers...
46•hliyan•1h ago•12 comments

Redfin's 2026 Predictions: Welcome to the Great Housing Reset

https://www.redfin.com/news/housing-market-predictions-2026/
1•toomuchtodo•1h ago•0 comments

St. Nicholas Day: NIS2 Implementation Act Comes into Force in Germany

https://www.heise.de/en/news/On-St-Nicholas-Day-NIS2-Implementation-Act-Comes-into-Force-11104146...
1•doener•1h ago•0 comments

The Hackers Lost. Freezenet Is Back

https://www.freezenet.ca/the-hackers-lost-freezenet-is-back/
1•doener•1h ago•0 comments

Wolfram Compute Services

https://writings.stephenwolfram.com/2025/12/instant-supercompute-launching-wolfram-compute-services/
13•nsoonhui•1h ago•0 comments

Wine 11.0 RC1 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.0-rc1
5•neustradamus•1h ago•0 comments

The largest startup losses in history

https://www.dbresearch.com/PROD/RI-PROD/PROD0000000000611818/The%20largest%20start-up%20losses%20...
1•doener•1h ago•0 comments

Appbundler.jl – Bundle Your Julia Application for Windows, macOS, and Linux

https://github.com/PeaceFounder/AppBundler.jl
1•MrJulia•1h ago•0 comments