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

No Brain Required: This Is How the Single-Celled "Stentor" Learns

https://www.ucsf.edu/news/2026/04/431841/no-brain-required-how-single-celled-stentor-learns
1•hhs•53s ago•0 comments

PEP 661 – Sentinel Values, accepted 5 years later

https://peps.python.org/pep-0661/
1•birdculture•1m ago•0 comments

Gute Form

https://de.wikipedia.org/wiki/Gute_Form
1•doener•2m ago•0 comments

AI Wrote the Code. Can Your Enterprise Ship It?

https://stackgen.com/blog/your-ai-wrote-the-code.-can-your-enterprise-actually-ship-it
1•SanjeevSharma•3m ago•0 comments

Ask.com shuts down after 30 years

https://mashable.com/article/ask-jeeves-shut-down
1•el_duderino•4m ago•0 comments

Berkshire Has a Website from the '90s and Buffett Fans Say Don't Mess with It

https://www.wsj.com/tech/personal-tech/berkshire-hathaway-shareholder-meeting-warren-buffett-greg...
1•firexcy•4m ago•0 comments

How the legal opium market shaped global trade - and led to an opioid crisis

https://www.bu.edu/articles/2026/how-the-legal-opium-market-led-to-an-opioid-crisis/
1•hhs•5m ago•0 comments

Former head of 'Pentagon's think tank' joins Anthropic

https://www.defenseone.com/technology/2026/05/former-head-pentagons-think-tank-joins-anthropic/41...
1•Jimmc414•8m ago•0 comments

Tesla owner won $10k in court for Tesla's FSD lies. Tesla is still fighting him

https://electrek.co/2026/05/02/this-tesla-owner-won-10k-in-court-for-teslas-fsd-lies-tesla-is-sti...
1•breve•9m ago•0 comments

Show HN: Language app with spaced repetition and comprehensible input

1•ChadNauseam•10m ago•0 comments

The Claude Delusion: Richard Dawkins believes his AI chatbot is conscious

https://www.dailygrail.com/2026/05/the-claude-delusion-richard-dawkins-believes-his-female-ai-cha...
1•SwellJoe•10m ago•0 comments

Google Summer of Code 2026 selected projects

https://blog.rust-lang.org/2026/04/30/gsoc-2026-selected-projects/
1•kazu11max17•12m ago•0 comments

AI agents are briefly overhyped

https://stevekrouse.com/agent-hype
1•stevekrouse•22m ago•0 comments

To Make Orchestras More Diverse, End Blind Auditions

https://www.nytimes.com/2020/07/16/arts/music/blind-auditions-orchestras-race.html
1•bilsbie•24m ago•0 comments

Meta faces New Mexico trial that could force change to Facebook, other platforms

https://www.reuters.com/legal/government/meta-faces-new-mexico-trial-that-could-force-changes-fac...
3•1659447091•33m ago•0 comments

The Race Is on to Find the Treasure Buried in San Francisco

https://www.nytimes.com/2026/05/02/us/san-francisco-buried-treasure-chest.html
1•mistersquid•36m ago•0 comments

AWS Lightsail's $0.09/GB Bandwidth Overage Is a Trap for Small Projects

https://galaxycloudsolutions.com/blog/aws-lightsail-vs-galaxy-cloud-solutions/
2•rougereaper420•38m ago•0 comments

With $1 Cyberattacks on the Rise, Durable Defenses Pay Off

https://spectrum.ieee.org/ai-cyberattacks-memory-safe-code
1•rbanffy•45m ago•0 comments

Coatue has a plan to buy up land for data centers, possibly for Anthropic

https://techcrunch.com/2026/05/01/coatue-has-a-plan-to-buy-up-land-for-data-centers-possibly-for-...
1•Brajeshwar•45m ago•0 comments

The Computer Programme Episode 1, 1982 [video]

https://archive.org/details/the_computer_programme_ep01
2•petethomas•46m ago•0 comments

Voice-AI-for-Beginners – A curated learning path for developers

https://github.com/mahimairaja/voiceai
2•mahimai•51m ago•0 comments

Restorative Yoga and the Biology of Belonging

https://parrik.com/puzzles/the-partition-problem/
1•parrik•51m ago•0 comments

Facepunch launches s&box, the highly anticipated successor to Garry's Mod

https://www.gamingonlinux.com/2026/04/facepunch-launches-s-box-the-highly-anticipated-successor-t...
5•embedding-shape•53m ago•1 comments

Dynamic Traefik configuration with multiple Docker hosts

https://blog.vasi.li/automating-mantrae-traefik-management-with-mantrae-agent/
2•vsviridov•54m ago•0 comments

Grinta – Local-first coding agent, 7 months solo, open source today

https://github.com/josephsenior/Grinta-Coding-Agent
1•YoussefMejdi•55m ago•1 comments

Trump's border wall expansion just bulldozed an ancient tribal site

https://www.washingtonpost.com/climate-environment/2026/04/30/border-wall-damage-indigenous-arizona/
5•gnabgib•57m ago•0 comments

What Is GStack? Gary Tan's Open-Source Startup Framework for Claude Code

https://www.mindstudio.ai/blog/what-is-gstack-gary-tan-claude-code-framework
2•evo_9•1h ago•0 comments

The physics slop that YouTube wants me to make [video]

https://www.youtube.com/watch?v=Cd5EHfRerGI
2•surprisetalk•1h ago•0 comments

Built this for my civil engineering firm's static site on Cloudflare Pages

https://github.com/bwengr/knowledge-base-spec
1•bwengr•1h ago•0 comments

How to run a cross-cutting campaign

https://parrik.com/puzzles/the-campaign-cascade/
1•parrik•1h ago•0 comments