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.

Save Wisdom Questions

https://savewisdom.org/the-1000-word-save-wisdom-questions/
1•momentmaker•1m ago•0 comments

Tech Slide Deepens as AI Fears Get Worse

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-06-23-2026
1•doener•2m ago•0 comments

A scientist says he can scan prisoners' brains for signs of evil

https://www.theguardian.com/us-news/ng-interactive/2026/jun/23/scientist-us-legal-system-violence...
1•mellosouls•3m ago•0 comments

The Warfare of the Future Is Here

https://www.noemamag.com/the-warfare-of-the-future-is-already-here/
1•sharjeelsayed•3m ago•0 comments

Not so empty nesters: record-high number of US adults under 35 live at home

https://www.theguardian.com/society/2026/jun/18/us-adults-under-35-living-at-home
1•littlexsparkee•3m ago•0 comments

Write Like Paul Graham

https://paulgraham.mooch.agency/
2•tahigichigi•6m ago•0 comments

The Struggle Is Valuable

https://blog.jobelenus.dev/blog/struggle-creates-value/
2•mooreds•8m ago•0 comments

Envoy AI Gateway 1.0 – A Stable, Production-Ready AI Gateway

https://aigateway.envoyproxy.io/blog/v1.0-release-announcement/
2•zoltano•16m ago•0 comments

Twenty Years Later, Everything Is the Truman Show (2018)

https://www.vanityfair.com/hollywood/2018/06/truman-show-anniversary-jim-carrey-peter-weir-laura-...
5•thoughtpeddler•17m ago•0 comments

How to Think About AI Before It's Too Late

https://www.theatlantic.com/podcasts/2026/06/how-to-think-about-ai-before-its-too-late/687644/
2•joebuckwilliams•18m ago•0 comments

TOP500 – June 2026 List

https://top500.org/lists/top500/2026/06/
3•NKosmatos•18m ago•0 comments

Generate per-session LoRA adapters in <1s for agentic inference efficiency

https://github.com/theoddden/Tessera
2•Facingsouth•19m ago•1 comments

Show HN: AnswerJournal – An MCP server to save and share AI answers

https://answerjournal.com/
2•daniban•21m ago•0 comments

Deciphering Basmalah

https://blog.plover.com/2026/06/23/
2•frizlab•26m ago•0 comments

Show HN: Pencil – Obsidian plugin to write, draw, sync

https://github.com/rcanand/obsidian-pencil
2•rcanand2025•26m ago•0 comments

As Chinese Tech Pulls Ahead, U.S. Fears It Will Become Dependent

https://www.nytimes.com/2026/06/23/business/economy/china-megafactory-us-tech-race.html
5•mikhael•28m ago•0 comments

John Carmack on why he would push back against anti-datacenter efforts

https://twitter.com/i/status/2069486595917402117
5•alexcos•28m ago•0 comments

Formisch V1 – A Vite-inspired lightweight form builder

2•Abutterflye•28m ago•0 comments

Philip K. Dick Takes You Inside His Life Changing Mystical Experience (2014)

https://www.openculture.com/2014/05/philip-k-dick-takes-you-inside-his-life-changing-mystical-exp...
2•Jimmc414•28m ago•0 comments

Carbon Language: An experimental successor to C++

https://github.com/carbon-language/carbon-lang
2•theanonymousone•28m ago•0 comments

Active Group and "Agentic Engineering"

https://funktionale-programmierung.de/en/2026/06/23/agai.html
3•marvinborner•31m ago•0 comments

Ask HN: Has anyone replaced a human receptionist with AI for a

2•VaderAi•32m ago•0 comments

America's data-centre backlash puts the AI boom at risk

https://www.economist.com/business/2026/06/23/americas-data-centre-backlash-puts-the-ai-boom-at-risk
2•edward•34m ago•1 comments

California AB 2047 makes 3d printers off-limits to students, educators, business

https://www.the3dprintingnerd.com/ab2047
68•Buildstarted•35m ago•10 comments

Embedded Skills Tree

https://embedded.fm/blog/2023/5/19/embedded-skills-tree
3•arbayi•40m ago•0 comments

A tiny shared Linux system

https://mbox.blue/
3•davidcollantes•40m ago•0 comments

Fika Jobs raises $4M to build platform where AI agents interview candidates

https://techcrunch.com/2026/06/23/fika-jobs-raises-4m-to-build-a-video-first-hiring-platform-wher...
4•adityamwagh•41m ago•2 comments

Geothermal Startup Plans to Use Oil Tech for Green Energy

https://insurancedimes.com/2026/06/23/birch-geothermal-emerges-from-stealth-with-ambitions-to-pow...
3•crookedroad44•45m ago•0 comments

Show HN: ReplyVoice <> global floating button for Android voice dictation

https://replyvoice.com
2•kedimuzafer•46m ago•0 comments

United Wizards of the Coast recognized by NLRB

https://unitedwizardsofthecoast.com/news/2026-06-23-we-have-a-union
51•d4mi3n•50m ago•10 comments