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.

New plans to stop children taking, sharing or viewing nude images

https://www.gov.uk/government/news/new-plans-to-stop-children-taking-sharing-or-viewing-nude-images
1•hamilyon2•32s ago•0 comments

Central Europe is not Eastern Europe

https://bare.systems/posts/central-europe/
1•6jQhWNYh•1m ago•0 comments

AI Influencers Now Indistinguishable from Real Creators

https://www.techbuzz.ai/articles/ai-influencers-now-indistinguishable-from-real-creators
1•Vaslo•2m ago•0 comments

White House sends Blanche's Attorney General nomination to Congress

https://www.politico.com/live-updates/2026/06/08/congress/todd-blanche-attorney-general-nominatio...
1•embedding-shape•2m ago•0 comments

I built a local TypeScript guardrail for AI agent cost failures

https://github.com/salimassili62-afk/ai-costguard
1•salim2006•4m ago•0 comments

Beyond Dexterity: Why Contact May Define the Next Era of Robotics

https://spectrum.ieee.org/agilink-contact-intelligence-robot-manipulation
1•Brajeshwar•5m ago•0 comments

Apple's New AI Models Contain 'None' of Google's Gemini Assistant

https://www.macrumors.com/2026/06/09/apples-new-ai-contains-no-gemini/
1•bound008•5m ago•0 comments

React Native Windows v0.83 is here

https://devblogs.microsoft.com/react-native/%f0%9f%9a%80react-native-windows-v0-83-is-here/
3•soheilpro•7m ago•0 comments

Two Types of Bureaucracy: Enabling and Coercive

https://lozeve.com/posts/types-of-bureaucracy-enabling-and-coercive
1•mooreds•7m ago•0 comments

An open-source tool helping cities, states, and regions understand climate risks

https://cdp-action-explorer.net/
1•mooreds•8m ago•0 comments

Why are we still arguing about the industrial revolution?

https://www.ft.com/content/f8379b23-f029-4274-b508-5452d965ad28
1•mmarian•9m ago•1 comments

What about OpenCL and CUDA C++ alternatives?

https://www.modular.com/blog/democratizing-ai-compute-part-5-what-about-cuda-c-alternatives
2•eatonphil•12m ago•0 comments

Kahan Summation Algorithm

https://en.wikipedia.org/wiki/Kahan_summation_algorithm
2•tosh•15m ago•0 comments

AAuth Protocol

https://datatracker.ietf.org/doc/draft-hardt-oauth-aauth-protocol/
1•mooreds•16m ago•0 comments

Loop Engineering

https://addyosmani.com/blog/loop-engineering/
1•vinhnx•18m ago•0 comments

TokkeyCC – OpenAI-compatible API for 100 AI models, $0.22 per 1M tokens

https://tokkeycc.com
1•wangyixiang•18m ago•0 comments

Show HN: Local-first history, search, and analytics for Claude Code and Codex

https://github.com/sudomichael/agentgraphed
1•ushercakes•18m ago•0 comments

Start Small: The key to successful software projects

https://keystonebit.com/blog/start-small
1•gatinsama•18m ago•0 comments

Google patches new Chrome zero-day flaw exploited in the wild

https://www.bleepingcomputer.com/news/security/google-patches-fifth-chrome-zero-day-bug-exploited...
2•Brajeshwar•19m ago•0 comments

Everything You Wanted to Know About a Kids' Social Media Ban

https://www.michaelgeist.ca/2026/06/everything-you-wanted-to-know-about-a-kids-social-media-ban-b...
2•goalieca•20m ago•0 comments

Deep Work Timer

https://www.deepworkdepot.com/
1•jimsojim•20m ago•0 comments

Why are people pumping their bodies with fat from corpses?

https://www.theguardian.com/commentisfree/2026/apr/26/alloclae-cadaver-fat-filler
1•PaulHoule•22m ago•1 comments

Nango runs untrusted customer code at scale

https://nango.dev/blog/how-nango-runs-untrusted-customer-code-at-scale/
2•rguldener•22m ago•0 comments

Fabrice Bellard's Home Page

https://bellard.org/
3•janisz•22m ago•0 comments

Judge Learns Both Sides Used AI, Cancels Trial, Kicks Everyone Off the Case

https://www.404media.co/judge-learns-lawyers-on-both-sides-of-case-used-ai-cancels-trial-kicks-ev...
7•arto•23m ago•0 comments

Scissors vs. Swiping: The Hidden Cost of Touchscreens and How Designers Can Help

https://caseorganic.substack.com/p/when-swiping-supplants-scissors
1•SLHamlet•23m ago•0 comments

Universities Expand R&D Efforts in GAN, Sic, GaO

https://marklapedus.substack.com/p/universities-expand-r-and-d-efforts
2•ChipNode•25m ago•0 comments

Latest In Lithography: JSR up for sale?; FEL; forecasts–chips, memory, EUV

https://marklapedus.substack.com/p/the-latest-news-in-lithography-2ef
3•ChipNode•27m ago•0 comments

Show HN: ChromiumFish – Open-source fingerprint-hardened Browser for Scraping

https://github.com/arman-bd/chromiumfish
6•armanified•27m ago•1 comments

Show HN: Proquiro – Land acquisition software for Indian real estate teams

https://proquiro.com
3•nvignesh•28m ago•0 comments