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: Collaborate.dev – Multiplayer Visual Desktop for Coding Agents

https://collaborate.dev/remote/
2•austinvhuang•1m ago•0 comments

Show HN: Benchmarklist: track AI benchmarks (2.4k+), models, and capabilities

https://benchmarklist.com/
1•davidtsong•2m ago•0 comments

Hacker Fables – A satirical cyberpunk novella you can read as a man page

https://hacker-fables.onrender.com
1•birdculture•3m ago•0 comments

What If the Harness Comes Before Pretraining? A Data Flywheel Perspective

https://hanchenli.github.io/blog/posts/harness_pretraining/
1•matt_d•4m ago•0 comments

So long r/rust, and thanks for all the Slop!

https://old.reddit.com/r/rust/comments/1uwmef6/so_long_rrust_and_thanks_for_all_the_slop/
1•bel8•4m ago•0 comments

Show HN: Betula Fuzzy Search

https://gist.github.com/overflowy/9b6d30c7b65dd23c8899636595d88227
1•overflowy•6m ago•0 comments

Mimesys: Turn Resource Usage Traces into Executable Workloads

https://www.usenix.org/conference/osdi26/presentation/kim-donghyun
1•matt_d•6m ago•1 comments

Alman: German, Simplified

https://alman.ai/
1•tosh•7m ago•0 comments

Murati's Thinking Machines Releases Open-Weights 975B Parameter LLM

https://thinkingmachines.ai/inkling/
4•htrp•7m ago•1 comments

Disposable Software

https://seths.blog/2026/07/disposable-software/
3•herbertl•8m ago•0 comments

C Strings: A 50-Year Mistake – By Trần Thành Long

https://longtran2904.substack.com/p/c-strings-a-50-year-mistake
2•rbanffy•9m ago•0 comments

Sorel Caribou Boots: Great Product, Disappointing Online Shop

https://micro.mjanssen.nl/2026/07/15/200303.html
1•marc0janssen•9m ago•0 comments

Inkling: Our Open-Weights Model

https://thinkingmachines.ai/news/introducing-inkling/
7•vimarsh6739•9m ago•0 comments

Odyssey Linux – a Void-based distro trying to make no-systemd approachable

https://linuxcommunity.io/t/odyssey-linux-a-void-based-distro-trying-to-make-no-systemd-approacha...
1•ashitlerferad•10m ago•0 comments

Show HN: How you auto recover your Claude Code workflow when quota resumes

https://github.com/softcane/cc-session-recover
1•pradeep1177•12m ago•0 comments

The Fight over Humanoid Robots Has Shut Down a Car Factory for the First Time

https://www.wsj.com/business/autos/the-fight-over-humanoid-robots-has-shut-down-a-car-factory-for...
1•bookofjoe•12m ago•2 comments

Show HN: Tarit – a hypervisor which is 2x faster than firecracker

https://github.com/instavm/tarit
1•mkagenius•13m ago•0 comments

Kilocode Acquired by Anaconda

https://www.anaconda.com/blog/kilo-code-joins-anaconda-what-builders-should-know
2•datadrivenangel•14m ago•0 comments

Universal gates from braiding and fusing anyons on quantum hardware

https://www.nature.com/articles/s41586-026-10709-y
2•sbulaev•15m ago•0 comments

Agentic Misalignment in Summer 2026

https://alignment.anthropic.com/2026/agentic-misalignment-summer-2026/
1•lucamark•15m ago•0 comments

Steam Game Cartridges

https://old.reddit.com/r/pcmasterrace/comments/1ux13ui/steam_game_cartridges/
2•ShroudedNight•17m ago•0 comments

State of DESIGN.md 2026 – Survey results

https://getdesign.md/state-of-design-md
2•omeraplak•17m ago•1 comments

Suno hacked, leak reveals scraping data

https://xcancel.com/jason_koebler/status/2077393545850409308?s=20
4•hmokiguess•20m ago•3 comments

Show HN: ForkUnion v3 – Faster OpenMP-style thread-pool for C, C++, Rust, & Zig

https://github.com/ashvardanian/ForkUnion
1•ashvardanian•21m ago•0 comments

A webring for people offering Unoffice Hours

https://unofficehours.com/
1•rekl•22m ago•0 comments

Beyond lithium: how sodium-ion batteries could change the world

https://www.nature.com/articles/d41586-026-02150-y
2•SiempreViernes•22m ago•0 comments

Scrum Doesn't Matter (and It Never Did)

https://kasperowski.com/scrum-doesnt-matter-and-it-never-did/
2•mooreds•23m ago•0 comments

Show HN: Class-diff: A Pharo classes comparer using Needleman-Wunsch

https://github.com/hernanmd/class-diff
1•hernanmd•24m ago•0 comments

Fourteen months of LeafWiki (OSS), in small moments

https://leafwiki.com/blog/fourteen-months-of-leafwiki/
1•perber•25m ago•0 comments

Anthropic, Blackstone, and Hellman and Friedman Introduce Ode with Anthropic

https://www.businesswire.com/news/home/20260715205134/en/Anthropic-Blackstone-and-Hellman-Friedma...
1•petethomas•25m ago•0 comments