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.

Private LLM vs. ChatGPT

https://morai.eu/private-llm-vs-chatgpt-in-business-when-it-makes-sense-and-when-it-doesnt/
1•readow•1m ago•0 comments

Found 10 Genius Clocks Every Science Lover Needs [video]

https://www.youtube.com/watch?v=-ved6HMJpcw
1•mdp2021•4m ago•0 comments

How AI Is Transforming Education

https://longtermemory.com/b/ai-transforming-education/
1•aledevv•6m ago•0 comments

Specialization in Stable Rust

https://goldstein.lol/posts/stable-specialization/
1•fanf2•8m ago•0 comments

Multi Censured Nobel Prizes – Universal Physics

https://gitlab.com/users/btpfromsosua/starred
1•machardmachard•8m ago•0 comments

Australia Kangaroo Coin, the World's Largest Gold Coin

https://www.perthmint.com/visit/attractions/one-tonne-gold-coin/
1•nephihaha•8m ago•1 comments

Ask HN: Why didn't functional programming work for you?

2•rienbdj•10m ago•0 comments

Apple scales out 6G ambitions with engineer job listings

https://www.sdxcentral.com/news/apple-scales-out-6g-ambitions-with-engineer-job-listings/
1•herbertl•17m ago•0 comments

World Inequality Report 2026 [pdf]

https://wir2026.wid.world/www-site/uploads/2026/04/World_Inequality_Report_2026.pdf
1•xyzal•18m ago•0 comments

Gremlin

https://en.wikipedia.org/wiki/Gremlin
1•thunderbong•21m ago•0 comments

The most dangerous place in the solar system: Not where you think

https://refractor.io/space/dangerous-solar-system/
1•breve•22m ago•0 comments

The Law of Leaky Abstractions

https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/
1•abrbhat•22m ago•0 comments

Germany's military shuns Palantir – cyber chief

https://www.reuters.com/technology/germanys-military-shuns-palantir-now-cyber-chief-tells-handels...
2•vrganj•23m ago•0 comments

How are teams bridging the gap between company knowledge and AI agents?

1•aursalan•24m ago•0 comments

Sci-Bot

https://sci-bot.ru
1•anticensor•30m ago•0 comments

Verifying your age in a privacy preserving manner

https://adayinthelifeof.nl/2026/04/27/sd-jwt.html
2•jaytaph•33m ago•0 comments

Why Neolithic Europeans Stopped Building Megalithic Tombs 5k Years Ago

https://www.iflscience.com/neolithic-europeans-suddenly-stopped-building-megalithic-tombs-5000-ye...
1•thinkingemote•38m ago•1 comments

Convicted former Harvard scientist rebuilds brain computer lab in China

https://www.reuters.com/world/china/convicted-former-harvard-scientist-rebuilds-brain-computer-la...
1•pseudolus•38m ago•0 comments

Lessons from early access to OpenAI's agent execution layer

https://deepsense.ai/blog/early-access-to-openais-agent-execution-layer-what-it-means-for-enterpr...
1•Applied_AI•41m ago•0 comments

Ask HN: Package Registry

1•ramon156•46m ago•0 comments

Ask HN: What did you streamline with AI agents?

1•Trickery5837•47m ago•0 comments

Nubo – a platform that learns your course materials, then walks you through them

https://www.nubo.so/
1•goatedcoded•48m ago•0 comments

Revealed: British ad firm's billion-dollar greenwash of US oil industry

https://www.theguardian.com/media/2026/apr/30/revealed-british-ad-firm-billion-dollar-greenwash-o...
1•ndsipa_pomu•49m ago•0 comments

A text editor as a user interface

https://ratfactor.com/cards/text-editor-as-ui
2•ingve•52m ago•0 comments

Solar Farms in Space [video]

https://www.youtube.com/watch?v=Vf_pS0XSTyo
1•simonebrunozzi•52m ago•0 comments

Meta shares slide as plan to spend billions more on AI spooks investors

https://www.bbc.co.uk/news/articles/crkpd4r2y7eo
1•rwmj•53m ago•0 comments

DataCenter.FM – background noise app featuring the sound of the AI bubble

https://datacenter.fm/
5•louisbarclay•58m ago•0 comments

LLM 0.32a0 is a major backwards-compatible refactor

https://simonwillison.net/2026/Apr/29/llm/
2•thebeardisred•59m ago•0 comments

Coding Was Never the Hard Part: What I Wish Every Business Leader Knew About AI

https://koushikdasika.com/blog/coding-was-never-the-hard-part/
2•HalcyonicStorm•1h ago•1 comments

Mozilla's Opposition to Chrome's Prompt API

https://github.com/mozilla/standards-positions/issues/1213
5•jaffathecake•1h ago•0 comments