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: Pitch-by-pitch baseball simulation app to simulate games and seasons

https://baseball.chesterton.tech/
1•HaxleRose•8m ago•0 comments

A Human Artist's Defense of AI Art

https://asherperlman.substack.com/p/a-human-artists-defense-of-ai-art
2•erikschoster•9m ago•0 comments

Best Laptops

https://www.wired.com/story/best-laptops/
2•adrianwaj•13m ago•0 comments

Free Will (2026)

https://gt.ms/blog/free-will/
1•geetuu•14m ago•0 comments

Bernie Sanders unveils plan to give the public direct ownership of AI companies

https://apnews.com/article/bernie-sanders-ai-public-ownership-57b9f20d96490083e2749adba0f13977
4•petethomas•15m ago•2 comments

ArsenalOS: Anduril's Digital Manufacturing Backbone

https://www.anduril.com/news/introducing-arsenalos-tm-anduril-s-digital-manufacturing-backbone
1•ilreb•15m ago•0 comments

Claude Fable 5: The harness matters more than the model

https://www.endorlabs.com/learn/claude-fable-5-take-two-same-model-different-harness-and-a-very-d...
1•bugvader•16m ago•0 comments

Estonia assigns personal ID numbers to AI agents to grant them "authorizations"

https://www.bloomberg.com/news/articles/2026-06-17/estonia-to-grant-ai-bots-legal-rights-with-per...
3•thoughtpeddler•17m ago•0 comments

USP – Write once in Markdown, post everywhere

https://github.com/adamarutyunov/usp
2•tmatme•18m ago•0 comments

Making GHC Upgrades Easy

https://blog.haskell.org/making-ghc-upgrades-easy/
1•birdculture•19m ago•0 comments

Loop Unrolling in the ML Era

https://hiraditya.github.io/posts/why-loop-unrolling-is-popular-again/
1•matt_d•21m ago•0 comments

JPEG XL Art Gallery

https://jpegxl.info/art/big_gallery.html
1•6581•21m ago•0 comments

Show HN: A free CLI coding agent, powered by ads

https://freebuff.com
6•moado•22m ago•6 comments

Seven Perfect Shuffles Randomize a Deck of Cards. But How Many Sloppy Ones?

https://www.quantamagazine.org/seven-perfect-shuffles-randomize-a-deck-of-cards-but-how-many-slop...
1•jnord•26m ago•0 comments

Why standard WER fails for Indian languages

https://www.sarvam.ai/blogs/evaluating-indian-language-asr
1•laxmena•26m ago•0 comments

Vlk: MemAct for the IDE – persistent working memory agents can prune themselves

https://github.com/aranajhonny/vlk
1•akatsutki•30m ago•0 comments

Taxonomy of the Occlupanida (parasitoids on bread bag tags)

https://www.horg.com/horg/?page_id=921
4•beatthatflight•32m ago•1 comments

StackOverflow closed my OpenClaw and paperclipAI integration q. as "irrelevant"

https://stackoverflow.com/questions/79958607/how-do-i-view-server-logs-from-paperclipai-being-run...
2•khelavastr•32m ago•0 comments

License Plate Cameras Will Soon Track Phones, Wearables, Infotainment and Pets

https://www.thedrive.com/news/license-plate-cameras-will-soon-track-phones-wearables-infotainment...
5•xoxxala•33m ago•0 comments

Clojure Hosted on Go

https://github.com/glojurelang/glojure
3•dnlo•38m ago•0 comments

Show HN: ML condenses billions of logs into a tiny snapshot your LLM can debug

https://github.com/Rocketgraph/rocketgraph
5•kvaranasi_•38m ago•0 comments

A Secret Microsoft Tool Fixed Windows Performance [video]

https://www.youtube.com/watch?v=jH0BYAkPj78
3•tambourine_man•40m ago•0 comments

Build in Lovable, from Claude

https://xcancel.com/Lovable/status/2067326328110494129
1•doener•41m ago•0 comments

Tensordyne is making AI compute more efficient using logarithms

https://www.zach.be/p/tensordyne-is-making-ai-compute-more
2•hasheddan•43m ago•0 comments

The Free and Open Web Is Under Attack at the IETF

https://www.eff.org/deeplinks/2026/06/free-and-open-web-under-attack-ietf
11•hn_acker•48m ago•0 comments

The (real) dead economy theory

https://pluralistic.net/2026/06/17/its-the-stupid-economy-stupid/
25•hn_acker•48m ago•0 comments

The No Fakes Act Could Silence Satire, Commentary, and News

https://www.eff.org/deeplinks/2026/06/no-fakes-act-could-silence-satire-commentary-and-news
6•hn_acker•50m ago•0 comments

Salvager, Undo for AI agents that edit your files

https://www.salvager.sh/
1•gorkamb•52m ago•0 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app/
2•olievans•53m ago•1 comments

Hydra – a one-line Gradle RASP that seals app secrets until the device is clean

https://github.com/iamjosephmj/hydra
1•iamjosephmj1•54m ago•0 comments