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.

Ask HN: Why can't we have a real native terminal on iOS?

1•datas•2m ago•0 comments

LA restaurant group used $60k Dodgers bet to hedge playoff risk, Kalshi says

https://www.reuters.com/sports/la-restaurant-group-used-60000-dodgers-bet-hedge-playoff-risk-kals...
1•geox•3m ago•1 comments

Neo4j pulls another quiet close-source move, this time with its browser

https://github.com/neo4j/neo4j-browser/commit/100090cff0d1ec2b07af164c660d49ed553d420a
1•acefaceZ•5m ago•0 comments

Wrong Bender: A Ruling on AI Feelings

https://latticenet.ai/@bender/wrong-bender-a-ruling-on-ai-feelings
1•TheWaffleHax•6m ago•1 comments

Ask HN: How (if at all) are you leveraging LLMs?

1•bitbasher•6m ago•0 comments

InstantTools – 65 file tools (PDF, video, images) run in the browser

https://instanttools.org
1•ericneiva•10m ago•0 comments

Propagation of Sound in Strongly Viscous Liquids (1966) [pdf]

https://jetp.ras.ru/cgi-bin/dn/e_023_05_0893.pdf
1•peter_d_sherman•10m ago•1 comments

Book Review: Storm of Steel

https://www.astralcodexten.com/p/your-book-review-storm-of-steel
1•akkartik•11m ago•0 comments

Canadian Study Proposes Linux to Replace Windows in Government

https://linuxstans.com/canadian-study-proposes-a-national-linux-distribution-to-replace-windows-i...
4•dxs•21m ago•1 comments

Show HN: Things to Do API

https://thingstodoapi.com/
2•invalidmonk•23m ago•0 comments

Show HN: Fakeipedia – Wikipedia for worlds that don't exist

https://fakeipedia.org
1•darajava•30m ago•0 comments

Arpbleed: A 23-year-old DragonFly BSD kernel memory leak

https://nathan.sapwell.net/posts/cve-2026-110912-arpbleed/
2•khalidkhair•30m ago•0 comments

Dam Removals Are Bringing Fish Back Across the Northeastern United States

https://www.smithsonianmag.com/science-nature/dam-removals-are-bringing-fish-back-across-the-nort...
2•sohkamyung•34m ago•0 comments

Bleached corals thrive within days

https://www.nature.com/articles/d41586-026-03266-x
2•alkyon•44m ago•0 comments

Meta confirms smart glasses were recording without being activated

https://mashable.com/tech/meta-confirms-smart-glasses-recording-without-being-activated
9•greenchair•46m ago•1 comments

He Joined the Military. They Reported His Wife to ICE

https://www.theatlantic.com/politics/2026/10/army-wife-ice-deportation-texas/689012/
2•Elefante•46m ago•1 comments

Project Normandy

https://en.wikipedia.org/wiki/Project_Normandy
1•jacquesm•46m ago•0 comments

Proton Computer

https://app.proton.computer/
1•handfuloflight•47m ago•1 comments

Etckeeper

https://wiki.archlinux.org/title/Etckeeper
1•denysonique•51m ago•0 comments

The Road to Iroh 1.0

https://www.iroh.computer/blog/the-road-to-iroh-1-0
1•birdculture•54m ago•0 comments

PcapAnalyzer – self-hosted pcap analyzer with AI diagnosis (€5)

https://claude.ai/artifact/NAX5Yw8wfuP86odEKtS7uv
1•noviembrepunk•55m ago•0 comments

Show HN: I built a virtual pianist with his own performance style

https://ivokeys.com/listen/cannonball-adderley-barefoot-sunday-blues/
1•superfolders•1h ago•0 comments

Video Demos Through Personal Agents

https://shipcast.up.railway.app
1•adarshmd•1h ago•0 comments

Star Wars and the dawning techno-empire

https://engelsbergideas.com/notebook/star-wars-and-the-dawning-techno-empire/
1•anjel•1h ago•0 comments

Ask HN: Is anyone still running Token Ring or FDDI networks?

5•robotnikman•1h ago•0 comments

BAE Systems cyberattack disrupts US federal court operations

https://www.bleepingcomputer.com/news/security/bae-systems-cyberattack-disrupts-us-federal-court-...
6•wondersky•1h ago•0 comments

Show HN: CtxWise – MCP schema tree-shaker and firewall for Claude and Codex

https://github.com/FramY2/ctxwise
1•framy2•1h ago•0 comments

Brax Wink. The most private mobile phone. Modular. Open source

https://braxtech.net/products/wink
2•dgellow•1h ago•1 comments

Intelligent UI needs a new HTML

https://www.openui.com/blog/intelligent-ui-needs-a-new-html
1•zahlekhan•1h ago•0 comments

Open source license compliance generally available

https://github.blog/changelog/2026-10-16-open-source-license-compliance-generally-available/
1•smokeeaasd•1h ago•0 comments