frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Paseo – Beautiful open-source coding agent interface (desktop, mobile, CLI)

https://github.com/getpaseo/paseo
2•timhigins•58s ago•1 comments

The Empty Field That Wasn't: GPS, OTAD and Two Decades of Encrypted Broadcasts

https://lsc-pagepro.mydigitalpublication.com/publication/?i=865273&p=62&view=issueViewer
1•ahlCVA•2m ago•0 comments

WinUtils: Shell-powered CLI tools for Windows 95

https://www.codenaked.com/winutils
2•code_naked•2m ago•1 comments

We tore down our no-code site and went back to code

https://twitter.com/chrismuccioli/status/2061909833893257389
1•nadis•3m ago•0 comments

ContextWall – Context firewall for AI agents and RAG pipelines

https://contextwall.io/
1•sumeshpk•4m ago•0 comments

Show HN: Scholar Sidekick – citation verifier for the "real DOI, wrong paper"

https://scholar-sidekick.com
1•ProductivePhys•5m ago•0 comments

Dense Retrievers Know More Than They Can Express

https://www.mixedbread.com/blog/latent-terms
1•emschwartz•6m ago•0 comments

Android gets fake-call detection for spoofed calls

https://arstechnica.com/gadgets/2026/06/google-announces-deepfake-call-detection-for-android-new-...
1•Lihh27•8m ago•0 comments

Understand your AI generated code

https://archtocode.com/blog
1•grzelazny•12m ago•0 comments

4K years ago, Mohenjo-daro grew more equal over time

https://archaeologymag.com/2026/05/mohenjo-daro-grew-more-equal-over-time/
1•marojejian•13m ago•0 comments

A harness for every task: dynamic workflows in Claude Code

https://claude.com/blog/a-harness-for-every-task-dynamic-workflows-in-claude-code
1•cebert•13m ago•0 comments

JavaScript Crossword

https://lyra.horse/fun/jscrossword/
2•patrikcsak•14m ago•0 comments

Short Seller (Andrew Left) Convicted for $21M Stock Market Manipulation Scheme

https://www.justice.gov/opa/pr/activist-short-seller-convicted-21m-stock-market-manipulation-scheme
2•gnabgib•15m ago•0 comments

Pigeons navigate using magnetic sensors in their livers

https://phys.org/news/2026-05-pigeons-magnetic-sensors-livers.html
2•marojejian•16m ago•0 comments

Gleam v1.17.0 Released

https://gleam.run/news/single-file-gleam-beam-programs-with-escript/
15•figbert•19m ago•1 comments

Copper imbalance tied to autism's social symptoms and white matter development

https://medicalxpress.com/news/2026-06-copper-imbalance-autism-social-symptoms.html
2•OutOfHere•20m ago•1 comments

Firefox AI Coding Policy

https://firefox-source-docs.mozilla.org/contributing/ai-coding.html#firefox-ai-coding-policy
1•Topfi•22m ago•0 comments

The Last Whole Earth Catalog, Catalog (2026)

https://wholeearth.cjohnson.io
2•natural219•22m ago•1 comments

A 5-minute OTA update and rollback flow for Expo and Capacitor apps

https://otalan.com/docs/quick-start/quick-start/
1•cirtadev•23m ago•0 comments

The next gold rush: How the Bay Area can keep its edge in the AI era

https://www.mckinsey.com/industries/social-sector/our-insights/the-next-gold-rush-how-the-bay-are...
1•littlexsparkee•24m ago•0 comments

I got tired of proprietary supplement blends, so I open-sourced my formulas

https://nuc.luyml.com
12•david_clk•26m ago•2 comments

Yahoo reduces email storage limits for free and paid accounts

https://help.yahoo.com/kb/SLN37064.html
1•asdefghyk•30m ago•1 comments

Show HN: Name2Tree – Turn any name into a deterministic tree

https://tree.bairui.dev/
3•subairui•32m ago•1 comments

Pass the Cherries: Review of Twilight of the Dons

https://literaryreview.co.uk/pass-the-cherries
1•Petiver•33m ago•0 comments

Company Manufactures Stamped-Steel Classic Replica Bodies for Mustang, FJ40

https://www.youtube.com/watch?v=cBBZrjwqWZc
1•benfrancom•34m ago•1 comments

The Next Era of Knowledge Work [pdf]

https://cdn.openai.com/pdf/the-next-era-of-knowledge-work.pdf
1•iooi•34m ago•0 comments

AI Coding Tips for 2026

https://raheelyawar.medium.com/ai-coding-tips-may-2026-43a12e68067a
1•dbgrman•35m ago•1 comments

Create Godot Games on Android

https://godotengine.org/article/gabe-stable-release/
1•LorenDB•36m ago•0 comments

Real-time map of when the world is horny

https://masturbate.now/pulse
1•untitled-now•38m ago•1 comments

Against the Survival of the Prettiest (2022)

https://worksinprogress.co/issue/against-the-survival-of-the-prettiest/
2•tmp10423288442•38m ago•0 comments