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.

Why I'm still bearish on LLMs after navier-stokes

https://dank.systems/posts/2026-09-15-ai-bear.html
1•jaykru•29s ago•1 comments

Reddit Is Still Useful. It's Also Becoming Impossible

https://widdershins.verja.net/reddit-is-still-useful-its-also-becoming-impossible/
1•speckx•2m ago•0 comments

Your brain is a special snowflake and experience might help shape it

https://neurofrontiers.blog/your-brain-is-a-special-snowflake/
1•lentoutcry•3m ago•0 comments

Lyric – Windows dictation with a guard against LLM hallucinations

https://cachedhostiong.net/lyric
1•CH-Lyric•4m ago•0 comments

Show HN: Self-adjusting vLLM at production scale

https://twitter.com/yevr19/status/2099877116892307744
1•dmitriisn•5m ago•0 comments

Efficient Chips Alone Will Not Solve AI's Energy Problem

https://substack.com/profile/530005683-iveth/note/c-337835158
1•carolceli•6m ago•0 comments

Rightsholders Can't Use OpenAI and Anthropic to Dismantle Meta's Seeding Defense

https://torrentfreak.com/rightsholders-cant-use-openai-and-anthropic-to-dismantle-metas-seeding-d...
1•gslin•7m ago•0 comments

Show HN: Free tool that checks if your Etsy/Shopify listing is EU-ready

https://claude.ai/artifact/1rTtc9idTXFBcsuhPqJDoU
1•ReplyCraft•8m ago•0 comments

Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA

https://global.fujitsu/en-global/pr/news/2026/09/14-02
1•my123•9m ago•0 comments

Qector-mega 2.2.1 – Sub-ms QEC decoding on a 2-core CPU with zero GPU needs

https://zenodo.org/records/22773113
1•QECTOR•9m ago•0 comments

Ask HN: Harness for Learning – Thoughts?

2•arvindm1991•9m ago•0 comments

Why Personal Websites Are Coming Back

https://deadparrotbbs.com/why-personal-websites-are-coming-back/
1•speckx•9m ago•0 comments

M6 Mac Mini on Geekbench

https://browser.geekbench.com/v7/cpu/354109
2•tosh•10m ago•0 comments

Pulley Is Shutting Down

https://pulley.com/guides/faq-what-is-happening-with-pulleys-shutdown
2•covi•12m ago•1 comments

PyMalbolge: Malbolge Interpreter in Python

https://github.com/Aiaid/pyMalbolge
1•notagoodidea•13m ago•0 comments

Intel Secures AI Agents at the Edge for Autonomous Ride Performance

https://www.sdxcentral.com/news/intel-secures-ai-agents-at-the-edge-for-autonomous-ride-performance/
1•Jenijen•13m ago•0 comments

Why I'm Not Worried About AI Killing Us All

https://www.hackyexperiments.com/blog/why-im-not-worried-about-ai-killing-us-all
1•bilater•14m ago•0 comments

Show HN: Kobra – a Shadcn alternative focused on design quality

https://kobra.systems/components/input-otp
1•haarshsingh•14m ago•0 comments

A study of sequence weighting at scale

https://blog.janestreet.com/a-study-of-sequence-weighting-at-scale/
1•hubraumhugo•16m ago•0 comments

What I keep in my Dock as an iPhone app dev in 2026

https://mattbraun.co/blog/what-i-use-for-iphone-dev-in-2026/
2•magnate•17m ago•0 comments

'Nick Sharpening' my UniFi setup

https://alec.is/posts/nick-sharpening-my-unifi-setup/
1•arm32•19m ago•0 comments

DaiDocs: AI memory as a plain-text file format, not a service

https://github.com/Kerneta/daidocs
2•Amin_Rigi•19m ago•0 comments

Trying to Understand Freedom – By Maciej Cegłowski

https://mceglowski.substack.com/p/trying-to-understand-freedom
1•pavel_lishin•19m ago•0 comments

Show HN: Local static analysis for coding agents

https://blog.codacy.com/introducing-codacy-skills-part-4-scan-and-fix-your-code-before-you-push
1•claudiacsf•21m ago•0 comments

I'm Worried about the Web

https://patrickbrosset.com/articles/2026-09-15-im-worried-about-the-web/
3•speckx•22m ago•0 comments

Mecatl: A Cloud Native Harness

https://mecatl.dev/
1•jbeda•22m ago•0 comments

GM to Offer Apple CarPlay After Shift Away from the System

https://www.bloomberg.com/news/articles/2026-09-15/gm-s-new-user-interface-includes-apple-carplay...
2•apparent•22m ago•1 comments

Man threatens to shoot fish if his meme coin doesn't reach 1M market cap

https://twitter.com/DefiantLs/status/2099877650135433557
1•lando2319•23m ago•0 comments

EthosLM – natural language to walkable Minecraft cities

https://github.com/chaitbuilds/EthosLM
2•chaitbuildz•25m ago•0 comments

GEFS on OpenBSD: A Early Preview

https://marc.info/?l=openbsd-tech&m=178948744271633&w=2
6•sippingabonedry•25m ago•1 comments