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: Usage Updates, Claude and Codex credits, resets and limit changes

https://usageupdates.com/
1•UnwrapComment•49s ago•1 comments

Show HN: MeraGEO – check whether ChatGPT, Claude and Gemini name your brand

https://merageo.com
1•codelion•3m ago•0 comments

Xibalba 64 – N64 shooter by a solo dev

https://cartpoptv.github.io/xibalba-64.html
1•VimEscapeArtist•4m ago•0 comments

I'm joining Omarchy

https://twitter.com/emirbeganovic/status/2105595836373643551
1•tosh•6m ago•0 comments

Happy 100th Anniversary, Arizona (With an Asterisk?)

https://www.sharonlohr.com/blog/2026/9/21/happy-100th-anniversary-arizona
1•sebg•7m ago•0 comments

Social³ Source: We can create more software than ever. But what for?

https://jordicabot.com/social%c2%b3-source-we-can-create-more-software-than-ever-but-what-for/
1•softmodeling•7m ago•0 comments

Meta is going for Enterprise AI, are the AI labs becoming tech consulting firms?

https://www.thestateofai.com/news/meta-enterprise-ai-cj-desai
1•ltononro•7m ago•0 comments

Agentic GPU Programming for MLSys

https://mlc.ai/agentic-gpu-programming-for-mlsys/index.html
1•crowwork•10m ago•0 comments

Nvidia OpenShell

https://docs.nvidia.com/openshell/about/overview
1•peterfication•11m ago•0 comments

Show HN: Built a tool to organize my lab reports and visualise biomarker trends

https://medicalhistory.app
2•driule•13m ago•0 comments

Product Information Management: Centralizing Product Data Across Retail Systems

https://www.chetu.com/retail/product-information-management.php
1•Chetuinc•13m ago•1 comments

Returning from vacation? The government can search your phone without a warrant

https://arstechnica.com/tech-policy/2026/09/immigration-advocate-sues-border-agents-for-demanding...
1•rbanffy•14m ago•0 comments

Qualcomm's System Level Architecture in the Snapdragon X2 Elite

https://chipsandcheese.com/p/qualcomms-system-level-architecture
1•rbanffy•15m ago•0 comments

EU KIDS Act

https://commission.europa.eu/news-and-media/news/eu-kids-act-helping-children-navigate-safer-onli...
3•pona-a•19m ago•0 comments

Florida county discovers mysterious Flock cameras with no obvious owner

https://www.washingtonpost.com/nation/2026/10/01/florida-county-discovers-mysterious-flock-camera...
1•balderdash•20m ago•1 comments

So what's happening with Russia's new, long-delayed crewed spacecraft?

https://arstechnica.com/space/2026/09/so-whats-happening-with-russias-new-long-delayed-crewed-spa...
1•rbanffy•20m ago•0 comments

More than 44,000 file legal objections to Palantir NHS platform handling

https://www.theguardian.com/technology/2026/sep/30/legal-objections-palantir-nhs-platform-handlin...
3•sbulaev•21m ago•0 comments

Swiss glaciers suffer 'disastrous' year of ice loss, threatening water supplies

https://www.bbc.com/news/articles/c6n9w0ypjwl9o
3•layer8•23m ago•0 comments

Religious Scholars Met with Anthropic. What They Heard Stunned Them

https://www.nytimes.com/2026/09/29/us/anthropic-claude-morals-ai.html
2•sciurus•24m ago•0 comments

Running Windows 11 and Server 2025 with macOS Virtualization.framework

https://mustafaakin.dev/blog/windows-on-tart/
1•CSDude•26m ago•0 comments

An AI "mind-reading" tool can reconstruct what you're looking at based on a bra

https://www.technologyreview.com/2026/10/01/1145588/ai-mind-reading-reconstructs-what-youre-looki...
2•joozio•26m ago•1 comments

Listen to the Redditors

https://www.incredible.rs/blog/listen-to-the-redditors.html
2•theanonymousone•28m ago•0 comments

StreetComplete on iOS is now in public beta

https://github.com/streetcomplete/StreetComplete/issues/5421
22•Snowly•28m ago•4 comments

Children Who Died as Newborns Are Often Remembered as Family Members

https://onlinelibrary.wiley.com/doi/10.1111/apa.70341
3•tokai•29m ago•0 comments

Challenge accepted: not a single line of code written by hand

https://yvoschaap.com/weblog/challenge_accepted_not_a_single_line_of_code_written_by_hand
2•yvoschaap•31m ago•1 comments

Lessons for the 21st century from a book by 'Frankenstein' author Mary Shelley

https://worldsensorium.com/lessons-for-the-21st-century-from-a-200-year-old-book-by-frankenstein-...
2•dnetesn•33m ago•0 comments

The Space Between Two Fingers

https://blue-continuum.com/the-space-between-two-fingers
2•dnetesn•35m ago•0 comments

Value: A Verifiable Alignment Layer for Agentic a [pdf]

https://asteris.ai/pdf/verifiable-alignment-layer-for-agentic-ai.pdf
1•ai-mktg-ninja•36m ago•0 comments

Tech in cars can be used to snoop on you, Dutch spy chiefs warn

https://www.theguardian.com/technology/2026/oct/01/cars-smart-features-spy-gps-chinese-imports
2•vinni2•38m ago•0 comments

Show HN: Linux Subsystem Diagrams

1•mipsH•38m ago•0 comments