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.

Ask HN: How do you handle Code compliance today?

1•vimaldwivedi86•50s ago•0 comments

Does AI Have Speech Rights?

https://www.cjr.org/ask-anika/does-ai-have-speech-rights-journalists-using-ai-first-amendment-pro...
1•Tomte•1m ago•0 comments

Fremforge: Forgejo-based, EU-hosted Git/CI with its own Sigstore instance

https://www.frem.sh
1•finegrainlabs•1m ago•0 comments

Consuming a real-time feed reliably

https://aran.dev/posts/consuming-a-real-time-feed-reliably/
1•ingve•4m ago•0 comments

Waiting for SQL:202y: Stockholm (BMA) meeting report

http://peter.eisentraut.org/blog/2026/06/30/waiting-for-sql-202y-stockholm-meeting-report
1•ingve•7m ago•0 comments

Minimum Connection Times at Airports Worldwide

https://minimumconnectiontime.com/
1•beatthatflight•10m ago•0 comments

Ask HN: Am I the only who misses Nights and Weekends?

2•dhruv3006•11m ago•1 comments

The latest on the aftermath of the New Glenn catastrophe

https://arstechnica.com/space/2026/06/ars-live-whats-the-latest-in-the-aftermath-of-the-new-glenn...
1•rbanffy•11m ago•0 comments

Show HN: Skillhub Compose AI Agent

1•Chandrudp29•14m ago•0 comments

Meta building cloud business to sell excess AI capacity

https://www.reuters.com/business/meta-sell-excess-ai-computing-capacity-via-cloud-business-bloomb...
4•mgh2•14m ago•0 comments

Nvidia offers startup customers chance to swap compute power for revenue share

https://www.cnbc.com/2026/07/02/nvidia-plans-to-offer-start-up-customers-access-to-revenue-sharin...
3•root-parent•16m ago•0 comments

Fatherhood Is a Psychedelic Experience

https://mrmarket.lol/fatherhood-is-a-psychedelic-experience/
2•cateblanchett•21m ago•0 comments

Fable 5 Is Downgraded

3•RIshabh235•22m ago•5 comments

Orbital Data Centers: Why the Hype Outpaces Reality

https://spectrum.ieee.org/orbital-data-center-hype
5•rbanffy•22m ago•2 comments

Why Claude switched models in your conversation with Fable 5

https://support.claude.com/en/articles/15363606-why-claude-switched-models-in-your-conversation-w...
1•adithyaharish•23m ago•0 comments

Canadian boy, 11, dies of rabies after waking to bat on his face

https://www.bbc.com/news/articles/c982m1m95q9o
2•ranit•23m ago•0 comments

Guns Don't Kill People: on co-authoring an essay with LLMs

https://bios.net.za/guns-dont-kill-people
1•dierogeryoung•23m ago•1 comments

Germany unveils reform push: Tax cuts, pension overhaul and new sick leave rules

https://wtop.com/world/2026/07/merz-unveils-sweeping-reform-push-for-germany-tax-cuts-pension-ove...
3•porridgeraisin•25m ago•0 comments

Testing Fable: interview with Norbert Wiener, the man who warned about AI – 1948

https://aiweekly.co/editors-blog/testing-fable-interview-with-norbert-wiener
1•adu_onemore•26m ago•1 comments

DeepSeek reverses course with surcharge on peak-hour API use

https://www.scmp.com/tech/big-tech/article/3358868/after-triggering-price-war-deepseek-reverses-c...
1•nh43215rgb•28m ago•0 comments

Cloudflare sets AI crawler deadline: separate search or be blocked

https://www.nbcnews.com/tech/tech-news/cloudflare-sets-ai-crawler-deadline-separate-search-blocke...
3•donohoe•30m ago•1 comments

Anthropic Changed the Sonnet 5 Chart After It Made Sonnet Look Bad

https://www.vincentschmalbach.com/anthropic-changed-sonnet-5-chart-after-it-made-sonnet-look-bad/
3•vincent_s•31m ago•0 comments

AOL and Eventbrite owner Bending Spoons soars 40% on Nasdaq debut

https://www.ft.com/content/aebe2dbb-6d8b-4b3d-82c8-e64aebd4ef70
2•bookofjoe•32m ago•1 comments

OpenAI proposes 5% stake to Trump administration to ease Washington pressure

https://www.cnbc.com/2026/07/02/openai-proposes-us-government-own-5percent-stake-to-address-polit...
1•BafS•34m ago•1 comments

Roosevelt Would Not Understand the E.U.'S Antitrust Fine Against Google (2017)

https://www.newyorker.com/business/adam-davidson/teddy-roosevelt-wouldnt-understand-the-eus-antit...
1•Tomte•35m ago•0 comments

Enabling the use of digital verification services for alcohol age checks in Eng

https://enablingdigitalidentity.blog.gov.uk/2026/06/30/enabling-the-use-of-digital-verification-s...
1•kaelyx•39m ago•1 comments

Ratatui without OS, directly in UEFI

https://github.com/sermuns/ratatuefi
2•sermuns•44m ago•0 comments

Show HN: ScoreMarket – A digital sheet music marketplace

https://www.scoremarket.co.uk
1•anthonydaly•45m ago•0 comments

OpenCode Is Down

2•defly•46m ago•2 comments

A return to two-pizza culture

https://www.allthingsdistributed.com/2026/06/return-to-two-pizza-culture.html
2•ingve•49m ago•0 comments