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: Presse – a Rust CLI tool to compress and merge PDFs

https://github.com/SimonBure/presse
1•saientifik•49s ago•0 comments

SIMD at Insomniac Games (2015) [pdf]

https://deplinenoise.wordpress.com/wp-content/uploads/2015/03/gdc2015_afredriksson_simd.pdf
1•vinhnx•3m ago•0 comments

Do you think AI governance should be technically rather than paper policy?

1•sangamdas•7m ago•0 comments

Hardware-Rooted Control for Alternative App Stores

https://zenodo.org/records/21839301
1•sangamdas•7m ago•0 comments

WD Bets 8x Bandwidth Beats More Terabytes as 40TB UltraSMR Starts Shipping

https://www.storagereview.com/news/wd-bets-8x-bandwidth-beats-more-terabytes-as-40tb-ultrasmr-sta...
1•rbanffy•9m ago•0 comments

Understanding partial reachability in the Internet core

https://blog.apnic.net/2026/08/07/understanding-partial-reachability-in-the-internet-core/
1•m_montazeri•14m ago•0 comments

Anql – An offline desktop editor for writing, working, and calculating

https://github.com/anqlproject/anql
1•anqluser•18m ago•0 comments

Deathwatch - Archiveteam

https://wiki.archiveteam.org/index.php/Deathwatch
1•frozenseven•21m ago•0 comments

Microsoft Edge is about to lock out older ad blockers, just like Chrome did

https://www.theverge.com/tech/976880/microsoft-edge-extensions-ad-blockers-mv2-mv3
2•eternalreturn•22m ago•0 comments

Apple Introduces Leasing Program for iPhones and Other Devices

https://www.nytimes.com/2026/07/28/technology/apple-leasing-program.html
4•Korwell•22m ago•0 comments

Making an AI bid writer refuse to lie

https://ailucius.com/blog/making-an-ai-bid-writer-refuse-to-lie
19•Lucius-AI•24m ago•0 comments

The ultimate eclipse chase: A Concorde raced against the Moon's shadow

https://arstechnica.com/science/2026/08/the-ultimate-eclipse-chase-a-concorde-raced-against-the-m...
1•pseudolus•25m ago•0 comments

AI is not your biggest cyber threat. Your shitty patching process is

https://0ut3r.space/2026/08/08/ai-is-not-your-biggest-cyber-threat/
1•h0ek•26m ago•1 comments

Show HN: I spent a week building a CLV model and the CMO shrugged

https://nasserboan.github.io/clvkit/
1•nsboan•27m ago•0 comments

New Amazon Data Center Is Set to Have the Most Polluting Power Plant in the U.S.

https://www.nytimes.com/2026/08/08/climate/amazon-data-center-texas-pollution.html
13•sbulaev•31m ago•1 comments

US Military's Cyber Command Unit Grapples with Cluster of Deaths by Suicide

https://www.bloomberg.com/news/articles/2026-08-06/us-military-s-cyber-command-unit-grapples-with...
7•rbanffy•33m ago•0 comments

Concurrency vs. Throughput: why more parallelism can make databases slower

https://planetscale.com/blog/concurrency-vs-throughput-vitess-mysql
1•Shaanveer•33m ago•0 comments

AgentBlog – open-source, AI-native SEO blog

https://agentblog.dev
2•goldkey•35m ago•0 comments

Coca-Cola's personalized cans inconsistently enforcing controversial phrases

https://www.foxbusiness.com/media/coca-cola-personalized-cans-show-inconsistent-enforcement-again...
4•mikhael•37m ago•0 comments

Finance Jobs Just Hit a 4-Year Low

https://www.inc.com/georgia-fearn/finance-jobs-hit-four-year-low-banks-posted-nearly-49000-roles/...
2•01-_-•38m ago•0 comments

Europe's free satellite service just made it easier to track wildfires

https://arstechnica.com/gadgets/2026/08/europes-free-satellite-service-just-made-it-easier-to-tra...
5•01-_-•39m ago•0 comments

FlowChartCharter – A Zero-Hallucination, Fear-Driven GraphRAG Alternative

https://github.com/CharleSpectre13/flowchartcharter
1•charlespectre•39m ago•0 comments

Context Engineering Is a Data Problem

https://davidgasquez.com/context-engineering-is-a-data-problem
1•kalendos•41m ago•0 comments

Show HN : Looking for a cofounder, engineer or video editor in SF?

https://meandi-sf-people.aris-han.chatgpt.site/
1•asd000hh•42m ago•1 comments

Massachusetts prosecutors run their offices on software from the dial-up era

https://nasser.blog/dial-up-justice/
1•Michelangelo11•43m ago•0 comments

Environmentalists Targeted Exxon Mobil. Then Hackers Targeted Them

https://www.nytimes.com/2020/06/09/nyregion/exxon-mobil-hackers-greenpeace.html
2•Djens•45m ago•0 comments

Supply-chain hygiene for Emacs: LLM review of package upgrades

https://blog.fidelramos.net/software/emacs-straight-ai-review
1•fidelramos•49m ago•0 comments

Jason Arday: a question of academic standards (by Richard Dawkins)

https://unherd.com/2026/08/jason-arday-a-question-of-academic-standards/
1•Michelangelo11•51m ago•0 comments

Countersign – one kill switch and audit log for AI agents across wallet vendors

https://countersign.network
1•screan•54m ago•0 comments

Show HN: Tyle – a Kanban board with statistical cycle time forecasting built in

https://tyle-brown.vercel.app/about
1•byronical•55m ago•0 comments