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.

State Department Cuts Price of Renouncing U.S. Citizenship to $450

https://www.nytimes.com/2026/03/15/us/us-citizenship-renounce-price-cut.html
2•vinni2•1m ago•0 comments

Show HN: What Is Your Face Worth in the Modeling Industry?

https://facemaxxing.vercel.app/
1•roozka10•2m ago•0 comments

Show HN: Whspe – We decomposed TTFB to build a real hosting quality score

1•gezginweb•3m ago•0 comments

Reddit Post 4

https://old.reddit.com/r/PisequaltoNP/comments/1rupoi7/practical_pnp_paper/
1•KaoruAK•3m ago•0 comments

Ghost Logits: Simulating missing partition mass in sampled softmax [pdf]

https://github.com/yousef-rafat/MaximusLLM/blob/main/docs/maxis.pdf
1•yousef_g•4m ago•0 comments

The Toyota 4Runner Trailhunter's Snorkel Isn't Even a Snorkel, So Be Careful

https://www.thedrive.com/news/the-toyota-4runner-trailhunters-snorkel-isnt-even-a-snorkel-so-be-c...
2•PaulHoule•4m ago•0 comments

UK Companies House security blunder leaves director data exposed

https://www.accountingweb.co.uk/tech/tech-pulse/companies-house-security-blunder-leaves-director-...
1•mmarian•4m ago•0 comments

Demos of 2025 from the Demoscene

https://laurent.le-brun.eu/blog/the-best-demos-of-2025-from-the-demoscene
2•laurentlb•5m ago•0 comments

Show HN: 3D Tic Tak Toe – More Challenging Then You Think

https://arthur-ficial.github.io/tictactoe-3d/
2•franze•8m ago•1 comments

LLMs can be absolutely exhausting

https://tomjohnell.com/llms-can-be-absolutely-exhausting/
1•tjohnell•8m ago•0 comments

Show HN: A local-first genomic analysis toolkit

https://github.com/emrecolako/savior/
1•emre•9m ago•0 comments

BioNTech founders to depart, form new mRNA-focused company

https://www.statnews.com/2026/03/10/biontech-mrna-ugur-sahin-ozlem-tureci-depart-new-company/
1•brandonb•9m ago•0 comments

Claude-Code-Workflow – Orchestrate Multiple CLI Agents

https://github.com/catlog22/Claude-Code-Workflow
1•jeremyjh•10m ago•0 comments

ThoughtRAIL – A Multi-AI Thinkspace

https://thoughtrail.ai
1•codingnibble•13m ago•1 comments

you're getting rejected because you're lazy, not because you're unqualified

1•abadmos•13m ago•0 comments

. GotHub All the Things

https://x61.sh/log/2026/03/14032026191148-gothub.html
1•jnpnj•14m ago•1 comments

Framework 16 as a Server

https://nmm.ee/framework-16-as-a-server
1•askonomm•15m ago•0 comments

AI is helping choose targets in Iran war – now it's a target too

https://www.abc.net.au/news/2026-03-15/iran-war-ai-technology-data-centres/106443004
1•_kb•17m ago•0 comments

Show HN: Free SaaS churn and retention calculators

https://saucecode.co/tools/churn
1•robinweller•20m ago•0 comments

Continuum – GitHub Action that detects LLM drift in CI

https://github.com/Mofa1245/Continuum
1•Mofa1245•21m ago•0 comments

City Circles Quiz: guess a city and get them all within 500km

https://www.anita.garden/circles/
1•owodc•22m ago•0 comments

Why Do Engineers Wear a Ring?

https://alvinpane.com/essays/the-ring
4•alvinpane•22m ago•2 comments

Pywho – Python Environment Inspector

https://github.com/AhsanSheraz/pywho
1•ahsansheraz•22m ago•0 comments

What Trump Didn't Know About Iran

https://www.nytimes.com/2026/03/14/opinion/ezra-klein-podcast-ali-vaez.html
1•whack•25m ago•0 comments

Plotform – a booking and intake tool built specifically for tattoo artists

https://www.plotform.cc/
1•abdullah9•26m ago•0 comments

A Linux distribution designed to eliminate single points of failure

https://stagex.tools
1•wa008•27m ago•0 comments

Show HN: Pakkun – Vibeslop Git for ETL

https://github.com/sroerick/pakkun
1•sroerick•28m ago•1 comments

PulseMRR – Revenue analytics on 5,400 Stripe-verified startups

https://pulsemrr.app
1•4bdullatif•28m ago•1 comments

Is Office.eu a Scam?

https://blog.tomaszdunia.pl/officeeu-eng/
3•doener•28m ago•1 comments

The Science of Staging: Why the In-Between Is Where the Action Is

https://www.bassfinity.com/blog/pre-spawn-bass-reading-the-transition
1•jequals5•33m ago•0 comments