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•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.

Flathub disallows LLM-based submissions

https://social.treehouse.systems/@barthalion/116657011366876079
1•birdculture•1m ago•0 comments

AI Didn't Create These Problems. It Just Stopped Routing Around Them

https://baweaver.com/writing/2026/05/27/ai-didnt-create-these-problems/
1•mooreds•5m ago•0 comments

Kickle Cubicle

https://en.wikipedia.org/wiki/Kickle_Cubicle
1•tosh•7m ago•0 comments

A new extraction process could unlock the lithium

https://www.technologyreview.com/2026/05/28/1138096/lithium-extraction-rock-zero/
1•joozio•8m ago•0 comments

Kemmerer Plans for Man Camp to House 1,600 TerraPower Nuclear Plant Workers

https://cowboystatedaily.com/2026/05/29/kemmerer-plans-for-man-camp-to-house-1-600-terrapower-nuc...
1•Bender•9m ago•0 comments

A Practical Guide for Secure MCP Server Development

https://genai.owasp.org/resource/a-practical-guide-for-secure-mcp-server-development/
1•mooreds•9m ago•0 comments

Too much time with colleagues can sour social interaction

https://www.economist.com/science-and-technology/2026/05/27/too-much-time-with-colleagues-can-sou...
1•kjw•11m ago•0 comments

Dear Steve Lemay

https://ilyabirman.net/meanwhile/all/dear-steve-lemay/
2•zahrevsky•11m ago•1 comments

Show HN: UN Condemnation Statistics

https://boxed.github.io/UN-condemns/
1•boxed•13m ago•0 comments

Token Is the New Currency

https://github.com/leogong99/codepulse
1•leogong99•13m ago•0 comments

Show HN: Community Ninja – Find customers searching for your product

https://communityninja.ai/
1•shashanoid•13m ago•0 comments

Fever Dreams

https://lwlies.com/article/werner-herzog-jungle-workshop
1•jruohonen•15m ago•0 comments

China building ASAT launchers to defend against Elon Musk's Golden Dome

https://www.reuters.com/graphics/CHINA-MILITARY/NUCLEAR/zjpqmbrlqpx/
1•infinitewars•16m ago•1 comments

Nikon weaponizes lower prices to break ASML's lithography monopoly

https://www.tomshardware.com/tech-industry/nikon-plans-to-undercut-asml-on-price-to-win-back-chip...
2•rbanffy•16m ago•0 comments

Practical Uses of Monads in Haskell

https://nauths.fr/en/2026/05/28/practical-use-of-monads.html
1•thunderbong•17m ago•0 comments

Ask HN: Why can we compare Python to Go, but we can't compare apples to oranges?

2•chirau•18m ago•1 comments

Chips Act 2.0 and beyond: Indispensability, not self-sufficiency

https://www.bruegel.org/opinion-piece/chips-act-20-and-beyond-indispensability-not-self-sufficiency
1•jruohonen•20m ago•0 comments

The tension between local and cloud agents

https://vivekhaldar.com/articles/local-vs-cloud-agents/
1•gandalfgeek•20m ago•0 comments

My thoughts on the future of Go in the AI era

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

Edgar Morin

https://en.wikipedia.org/wiki/Edgar_Morin
1•simonebrunozzi•24m ago•0 comments

Fluid Simulation for Dummies

https://www.mikeash.com/pyblog/fluid-simulation-for-dummies.html
2•sebg•24m ago•0 comments

Nightmarish Heron-Like Dinosaur Unearthed in Patagonia

https://nautil.us/nightmarish-heron-like-dinosaur-unearthed-in-patagonia-1281530
1•Brajeshwar•27m ago•0 comments

Abcdfhijkmnpqrstuvwxyz.com – can you spot what's missing and why it matters?

https://medium.com/@gui__/abcdfhijkmnpqrstuvwxyz-com-lipogram-or-signature-648bbcc7bd04
2•gillesr•28m ago•1 comments

I missed Network integrated tools on Windows so I built a Linux equivalent

https://github.com/thongor77/nmlinux
1•magetriste•31m ago•1 comments

Toranj: Our Adventure Left Mid-Way inside a loud and grieving Iran

https://medium.com/@alirezamd/toranj-an-adventure-left-mid-way-2da199493720
2•alir8zana•33m ago•0 comments

Beginner's Guide to Python

https://wiki.python.org/moin/BeginnersGuide
2•ankitg12•33m ago•0 comments

Show HN: Ping Pals – Simple social tracker iOS app without coding

https://apps.apple.com/tr/app/ping-pals/id6770330997
1•seugur•33m ago•0 comments

A Trademark Dispute over MeshCore

https://lwn.net/SubscriberLink/1070218/e95f4f2e2c9fe208/
2•6581•33m ago•0 comments

Leaked Files from Putin's Troll Factory: How Russia Manipulated EU Elections

https://vsquare.org/leaked-files-putin-troll-factory-russia-european-elections-factory-of-fakes/
3•alephnerd•35m ago•0 comments

Teardown of Jio Set Top Box Remote

https://pallavaggarwal.in/2026/02/07/teardown-jio-set-top-box-remote-india/
2•ankitg12•36m ago•0 comments