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: A travel app not building generic itinerary

https://uncoverroads.com/
1•sourav_biswas•2m ago•0 comments

Fauci pleads 5th to what colour of tie he's wearing

https://www.skynews.com.au/details/_6402439292112
1•SanjayMehta•4m ago•0 comments

OpenMetaHarness

https://github.com/openmetaharness/openmetaharness
3•IzhaarTejani•10m ago•1 comments

Show HN: IncomeOS – income from many small sources, in one screen and an MCP

https://github.com/Perufitlife/incomeos
1•renzomad•12m ago•0 comments

OpenURL

https://en.wikipedia.org/wiki/OpenURL
1•toomuchtodo•13m ago•0 comments

Milvus 3.0: Lake-Native Vector Search, S3-Based Storage, Offline/Batch Workflows

https://milvus.io/blog/announcing-milvus-3-lake-native-vector-search-and-a-more-powerful-retrieva...
3•redskyluan•15m ago•0 comments

Show HN: Full stack development from one codebase web, Android, and iOS

https://github.com/usedowe/dowe-lang
1•victorriba•16m ago•1 comments

The AI Bubble Is About to Explode? [video]

https://www.youtube.com/watch?v=xKuDvRRE7Bc
1•ripe•17m ago•1 comments

A GPU-Hour Isn't a Commodity If You Need Four of Them

https://davefriedman.substack.com/p/a-gpu-hour-isnt-a-commodity-if-you
1•gmays•20m ago•0 comments

Bonsaikitten.com

https://en.wikipedia.org/wiki/Bonsai_Kitten
2•tokai•24m ago•0 comments

All Soda Yearns to Be Red

https://haterade.substack.com/p/all-soda-yearns-to-be-red
2•mrkaye97•26m ago•0 comments

There's never been a better time to commit financial fraud

https://www.economist.com/business/2026/07/29/theres-never-been-a-better-time-to-commit-financial...
4•petethomas•28m ago•2 comments

Show HN: A local merge queue for parallel Claude Code agents

https://github.com/funador/claude-code-merge-queue
5•funador•30m ago•0 comments

Indie Web Directories

https://paultibbetts.uk/indieweb-directories/
2•Curiositry•31m ago•0 comments

Locust – Simple Open-Source Load Testing

https://locust.io/
2•Curiositry•32m ago•0 comments

A future where software self-improves and interacts with the physical world

https://3reate.com/podcast/everyones-a-billionaire-now-what/
4•andrewjneumann•34m ago•1 comments

For the cheap price of a permanent tatto, get access to job interview

3•NoRagrets•35m ago•0 comments

If Claude/Codex can connect via, what do we need a context layer for?

https://getunblocked.com/blog/mcp-connectors-are-not-a-context-engine/
4•dennispi•39m ago•0 comments

Ask HN: Is Claude (code) taking significantly longer to run tasks for anyone?

2•LostMyLogin•39m ago•1 comments

Show HN: Karrouet – Dots and Boxes game we used to play as kids in Tunisia

https://www.reddit.com/r/karrouet/
4•nirvanist•39m ago•0 comments

Mythos attack on 3rd-round PQC algorithm candidate puts it out of commission

https://arstechnica.com/security/2026/07/mythos-uncovers-crypto-weaknesses-that-went-unknown-for-...
3•jnord•40m ago•0 comments

Pokémon is turning to facial recognition scans to help combat scalpers

https://www.pcgamer.com/games/card-games/the-pokemon-company-is-turning-to-facial-recognition-sca...
2•Cider9986•42m ago•0 comments

Creator of Test That OpenAI Models Tried to Cheat Sounds Alarm

https://www.bloomberg.com/news/articles/2026-07-29/creator-of-test-that-openai-models-tried-to-ch...
2•sbulaev•43m ago•0 comments

The Vocabulary Bottleneck

https://moekhalil.substack.com/p/the-vocabulary-bottleneck
3•mfkhalil•44m ago•0 comments

Show HN: Mousecrack – Bypass bot detection with deep learning

https://github.com/puffinsoft/mousecrack
3•BeverlyHills001•45m ago•0 comments

Physicists Solve a Muon Mystery. Now, Old Results Don't Add Up

https://www.quantamagazine.org/physicists-solve-a-muon-mystery-now-old-results-dont-add-up-20260729/
3•jnord•45m ago•0 comments

Sell Your AI Skills?

https://capabase.ai/learn/sell-your-ai-skills
8•trebuh•49m ago•3 comments

Kimi K3's Design Secret May Be in Its Thinking Traces

https://notes.designarena.ai/kimi-k3s-design-secret-may-be-in-its-thinking-traces/
3•gmays•50m ago•0 comments

Show HN: Generate, Version and Host your resumé all via GitHub

https://github.com/sadigaxund/git-resume
1•sakhund•50m ago•0 comments

Largest battery storage in Germany set for partial commissioning

https://www.heise.de/en/news/Largest-battery-storage-in-Germany-set-for-partial-commissioning-113...
4•doener•53m ago•0 comments