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.

Build You Own Model

https://runinfra.ai
1•OsamaJaber•1m ago•0 comments

Interactive: Resource for Theories of Consciousness

https://loc.closertotruth.com/interactive
1•weatherlight•3m ago•0 comments

Show HN: Brume – Postgres pseudonymization that preserves FKs across tables

https://brumeorg.github.io/
1•Calgaryp•7m ago•0 comments

Sxediastes.gr

https://sxediastes.gr/
1•georgegenov•9m ago•0 comments

AI-powered car rental automation and fleet management software platform.

https://airentosoft.com
1•John_David•9m ago•0 comments

Social Media Recalibrates How the Brain Values Mental Effort

https://neurosciencenews.com/effort-recalibration-digital-media-cognition-30985/
1•w23j•10m ago•0 comments

Gun Mistakes in Fiction Writing: Handgun Edition

https://www.swiftsilentdeadly.com/blog/gun-mistakes-in-fiction-writing-handgun-edition
4•bushwart•18m ago•1 comments

Neural stem cells as potential mediators of epigenetic prenatal stress

https://www.cell.com/stem-cell-reports/fulltext/S2213-6711(26)00207-9?_returnURL=https%3A%2F%2Fli...
1•bookofjoe•19m ago•0 comments

"Existential threat" to optical astronomy: warning about satellite plans

https://www.heise.de/en/news/Existential-threat-to-optical-astronomy-warning-about-satellite-plan...
1•johnbarron•21m ago•0 comments

NASA launches robot to save Swift telescope falling to Earth

https://www.bbc.co.uk/news/articles/c0ry4xx7rk8o
1•ColinWright•25m ago•2 comments

Show HN: Turn boring flat screenshots into angled tilt-shift images

https://www.screenstab.com/
1•mikaelaast•26m ago•0 comments

The UK's generational tobacco ban might not work. I'm supporting it anyway

https://www.technologyreview.com/2026/07/03/1140036/uk-tobacco-ban-might-not-work-children-smoking/
1•joozio•28m ago•2 comments

Ed Zitron on CNBC: GenAI Doesn't Work, and Big Tech Is Out of Hypergrowth Ideas

https://www.youtube.com/watch?v=TtmPccUTDP8
6•johnbarron•28m ago•1 comments

Landscape Grid: Consciousness Categories and Theories

https://loc.closertotruth.com/consciousness-theories
2•weatherlight•31m ago•0 comments

CalyxOS Is Back

https://calyxos.org/news/2026/07/01/calyxos-official-release-is-back/
1•keithoffer•32m ago•1 comments

Show HN: Mtg-crucible, an NPM package to render custom Magic the Gathering cards

https://www.npmjs.com/package/mtg-crucible
2•CarlsJrMints•32m ago•1 comments

Bending Spoons just went public: Italy won the World Cup

https://www.theliquidfactory.com/news-detail/bending-spoons-just-went-public:-we-won-the-world-cup
2•ReDeiPirati•33m ago•0 comments

How the great wealth transfer is rattling Wall Street

https://www.ft.com/content/c914cbf5-4ede-4342-a4ac-9f1289c47dc9
3•bushwart•34m ago•1 comments

Ds.css: A CSS framework recreating the DS / DS Lite's UI

https://github.com/spiritov/ds.css
1•birdculture•38m ago•0 comments

Show HN: I make a human-edited, AI-assisted retro magazine reviewing YouTube

https://ctrl-watch.xyz/
1•deimos459•38m ago•0 comments

Show HN: MothRAG - Graph-free multi-hop RAG without the rebuild bill

https://github.com/juliangeymonat-jpg/mothrag
3•NYCHMPAI•40m ago•0 comments

Stock market boom runs on a 'large deficit model'

https://www.reuters.com/commentary/breakingviews/stock-market-boom-runs-large-deficit-model-2026-...
1•latentframe•40m ago•0 comments

Zero Blind Spots for Linux: Sovereign Automation Meets Identity Security

https://orcharhino.com/en/resources/event/webinars/sovereign-linux-zero-blind-spots/
1•LinuxGuard•40m ago•0 comments

Quantum Systems lands a €1B round, IQM becomes Europe’s first public quantum…

https://scalingeurope.substack.com/p/scaling-europe-daily-37
1•rbanffy•43m ago•0 comments

Internet latency in Venezuela is still higher after the earthquake

https://twitter.com/emot/status/2072992770789138529
1•emot•44m ago•0 comments

Show HN: Lips Up – Preview lip filler on your own face

https://lipsup.app/
1•debeast•44m ago•1 comments

Real-time speech-to-speech translation running locally on a MacBook

https://www.reddit.com/r/LocalLLM/s/mtqIOZHsZ2
1•issaneuphonic•47m ago•0 comments

US life expectancy on track to reach record high

https://www.cnn.com/2026/07/02/health/us-death-rate-record-low-cdc-report-longevity
1•baal80spam•48m ago•1 comments

MySat: Build Your Own Cube Satellite Kit – Your Personal CubeSat

https://www.mysatkit.com/
1•rbanffy•49m ago•0 comments

Stack Overflow Rebrand

https://koto.com/projects/stack-overflow
1•ricardobeat•53m ago•1 comments