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.

UAE revises 5GW AI data center plan after Iranian attacks, sources say

https://www.reuters.com/world/middle-east/uae-revises-ai-data-center-plan-after-iranian-attacks-s...
1•giuliomagnifico•2m ago•0 comments

U.S. Imperialism Resurgent

https://monthlyreview.org/articles/us-imperialism-resurgent/
1•neom•5m ago•0 comments

40C3 – Call for Participation

https://content.events.ccc.de/cfp/40c3/index.en.html
1•cgeier•6m ago•0 comments

What 1k% Open Rates Taught Us About Detecting Hijacked Email Accounts

https://www.sh.consulting/blog/what-a-1000-percent-open-rate-reveals-about-hijacked-email-accounts
2•toruviel•7m ago•0 comments

Declared Purpose Is Not Authorization

https://zenodo.org/records/22719527
1•sangamdas•8m ago•0 comments

Show HN: Stend – share whatever your agent came up with

https://stend.sh
1•chalyi•9m ago•0 comments

Why I Don’t Publish Technical Articles Anymore

https://galratner.substack.com/p/why-i-dont-publish-technical-articles
2•cats_and_dogs•21m ago•1 comments

Isaac Asimov's "Profession"

https://en.wikipedia.org/wiki/Profession_(novella)
1•ColinWright•22m ago•1 comments

Show HN: Sharpniq – AI-powered tool to unblur images online

https://unblurimage.me
1•toolina•23m ago•0 comments

Interview: Terence Tao on AI

https://teorth.github.io/tao-web/ai-views-interview.html
1•JuniperMesos•28m ago•0 comments

Improper Limitation of a Pathname to a Restricted Directory in GitLab 10/10

https://www.cve.org/CVERecord?id=CVE-2026-85706
2•ultral•35m ago•0 comments

Native macOS menu-bar system-metrics overlay

https://github.com/alhanashi/Desktop-Overlay
1•alhanashi•35m ago•1 comments

Timeouts and Cancellation for Humans (2018]

https://vorpus.org/blog/timeouts-and-cancellation-for-humans/
1•Bluestein•37m ago•0 comments

Retrospectively Reverse-Engineering Apple's Neural Engine

https://eiln.github.io/posts/ane.html
24•zdw•43m ago•2 comments

What happens when quantum mechanics and relativity meet?

https://arstechnica.com/science/2026/09/what-happens-when-quantum-mechanics-and-relativity-meet/
2•gumby•46m ago•0 comments

Anthropic researcher resigning citing superintelligence ' – is a marketing hoax [video]

https://www.youtube.com/shorts/skV0hDd-chM
2•adaba1234•48m ago•0 comments

Open API for Bosch and Buderus Heat Pumps

https://github.com/bosch-home-comfort/api-docs
3•n03dic0de3•49m ago•0 comments

Photic Sneeze Reflex

https://en.wikipedia.org/wiki/Photic_sneeze_reflex
2•vismit2000•51m ago•0 comments

Can A.I. "Go Rogue"?

https://www.newyorker.com/culture/open-questions/can-ai-go-rogue
2•Anon84•54m ago•0 comments

Ask HN: Does each frontier model have its own unique taste?

2•dave8172•1h ago•0 comments

Show HN: RagLeap v0.4.0 – 46 AI roles, 8 connectors, 9 vector DBs

https://github.com/antonyrag/ragleap-core
1•antonyragleap•1h ago•0 comments

I built an App to give alerts when your dependencies(Postgres) reach End of Life

2•sharadregoti15•1h ago•1 comments

Jot – AI Rewriter

https://chromewebstore.google.com/detail/jot-ai-writing-rewriting/ocbfgpiibmgkkjbpbpnhejalpakdonjh
2•gnsh•1h ago•1 comments

Gave Omarchy a Try

https://twitter.com/z3ratul163071/status/2098673641890234800
2•z3ratul163071•1h ago•1 comments

Show HN: Spiteware.ai – A catalog of apps built out of spite at unfair pricing

https://spiteware.ai/
2•tenthead•1h ago•0 comments

Silence on Tlenet

https://scyy.fi/tlen
1•c1ccccc1•1h ago•0 comments

Ask HN: What is the most overlooked risk in the AI security domain?

1•ToriTech•1h ago•0 comments

How I turned my Linux terminal sessions into daily speedrun challenges

https://www.howtogeek.com/how-i-turned-my-linux-terminal-sessions-into-daily-speedrun-challenges/
1•theanonymousone•1h ago•0 comments

Digital rights groups renew push to simplify cookie banners

https://www.euractiv.com/news/digital-rights-groups-renew-push-to-simplify-cookie-banners/
2•mnewme•1h ago•0 comments

Scikit-learn 1.9.1 released with Python 3.15 support

https://scikit-learn.org/stable/whats_new/v1.9.html
1•theanonymousone•1h ago•0 comments