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.

Show HN: Glassboard – Draw over everything on your Mac, Khan-academy style

https://stem.ps/glassboard/
1•stemps23•1m ago•0 comments

From pixels to planning: Earth AI for nature restoration

https://research.google/blog/from-pixels-to-planning-earth-ai-for-nature-restoration/
1•thm•1m ago•0 comments

Pyrefly v1.1 is here 27% faster, refactoring tools, tensor shapes

https://pyrefly.org/blog/v1.1/
1•ocamoss•2m ago•0 comments

Show HN: Circular Map with You in the Middle

https://hubofuniverse.com/
1•bitslayer•5m ago•0 comments

Goodbye RSS

https://basic.bearblog.dev/goodbye-rss/
1•speckx•5m ago•0 comments

Show HN: Visualization of Token Market Share by Lab Using Openrouter Data

https://dirac.run/labs-market-share
1•GodelNumbering•5m ago•0 comments

Smashing the NIMBYs created modern capitalism

https://worksinprogress.co/issue/how-abolishing-the-stakeholder-state-caused-the-industrial-revol...
1•bensouthwood•6m ago•0 comments

What's Easy Now? What's Hard Now?: Software is easier for coding agents

https://brooker.co.za/blog/2026/05/18/whats-easy-whats-hard.html
1•xenophenes•7m ago•0 comments

Show HN: Glisker – First-impression feedback on your landing page (no signup)

https://www.glisker.com/
1•merveceylan•7m ago•0 comments

Apple Prepares Second-Generation iPhone Air for Spring 2027

https://www.bloomberg.com/news/articles/2026-06-17/apple-prepares-second-generation-iphone-air-fo...
1•nicksergeant•8m ago•0 comments

Show HN: Polyvia – Multimodal document retrieval over 100K+ files

https://github.com/polyvia-ai/polyvia
1•mgierlach-polyv•9m ago•0 comments

Show HN: Eggspression – shape any bird egg in 3D from four parameters

https://s13k.dev/eggspression/
2•s13k•10m ago•0 comments

Cotect – move around your repo with WASD

https://cotect.dev/
1•grzracz•15m ago•0 comments

World’s “most famous” tree dies after 1000 years in England

https://www.dexerto.com/entertainment/worlds-most-famous-tree-dies-after-1000-years-in-england-33...
1•thunderbong•16m ago•0 comments

Thomas Jefferson to John Norvell (1807)

https://press-pubs.uchicago.edu/founders/documents/amendI_speechs29.html
1•downbad_•18m ago•0 comments

Life: Nasty, Brutish, and Short (1987)

https://www.jsoftware.com/papers/eem/life.htm
3•tosh•19m ago•0 comments

Systems Get Gamed

https://arnoldkling.substack.com/p/systems-get-gamed
3•jger15•23m ago•0 comments

I found 10k GitHub repositories distributing Trojan malware

https://orchidfiles.com/github-repositories-distributing-malware/
4•theorchid•24m ago•0 comments

We blamed 112,000 commits to find out If AI-written code is buggier

https://www.repowise.dev/blog/engineering/is-ai-written-code-buggier-than-human-code
2•swatiahuja•24m ago•1 comments

AI will create more jobs for humans, not replace them says Jeff Bezos

https://www.bbc.co.uk/news/articles/ceqdrw2yy3vo
1•rvz•25m ago•1 comments

Adding a Town Square

https://kevquirk.com/town-square
2•whilenot-dev•28m ago•0 comments

Modos Color Monitor Pushes E-Paper Displays Further

https://spectrum.ieee.org/modos-e-paper-monitor
3•Vinnl•28m ago•1 comments

Prediction Markets' Next Major Bet: Wall St. Traders

https://www.nytimes.com/2026/06/17/business/dealbook/hedging-prediction-markets-kalshi.html
2•thm•29m ago•0 comments

Commodore's New Flip Phone Focuses on Digital Detox

https://www.cnet.com/tech/mobile/commodores-new-flip-phone-focuses-on-digital-detox-blocks-social...
1•daniel_iversen•29m ago•1 comments

We Did the Math on Why the iPhone 18 Pro Could Cost $1,299

https://www.wsj.com/tech/personal-tech/apple-iphone-price-increase-e846d737
1•thm•30m ago•0 comments

Rue: Higher level than Rust but lower level than Go

https://github.com/rue-language/rue
1•tosh•32m ago•0 comments

Challenging the Narrative of European Decline

https://paulkrugman.substack.com/p/challenging-the-narrative-of-european-478
15•vrganj•35m ago•1 comments

Prompt processing vs. generation: two phases, opposite bottlenecks

https://vettedconsumer.com/prompt-processing-vs-generation-why-your-box-is-fast-at-one-and-slow-a...
1•ermantrout•36m ago•0 comments

Trump says Apple to partner with Intel on US chip design, production

https://www.reuters.com/business/trump-says-apple-work-with-intel-manufacture-chips-us-2026-06-18/
2•maxloh•36m ago•0 comments

Designing delightful front ends with GPT-5.4

https://developers.openai.com/blog/designing-delightful-frontends-with-gpt-5-4
2•tosh•38m ago•2 comments