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

Ask HN: Does the Gmail iOS app often hang in iOS 26?

1•lysace•1m ago•0 comments

How we made Ramp Sheets self-maintaining

https://twitter.com/i/status/2036165188899012655
1•pongogogo•1m ago•0 comments

Litellm wasn't just attacked – code executed before the app even started

1•Olsberg•2m ago•0 comments

Firefox now has free 50Gb built-in VPN

https://support.mozilla.org/en-US/kb/built-in-vpn
1•Gaishan•2m ago•0 comments

Hypnic Jerk

https://en.wikipedia.org/wiki/Hypnic_jerk
1•thunderbong•2m ago•0 comments

Predicting onset of symptomatic Alzheimerʼs disease with plasma p-tau217 clocks

https://www.nature.com/articles/s41591-026-04206-y
1•bookofjoe•3m ago•0 comments

Hash23 – A constexpr implementation of different hashing algorithms

https://github.com/rwindegger/hash23
1•superreeen•6m ago•0 comments

Static Machine Code Analysis

https://tetzank.github.io/posts/static-machine-code-analysis/
1•ibobev•6m ago•0 comments

4 Types of Quantum Computers Explained [video]

https://www.youtube.com/watch?v=l8L7afabIJ0
1•jonbaer•8m ago•0 comments

Owls of Germany

https://liebesgermany.wordpress.com/2012/12/28/owls-of-germany/
1•martialg•10m ago•0 comments

Newly purchased Vizio TVs now require Walmart accounts to use smart features

https://arstechnica.com/gadgets/2026/03/newly-purchased-vizio-tvs-now-require-walmart-accounts-to...
3•kotaKat•11m ago•0 comments

Australia's emergency plan starts with carpooling, escalates to fuel caps

https://www.smh.com.au/politics/federal/australia-s-emergency-plan-starts-with-carpooling-escalat...
2•KnuthIsGod•13m ago•0 comments

Type Construction and Cycle Detection

https://go.dev/blog/type-construction-and-cycle-detection
2•commotionfever•14m ago•0 comments

Minimal Version Selection Revisited (2024)

https://matklad.github.io/2024/12/24/minimal-version-selection-revisited.html
1•vinhnx•16m ago•0 comments

Show HN: Watermolecules

https://unrealwill.github.io/watermolecules/
1•GistNoesis•17m ago•1 comments

Show HN: I replaced Substack's algorithm with a chronological feed of new posts

https://findsubstack.com
1•meander_water•19m ago•1 comments

Hugging Face Provides an S3 Alternative

https://huggingface.co/storage
2•abidlabs•20m ago•1 comments

The Making of the Arm AGI CPU [video]

https://www.youtube.com/watch?v=OErl_P4k6So
1•0xedb•20m ago•0 comments

Artemis II: Inside the Moon mission to fly humans further

https://www.bbc.co.uk/news/resources/idt-86aafe5a-17e2-479c-9e12-3a7a41e10e9e
1•chaghalibaghali•21m ago•0 comments

Gardaí open €30m bitcoin virtual wallet, first of 12 accessed since 2019 seizure

https://www.irishtimes.com/crime-law/2026/03/24/gardai-seize-bitcoin-valued-at-30m-in-cab-operati...
1•orow•21m ago•1 comments

Mouse study shows repeated cloning causes grave genetic mutations

https://www.reuters.com/business/healthcare-pharmaceuticals/mouse-study-shows-repeated-cloning-ca...
2•akyuu•22m ago•0 comments

TIL: You can attach images to GitHub PRs from the CLI (and your agents can too)

https://mareksuppa.com/til/github-pr-images-from-cli/
3•mrshu•23m ago•1 comments

Extraordinary Popular Delusions and the Madness of Crowds

https://en.wikipedia.org/wiki/Extraordinary_Popular_Delusions_and_the_Madness_of_Crowds
1•Bengalilol•24m ago•0 comments

Thoughts on LLMs – Psychological Complications

https://parsingphase.dev/tech/LLMs/psychologicalFactors.html
5•cdrnsf•24m ago•0 comments

RustTraining: Beginner, advanced, expert level Rust training material

https://github.com/microsoft/RustTraining
1•simonpure•25m ago•0 comments

Dear Pinterest: Stop It

2•robomartin•26m ago•2 comments

EvidionAI – open-source multi-agent research system built on LangGraph

1•NeuralOperator•26m ago•0 comments

Sora (Video Model) shut down

https://xcancel.com/i/status/2036541679679709254#m
4•Trung0246•26m ago•2 comments

The Small Internet

https://ozair.dev/b/the-small-internet/
1•ozzzzzzz•26m ago•0 comments

PivotRL: High Accuracy Agentic Post-Training at Low Compute Cost

https://arxiv.org/abs/2603.21383
1•matt_d•26m ago•0 comments