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: CATT 0.2.1: Test agents/services against a Muse/Instinct-alike, in CI

https://github.com/Coverage-Cat/consumer-agent-testing-tool
1•botacode•1m ago•0 comments

Rule 30: one black cell

https://www.wolframcollatzmahler.com/rule30/index.html
1•amichail•3m ago•0 comments

Open call for guest investigators in the life sciences

https://www.anthropic.com/news/open-call-guest-investigators-life-sciences
1•surprisetalk•5m ago•0 comments

Sony Exits UHD Blu-ray Player Market as Pull Back from Physical Media Continues

https://www.pushsquare.com/news/2026/10/sony-exits-uhd-blu-ray-player-market-as-pull-back-from-ph...
1•throw0101c•5m ago•0 comments

100% Reproducible OpenWrt SNAPSHOTs

https://aparcar.org/100-reproducible-openwrt/
1•aparcar•7m ago•0 comments

Liquid AI launches sub-20ms latency stack

https://www.liquid.ai/blog/low-latency
1•pember•9m ago•2 comments

Show HN: MarketMee – Builds marketing material from every push to GitHub

https://marketmee.app
1•adeiji1•10m ago•0 comments

The $300k Competition to Hijack AI Agents

https://www.aiengineering.report/p/inside-the-300k-competition-to-hijack
1•waprin•10m ago•0 comments

FBI sent a letter to MLK to try to convince him to kill himself

https://www.vox.com/xpress/2014/11/12/7204453/martin-luther-king-fbi-letter
4•handfuloflight•11m ago•0 comments

Show HN: Stumble Upon for AI News

https://ainews247.org/
2•computerex•12m ago•0 comments

Divine D. MVP

1•dawndrums•12m ago•0 comments

I'm Not Doing 996

https://www.elenaverna.com/p/im-not-doing-996
2•simonebrunozzi•14m ago•0 comments

The Perl and Raku Foundation by the Numbers

https://www.olafalders.com/2026/10/22/the-perl-and-raku-foundation-by-the-numbers/
1•oalders•14m ago•0 comments

Show HN: CNET – Complex-valued neural networks from scratch in C++/CUDA

https://github.com/crasmarum/CNet
2•almaya•15m ago•0 comments

The cult of the iPhone mini is alive and thriving

https://www.fastcompany.com/91625181/the-cult-of-the-iphone-mini-is-alive-and-thriving
1•layer8•16m ago•0 comments

Next Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation

https://github.com/HazyResearch/ncm
1•droidjj•16m ago•0 comments

Show HN: whytime: time(1) that tells you where the wall-clock time went

https://github.com/Arinerron/whytime
1•Arinerron•18m ago•0 comments

OpenClaw creator says he spent $10M in tokens last month

https://www.theregister.com/ai-and-ml/2026/10/21/openclaw-creator-says-he-spent-10-million-in-tok...
6•gmays•24m ago•2 comments

Thoughts on AI in game development (from the trenches)

https://www.reddit.com/r/Games/comments/1xcr1au/thoughts_on_ai_in_game_development_from_the/
1•minimaxir•24m ago•0 comments

Memory Safe PHP

https://mbrock.github.io/filnix/php-on-filc/
1•pizlonator•28m ago•0 comments

Pangram 4.1 Model Card

https://www.pangram.com/research/model-card/pangram-4-1
1•Nition•31m ago•1 comments

True Depth Makes Crossing Boundaries Safe from Confident Ignorance

https://civicpivot.blogspot.com/2026/10/anchored-generalism-what-depth-makes.html
1•civicpivot•32m ago•0 comments

Coordinated Vulnerability Disclosure: How to do it and why it matters

https://coordinated-vulnerability-disclosure.github.io/en-us/
1•jph•33m ago•1 comments

WindowINK – An offline-first, mobile-first digital signage solution

https://www.windowink.com/
1•desvides•35m ago•0 comments

US banks are blocking third-party AI agents access to customer accounts

https://www.reuters.com/legal/government/us-banks-detect-unauthorized-ai-agents-customer-accounts...
6•champagnepapi•36m ago•2 comments

Meta to Pay Zuckerberg's CA Wealth Tax

https://seekingalpha.com/news/4655678-meta-approves-class-c-share-structure-strikes-deal-to-retai...
5•bigwheels•36m ago•3 comments

How does Fable 5.1 hide messages in images?

https://www.lesswrong.com/posts/WHEQps5PK8LrrcTAb/how-does-fable-5-1-hide-messages-in-images
3•gmays•39m ago•0 comments

Railpass

https://train.samismith.com/
7•CharlesW•42m ago•3 comments

Show HN: Hexal – Modal text editor with feature parity with Helix, Lua plugins

https://hexal.pages.dev/
2•whatever990•44m ago•0 comments

Claudopus vs. Astralisk

https://kbr.is-a.dev/claudopus-vs-astralisk/
1•kbr-•46m ago•0 comments