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•11mo 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•11mo 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•11mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•11mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Will the stigma around boys who dance ever shift?

https://www.theguardian.com/stage/2026/may/10/balletboyz-billy-elliot-ashley-banjo-diversity-male...
1•YeGoblynQueenne•1m ago•0 comments

Show HN: An index of indie web/blog indexes

https://theindex.fyi
1•rocketpastsix•3m ago•0 comments

Sum-Check as an Algebraic Tensor Reduction: Part II

https://blog.zksecurity.xyz/posts/tensor-reductions-2/
3•marcobesier•6m ago•0 comments

Flu a and B Viral Shedding in Adults Who Get Live Attenuated Flu Vax

https://academic.oup.com/cid/advance-article/doi/10.1093/cid/ciag294/8672548
1•susiecambria•6m ago•0 comments

Wonky Software Supply Chains

https://simonramstedt.com/blog/2026-04-09-wonky-software-supply-chains/
1•rmst•7m ago•0 comments

Global reorganization of genome architecture at the transition to gametogenesis

https://www.nature.com/articles/s41594-026-01747-1
1•bookofjoe•8m ago•0 comments

Executable notebook for testing earthquake-event concentration (Colab)

https://colab.research.google.com/drive/1tDXBOOZAhngHJDXj_ZPmW2kcF7_Ysg0-
1•hiroakiaizawa•8m ago•1 comments

Anthropic and OpenAI are launching joint ventures for enterprise AI services

https://techcrunch.com/2026/05/04/anthropic-and-openai-are-both-launching-joint-ventures-for-ente...
1•gmays•9m ago•0 comments

Claude Code edits YouTube videos

https://blog.bunnyhoneyclub.com/posts/claude-code-video-editing-youtube
1•shadowinbox•10m ago•0 comments

Why Dunkin' Failed in India

https://timesofindia.indiatimes.com/life-style/food-news/why-dunkin-failed-in-india/articleshow/1...
1•HR01•10m ago•0 comments

Brain scans reveal a difference between psychopaths and other people

https://www.sciencedaily.com/releases/2026/05/260510030946.htm
1•Noaidi•13m ago•1 comments

Let's Build a Compiler

https://compilers.iecc.com/crenshaw/
1•tosh•16m ago•0 comments

Only one of Berkshire Hathaway and SoftBank can survive

https://www.economist.com/business/2026/05/06/only-one-of-berkshire-hathaway-and-softbank-can-sur...
3•1vuio0pswjnm7•20m ago•1 comments

Language is primarily a tool for communication rather than thought [pdf]

https://colala.berkeley.edu/papers/fedorenko2024language.pdf
1•pythonic_hell•20m ago•1 comments

LUKSbox – Store sensitive files in the cloud without trusting the host

https://github.com/PentHertz/LUKSbox
1•danborn26•21m ago•0 comments

AI Gilfoyle

1•peterpommes•23m ago•0 comments

DuckDB-Delta Grows Up: Writes, Unity Catalog and Time Travel

https://duckdb.org/2026/05/07/delta-uc-updates
2•szarnyasg•24m ago•0 comments

Suits in 5 Nations Allege Apple Quashed "Watch Room" Competition

https://www.law.com/2026/05/08/suits-in-5-nations-allege-apple-quashed-watch-room-competition/
1•1vuio0pswjnm7•24m ago•0 comments

Accessibility of date formats (and superiority of YYYY-MM-DD)

https://mina86.com/2026/on-a11y-of-date-formats/
1•OuterVale•25m ago•0 comments

Trying a few ideas with rust and Python

https://github.com/KevinKenya/nairobi-connector-open-source/tree/main
1•kevinkenya•26m ago•1 comments

FCC Proposes Requiring Government-Issued ID for Phone Service [pdf]

https://docs.fcc.gov/public/attachments/DOC-421309A1.pdf
1•diogenes_atx•29m ago•1 comments

In search of wasted bits: how much information do LLM weights carry?

https://fergusfinn.com/blog/weight-entropy/
1•gmays•29m ago•0 comments

Sql2md – Zero-dependency SQL to Markdown converter (open source)

https://github.com/hyperbob/sql2md
1•sqlfans_qmejpi•31m ago•0 comments

Become the Place People Follow

https://www.researchterminal.ai
2•ipachanga•32m ago•0 comments

Rprom 7-fold Amiga 500/600/2000 from 6a/4.3 Kickstart Switcher configurable

https://www.retrobuddys.com/en/shop/amiga-hw-mods/amiga-2000-en/rprom-7-fold-amiga-500-600-2000-f...
1•doener•33m ago•0 comments

Show HN: I made an AI tool to keep my browser tabs clean

https://www.uncluttr.net
1•Nair0•38m ago•0 comments

Pinball Dreams

https://en.wikipedia.org/wiki/Pinball_Dreams
1•doener•38m ago•0 comments

The mangled remains of probes sent to Venus may still be there

https://www.scientificamerican.com/article/the-mangled-remains-of-probes-sent-to-venus-may-still-...
2•beardyw•39m ago•0 comments

Pentagon Wants Innovation. Small Businesses Want to Deliver. What's the Problem?

https://www.inc.com/issie-lapowsky/pentagon-wants-innovation-small-nimble-businesses-want-to-deli...
1•malloryerik•39m ago•0 comments

Do you take after your dad's RNA?

https://knowablemagazine.org/content/article/living-world/2026/epigenetic-effects-of-sperm-on-off...
2•Brajeshwar•41m ago•0 comments