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.

Researchers find ways to keep homes cooler in summer

https://www.bbc.com/news/articles/cly94l8xjlqo
1•rustoo•20s ago•0 comments

Tensorless – An exact thermodynamic execution sandbox in C++20

https://github.com/AperioGenix/Tensorless-Public
1•alxspiker•4m ago•0 comments

Open-source prompt infrastructure toolkit

https://px0.ai/
1•prakashqwerty•4m ago•0 comments

A Story of Screwdriver Drivers

https://carette.xyz/posts/a_story_of_screwdriver_drivers/
4•LucidLynx•5m ago•0 comments

Phosh 0.56.0

https://phosh.mobi/releases/rel-0.56.0/
1•edward•6m ago•0 comments

Show HN: Hacker-News Jobs

1•freakynit•6m ago•0 comments

Graphify: Turn any codebase into a queryable knowledge graph

https://github.com/Graphify-Labs/graphify
1•domysee•8m ago•0 comments

I spent 100 hours building a website you will use for 20 minutes a week

https://www.dailicle.com/
1•lucky-solanki•9m ago•1 comments

Show HN: UATC-Closed-loop VRAM control and dynamic data pruning for LLM training

https://github.com/sajjaddoda72-design/UATC
1•L_u_u_6•10m ago•0 comments

The Lion, The Witch, and the audacity of recruiters

https://hauleth.dev/post/the-lion-the-witch-and-the-aduacity-of-recruiter/
1•birdculture•12m ago•0 comments

Matrix Multiplication on Blackwell

https://www.modular.com/blog/matrix-multiplication-on-nvidias-blackwell-part-1-introduction
1•skidrow•14m ago•0 comments

Saving tokens and "Let me try something else" infinite loop in Coding Agents

https://cimons.com/article/saving-tokens-let-me-try-something-else-infinite-loop-in-coding-agents
1•etcimon•14m ago•1 comments

Toward Better Hip Kernel Generation for AMD GPUs

https://scalingintelligence.stanford.edu/blogs/hipkernels/
1•skidrow•15m ago•0 comments

FlashAttention-4: Algorithm and Kernel Pipelining Co-Design

https://research.colfax-intl.com/flashattention-4-algorithm-and-kernel-pipelining-co-design-for-a...
1•skidrow•15m ago•0 comments

Notes on Amazon vs. Perplexity

https://educatedguesswork.org/posts/notes-amazon-perplexity/
1•gmays•17m ago•0 comments

Why Your Brain Will Always Defend Complexity

https://savvynormie.com/why-your-brain-will-always-defend-complexity/
1•ExMachina73•20m ago•0 comments

TabFont – guitar tabs rendered as you type

https://philatype.com/tabfont/
1•ChrisArchitect•20m ago•0 comments

Scheme Is a Hoot

https://gracefulliberty.com/notes/scheme-is-a-hoot/
1•signa11•22m ago•0 comments

Anatomy of Prompt Injection

https://medium.com/@kirill89/anatomy-of-prompt-injection-d97ddaea9089
1•k1r111•22m ago•0 comments

Show HN: Neil the Seal Game

https://neiltheseal.app/
2•dalemhurley•23m ago•0 comments

Tell HN: FileVault does not protect Wi-Fi passwords on macOS 26

2•turbidimeter•23m ago•0 comments

Show HN: CAVS – Open-source content-addressable updates for game assets

https://github.com/orelvis15/cavs-oss
2•orelvis15•24m ago•0 comments

Show HN: Essential Media Player – A web-based (PWA) local media player

https://essentialmediaplayer.com/
1•ZuLuuuuuu•25m ago•0 comments

Researchers Create Self-Replicating Seedbox in Quest for Decentralized Democracy

https://torrentfreak.com/researchers-create-self-replicating-seedbox-in-quest-for-decentralized-d...
1•synctext•25m ago•0 comments

Help Us Save MeshCore

https://blog.meshcore.io/2026/07/04/help-us-save-meshcore
2•geerlingguy•30m ago•0 comments

No-AI Label

https://en.wikipedia.org/wiki/No-AI_label
3•amelius•37m ago•0 comments

Social Geo App on AT Proto

https://pinnd.place/login
1•colomolo•38m ago•1 comments

JadePuffer ransomware used AI agent to automate entire attack

https://www.bleepingcomputer.com/news/security/jadepuffer-ransomware-used-ai-agent-to-automate-en...
2•Brajeshwar•39m ago•0 comments

Intelligent-Data /S

https://github.com/nicholascordova01/INTELLIGENT-DATA
1•alex_hirner•41m ago•0 comments

BSDun – Linux kernel module to load FreeBSD ELF binaries

https://gitlab.com/megastallman/bsdun
3•Tiberium•41m ago•0 comments