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.

Google's Whitepaper on SDLC in the Agentic Era

https://www.kaggle.com/whitepaper-the-new-SDLC-with-vibe-coding
1•shahargl•1m ago•0 comments

Good article about local LLM on MacBook Air

https://www.xda-developers.com/ollama-new-mlx-engine-local-llm-mac-twice-fast/
1•taintech•1m ago•0 comments

Show HN: Smug – single binary, dependency free session manager for tmux

https://github.com/ivaaaan/smug
1•iillexial•1m ago•0 comments

Anthropic embedded spyware in Claude Code – and attempted to hide it from you

https://old.reddit.com/r/ClaudeAI/comments/1ujila1/anthropic_embedded_spyware_in_claude_code_and/
1•theanonymousone•2m ago•0 comments

AMD Stretches Server DRAM with Flash Extended Memory

https://www.nextplatform.com/store/2026/06/29/amd-stretches-server-dram-with-flash-extended-memor...
1•rbanffy•6m ago•0 comments

Celebrating my one-year layoff anniversary

https://iiro.dev/one-year-layoff-anniversary/
1•roughike•6m ago•0 comments

Show HN: 1ShotGen – From rough idea to full build prompt in 1 shot

https://1shotgen.com/
1•zachisparanoid•9m ago•0 comments

Show HN: Not Another AI Platform

https://tryhello.app
1•hayden_k•9m ago•0 comments

Show HN: SlimSnap – mark a screenshot element, get JSON for your coding agent

https://slimsnap.ai/
1•bickov•9m ago•0 comments

Appropriate Technology

https://en.wikipedia.org/wiki/Appropriate_technology
3•Atiscant•12m ago•0 comments

Horsewood (USA and Canada) Scam or Legit Male Performance Supplement?

https://finance.yahoo.com/sectors/healthcare/articles/horsewood-urgent-report-2026-horse-19110038...
2•gapusart•23m ago•0 comments

A Rust trading bot for Polymarket, 800µs decision loop

https://github.com/casatrick/polymarket-arbitrage-bot
3•casatrick•24m ago•0 comments

TurboPrefill: 2.7× faster than llama.cpp Pipeline Parallel on Llama-3-70B

https://github.com/ggml-org/llama.cpp/pull/24219
1•trykhlieb•26m ago•0 comments

The Pregnancy and Health Apps Still Leaking Data in 2026

https://arxiv.org/abs/2606.26276
4•ddxv•26m ago•1 comments

Toys from Trash

https://www.arvindguptatoys.com/toys-from-trash.php
1•noufalibrahim•26m ago•0 comments

AI and Mathematics Research – Yikes (N.J. Wildberger)

https://www.youtube.com/watch?v=-QlC4C6mPIw
1•nyc111•28m ago•0 comments

The cost of AI is someone else's time

https://cephalosec.com/blog/the-hidden-cost-of-ai-is-someone-elses-time/
2•ilreb•28m ago•0 comments

Ozymandias on Rails. The Pedestal Inscription

https://baweaver.com/writing/2026/06/28/ozymandias-on-rails-the-pedestal-inscription/
1•Liriel•29m ago•0 comments

Show HN: I built an agent that uses email as a file system

https://www.supafax.com/
1•rohanmahen•34m ago•0 comments

The "I don't know, Claude wrote this" pandemic

https://newsletter.manager.dev/p/the-i-don-t-know-claude-wrote-this-pandemic
1•flail•36m ago•0 comments

Show HN: Ask your AI what changed across your competitors

https://industry-lens.com/mcp
1•IndustryLens•37m ago•0 comments

When Your IDE Becomes a RCE Endpoint

https://medium.com/trendyol-tech/when-your-ide-becomes-a-rce-endpoint-c87b85096b19
1•nofool•37m ago•0 comments

AI-native Formik alternative form library

https://fillament.dev
1•trialerror123•43m ago•0 comments

Getting Started with Rhombus

https://docs.racket-lang.org/rhombus-getting-started/index.html?fam=Rhombus&famroot=rhombus
1•azhenley•45m ago•0 comments

Ask HN: Sub 5 person team – Claude team plan?

1•anoop_kumar•46m ago•1 comments

Hand and Brain and Artificial Intelligence

https://www.theinternationalism.org/2026/02/hand-brain-artificial-intelligence.html
1•abbassix•51m ago•1 comments

Entertainment Software Association: "Minecraft private servers are illegal" [video]

https://www.youtube.com/watch?v=RgmtdeBIZ2s
1•krige•53m ago•0 comments

Show HN: Markdific – A lightweight Markdown viewer for non-technical users

https://markdific.com/
1•Sharanxxxx•54m ago•0 comments

Mrs. Cotton

https://mrscotton.mjanssen.nl/
1•marc0janssen•54m ago•1 comments

Real Estate AI Reverse Image Search

https://jitty.com/post/reverse-image-search
1•steveharrison•55m ago•1 comments