frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•9mo 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•9mo 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•9mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•9mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Facebook Appears to Be Down

1•Molitor5901•1m ago•0 comments

Sen. Wyden Warns of Mass Surveillance Amid Pentagon's Fight with Anthropic

https://gizmodo.com/sen-wyden-warns-of-mass-surveillance-amid-pentagons-fight-with-anthropic-2000...
1•WarOnPrivacy•1m ago•0 comments

Bluesky adds (broken) age verification

https://bsky.app
1•neogodless•1m ago•1 comments

Show HN: Webact – token-efficient browser control for AI agents (GitHub)

https://github.com/kilospark/webact
1•kxbnb•3m ago•0 comments

In startups, "I assumed" is the most expensive sentence you can say [video]

https://www.tiktok.com/@taxhero_ai/video/7613137316227353887?is_from_webapp=1&sender_device=pc
1•salleisha•3m ago•1 comments

Ask HN: Why don't MacBooks have Cellular Modems yet?

1•avonmach•4m ago•1 comments

Show HN: Proofd – Free AI career risk score based on your tasks, not job title

https://www.proofd.ai
1•dixalex•5m ago•0 comments

Is Shopify Good for SEO in 2026?

https://www.techwrath.com/is-shopify-good-for-seo-2026/
1•techwrath11•7m ago•0 comments

EURO-3C Project to build a federated Telco-Edge-Cloud infrastructure

https://digital-strategy.ec.europa.eu/en/news/commission-announces-eu75-million-euro-3c-project-b...
1•_____k•7m ago•0 comments

Show HN: TypeShim – .NET WebAssembly Meets TypeScript

https://github.com/ArcadeMode/TypeShim
1•ArcadeMode•7m ago•0 comments

How to Choose the Right Shopify Development Agency in 2026

https://www.techwrath.com/how-to-choose-right-shopify-development-agency/
1•techwrath11•8m ago•0 comments

Neovim cookies for the pluginless – random nvim native tips

https://eduardofuncao.com/blog/neovim-cookies/
1•xGoivo•8m ago•1 comments

The Social Media Discoverability Problem

https://samranda.com/blog/social-media-discoverability/
1•performative•9m ago•0 comments

Millennium Challenge 2002: Persian Gulf War Game Exercise

https://en.wikipedia.org/wiki/Millennium_Challenge_2002
2•Jimmc414•10m ago•1 comments

Open-source community gets a Claude-sized gift

https://www.thedeepview.com/articles/open-source-community-gets-a-claude-sized-gift
1•CrankyBear•11m ago•0 comments

Turning 4,668 comments into AGENTS.md rules to automate Pydantic AI reviews

https://pydantic.dev/articles/scaling-open-source-with-ai
2•yoredana•12m ago•0 comments

I Use Neovim by the Way

https://stupid-ideas.com/blog/2026_03_02__nvim_setup.html
2•KuSpa•14m ago•0 comments

Scripting on the JVM with Java, Scala, and Kotlin

https://mill-build.org/blog/19-scripting-on-the-jvm.html
2•PaulHoule•14m ago•0 comments

Show HN: Validatedata 0.3.0 – lightweight inline data validation for Python

https://pypi.org/project/validatedata/
1•EdwardK1•14m ago•0 comments

OpenWRT 25.12.0 Released

https://openwrt.org/releases/25.12/notes-25.12.0
3•voxadam•15m ago•1 comments

Incident postmortem in the age of AI agents

https://blog.firetiger.com/postmortem-on-the-march-1-2026-ingest-incident/
1•achille-roussel•15m ago•0 comments

CIA Station Hit in Drone Attack

https://www.washingtonpost.com/national-security/2026/03/03/cia-saudi-arabia-drone-attack-iran/
8•jbegley•15m ago•2 comments

Chat at your own risk Data brokers are selling deeply personal bot transcripts

https://www.theregister.com/2026/03/03/chatbot_data_harvesting_personal_info/
2•jjgreen•16m ago•1 comments

Trae Stephens: I want to buy Wired

https://twitter.com/i/status/2028824764656283997
1•mudil•19m ago•0 comments

Show HN: I build a free topical authority map generator for blog

https://kitful.ai/write-tools/topical-map-generator
1•eashish93•20m ago•0 comments

Show HN: Headless Obsidian Sync Client

https://github.com/alexjbarnes/vault-sync
1•recouptreadmill•21m ago•0 comments

Show HN: VibeDiff – Blocks Claude Code from shipping breaking changes

https://github.com/SallahBoussettah/vibe-diff
1•Boussettah•21m ago•0 comments

Buckle Up for Bumpier Skies

https://www.newyorker.com/projects/interactive/2026/20260226-bilger-turbulence-header-prod/202602...
1•rbanffy•23m ago•0 comments

How To Put 30 Languages Into 1.1MB – hypher, a fast hyphenation library for Rust

https://laurmaedje.github.io/posts/hypher/
2•zdw•23m ago•0 comments

Prediction markets on Deutsche Bahn departure delays

https://bahn.bet
2•dancric•24m ago•0 comments