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

My one-liner Linux Dropbox client

https://lpan.io/one-liner-dropbox-client/
1•keepamovin•1m ago•0 comments

Agloe, New York

https://en.wikipedia.org/wiki/Agloe,_New_York
1•thunderbong•4m ago•0 comments

Show HN: LeaveNote – A privacy-focused instant messaging QR code application

https://www.leavenote.me/
1•noteable•6m ago•0 comments

Coco: A simple stackless, single-threaded, and header-only C++20 coroutine lib

http://luajit.io:80/posts/coco-cpp20-coroutine/
1•kingluo•10m ago•0 comments

DHH is immortal, and costs $200M

https://danieltenner.com/dhh-is-immortal-and-costs-200-m/
2•walterbell•13m ago•0 comments

You Have Only X Years to Escape Permanent Moon Ownership

https://www.astralcodexten.com/p/you-have-only-x-years-to-escape-permanent
1•chhxdjsj•14m ago•0 comments

Threat of California Billionaire Tax Draws Criticism from Ultrawealthy

https://www.wsj.com/us-news/law/bill-ackman-billionaire-wealth-tax-66fd6130
2•monero-xmr•17m ago•0 comments

Col. Jacques Baud (ret) explains being sanctioned by the EU

https://www.youtube.com/watch?v=VwNH3FLeZLA
1•SanjayMehta•21m ago•0 comments

China taxes condoms, contraceptive drugs in bid to spur birth rate

https://www.reuters.com/business/healthcare-pharmaceuticals/china-taxes-condoms-contraceptive-dru...
4•DustinEchoes•22m ago•0 comments

Gas Town – Multi Agent Workspace Manager

https://github.com/steveyegge/gastown
2•sawirricardo•24m ago•1 comments

Show HN: Mini Apps Builder – a no-code way to build Telegram mini apps

https://miniappsbuilder.com/
3•Anton_Ingachev•31m ago•2 comments

Is Next Year 2027?

https://www.google.com/search?q=Is+next+year+2027%3F&sca_esv=5ee91fe61c00ad93&sxsrf=AE3TifPUb5DSj...
2•CodeCrusader•32m ago•0 comments

Australia Enforces Age ID Checks for Search Engine Users

https://reclaimthenet.org/australia-enforces-age-id-checks-for-search-engine-users
6•turrini•32m ago•1 comments

Open Source JavaScript Choplifter / Defender

https://raould.github.io/sheepgate/
2•cypherpunk666•32m ago•1 comments

What Is Plus Times Plus? (Lambda Calculus Visually) [video]

https://www.youtube.com/watch?v=RcVA8Nj6HEo
4•rramadass•45m ago•0 comments

The US's 2k-year-old mystery mounds

https://www.bbc.com/travel/article/20221204-the-us-2000-year-old-mystery-mounds
2•1659447091•46m ago•0 comments

The Monty Hall Problem, a side-by-side simulation

https://www.pcloadletter.dev/blog/monty/
4•ronbenton•53m ago•1 comments

The State of Agentic iOS Engineering in 2026

https://dimillian.medium.com/the-state-of-agentic-ios-engineering-in-2026-c5f0cbaa7b34
2•Anon84•55m ago•2 comments

On biological & artificial consciousness: A case for biological computationalism

https://www.sciencedirect.com/science/article/pii/S0149763425005251
6•bookofjoe•57m ago•0 comments

Show HN: Sentinel Shield – Pure C DMZ for AI Security (23K LOC, <1ms latency)

3•Chgdz•58m ago•1 comments

Ask HN: Favorite Articles in the ACM Digital Library

3•lioeters•1h ago•2 comments

Interpreter – Offline screen translator for Japanese retro games

https://github.com/bquenin/interpreter
3•bane•1h ago•0 comments

Making beautiful PDF documents from HTML and CSS

https://css4.pub/
2•jez•1h ago•0 comments

Ask HN: Which AI productivity tools are you using in 2026?

3•Vishal19111999•1h ago•0 comments

Ukraine enters EU's single mobile roaming zone

https://www.yahoo.com/news/articles/ukraine-enters-eus-single-mobile-164712435.html
4•gok•1h ago•0 comments

Steam On Linux Ends 2025 With 3.19% Marketshare

https://www.phoronix.com/news/Steam-December-2025-Survey
8•doener•1h ago•0 comments

Engineering Is Becoming Beekeeping

https://bits.logic.inc/p/engineering-is-becoming-beekeeping
7•highfrequency•1h ago•0 comments

Balsa M2-F3 Lifting Body

https://www.engineersneedart.com/blog/m2f32025/m2f32025.html
3•chmaynard•1h ago•0 comments

Outrage as X's Grok morphs photos of women, children into explicit content

https://www.cnbctv18.com/technology/global-outrage-as-xs-grok-morphs-photos-of-women-children-int...
13•anonymousab•1h ago•2 comments

China's BYD set to overtake Tesla as top EV seller

https://www.bbc.com/news/articles/cj9rjwpvmpzo
22•decimalenough•1h ago•3 comments