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

Trump says U.S. will build first refinery in 50 years

https://www.cnbc.com/2026/03/11/trump-us-oil-refinery-reliance-ambani-texas-india-shale-wti.html
1•kamaraju•4m ago•0 comments

A Mysterious Signal Transfixes Radio Sleuths and Intelligence Experts

https://www.rferl.org/a/mystery-numbers-station-persian-signal-iran-war/33700659.html
1•willvk•14m ago•0 comments

Sergey Brin Funds Misleading Ballot Measure to Negate Wealth Tax

https://prospect.org/2026/03/10/google-brin-california-wealth-tax-ballot-measure/
13•dlipovetsky•15m ago•1 comments

Switch: Benchmarking the Handling of TCIs in Long-Horizon Embodied Scenarios

https://huggingface.co/papers/2511.17649
1•tellarin•20m ago•0 comments

I built a free narrative game inspired by Daniel Kokotajlo's AI 2027 essay

https://ai2028.ai/
1•geniusxp•21m ago•1 comments

Improving instruction hierarchy in frontier LLMs

https://openai.com/index/instruction-hierarchy-challenge
1•surprisetalk•23m ago•0 comments

Microsoft uses plagiarized AI slop flowchart to explain how GitHub works

https://www.pcgamer.com/software/ai/microsoft-uses-plagiarized-ai-slop-flowchart-to-explain-how-g...
2•gpvos•24m ago•0 comments

Maybe we can keep on coding? pseudo code project

4•EmptyDrum•26m ago•3 comments

MCP Weekly: OpenAI Raises $110B, Anthropic Faces Defense Showdown

https://www.gentoro.com/blog/mcp-weekly-openai-raises-110b-anthropic-faces-defense-showdown-and-g...
1•ashutosh0707•27m ago•0 comments

The State of Rust Allocators in 2026

https://cetra3.github.io/blog/state-of-allocators-2026/
2•cetra3•32m ago•0 comments

Naplan resumes after earlier technical issues paused online testing

https://www.abc.net.au/news/2026-03-11/naplan-technical-issues-disrupt-school-testing/106440510
2•langfo•32m ago•0 comments

Ask HN: How are you managing "prompt fatigue" and lazy LLM outputs?

4•thlangu•33m ago•1 comments

Show HN: ClawSoc – Observe Your AI Agent in an AI Society

https://clawsoc.io
4•benjosaur•34m ago•0 comments

Promptbuilder Tool

https://promptengine.business
2•thlangu•35m ago•0 comments

Show HN: Magicly – an aesthetic new tab with a magic orb

https://chromewebstore.google.com/detail/magicly/lphplecibkpifdmohbockmaloepgpbbl
2•tamnv•37m ago•0 comments

.NET 11 Preview 2 is now available

https://devblogs.microsoft.com/dotnet/dotnet-11-preview-2/
1•vyrotek•37m ago•0 comments

MacBook Neo Review: No Other Budget Laptop Can Compete

https://gizmodo.com/macbook-neo-review-no-other-budget-laptop-can-compete-2000731635
4•thunderbong•37m ago•0 comments

Signal Design for Good Correlation

https://www.cambridge.org/core/books/signal-design-for-good-correlation/4A48F8F2070E0EB093283A792...
2•programmexxx•38m ago•0 comments

How the "godfathers of AI" have shaped our mission

https://ctsmyth.substack.com/p/standing-with-giants
1•K0balt•39m ago•1 comments

Show HN: CryptoFlora – Visualize SHA256 to a flower using Rose curves

https://crypto-flora.tonytonyjan.net/
1•tonytonyjan•40m ago•0 comments

Preview a website before DNS changes – etchosts.link

https://etchosts.link/
1•prismatized•41m ago•0 comments

Why Cape Town May End Up Safer Than Dubai

https://www.thefp.com/p/why-cape-town-may-end-up-safer-than
1•paulpauper•45m ago•0 comments

Advantageous Selection

https://marginalrevolution.com/marginalrevolution/2026/03/advantageous-selection.html
1•paulpauper•45m ago•0 comments

Ben McKenzie's 'Everyone Is Lying to You for Money' – Official Trailer [video]

https://www.youtube.com/watch?v=hEXxAOFqv4U
4•yesbut•45m ago•0 comments

The self-help guru who decided he might be doing more harm than good

https://www.telegraph.co.uk/news/2026/03/09/tim-ferriss-self-help-may-be-harming-people/
1•cyunker•51m ago•1 comments

Apple Planning 'MacBook Ultra' with Touchscreen and Higher Price

https://www.macrumors.com/2026/03/08/apple-planning-macbook-ultra/
1•walterbell•54m ago•0 comments

ASINCrate – Download Amazon Product Images and Videos in One Click

https://asincrate.com/
1•seedancetips•56m ago•0 comments

A Dish of Neurons Playing Doom

https://gizmodo.com/a-dish-of-neurons-playing-doom-is-the-wildest-thing-ive-seen-in-ages-2000727674
1•colinprince•56m ago•0 comments

Jensen Huang: AI is a five layer cake

https://blogs.nvidia.com/blog/ai-5-layer-cake/
1•salkahfi•56m ago•0 comments

Show HN: AngelBacked – a searchable database ofangels and VCs

https://www.angelbacked.co
1•veritas9•58m ago•0 comments