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.

Myrient will shut down on 31 March 2026. Download any content you find important

https://myrient.erista.me
1•chaifeng•1m ago•0 comments

Neural-Temporal Compression – A State-Persistence Framework

https://github.com/andresuarus10-byte/memory-engine
1•KaelyrAT13•4m ago•1 comments

Show HN: A Calculator for Garden Horizons

https://gardenhorizons.app/
1•hugh1st•4m ago•0 comments

Doing a Video Call over a Database

https://www.youtube.com/watch?v=zwIc9fFcYVw
1•Jacques2Marais•7m ago•0 comments

Superagers' Secret Ingredient May Be the Growth of New Brain Cells

https://www.sciencealert.com/superagers-secret-ingredient-may-be-the-growth-of-new-brain-cells
1•jnord•8m ago•0 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
1•hasheddan•10m ago•0 comments

'To be free, we have to be feared,' Macron says in keynote nuclear speech

https://www.france24.com/en/france/20260302-macron-unveils-france-nuclear-strategy-eu-counter-rus...
1•vrganj•10m ago•0 comments

I built a pint-sized Macintosh

https://www.jeffgeerling.com/blog/2026/pint-sized-macintosh-pico-micro-mac/
2•ingve•16m ago•0 comments

Ask HN: How to get traction for Open-Source Projects

1•human_hack3r•17m ago•0 comments

Show HN: Proofbox – Defensive Publishing Platform to preserve freedom to operate

https://www.proofbox.co/en
2•gartheuncle•18m ago•0 comments

Building AI agent for our own company

https://blog.leanmcp.com/blog/llms-getting-leanmcp-wrong
1•dheerajmp•19m ago•0 comments

Show HN: I built a social media distribution tool that helps you find users

https://signal-grow.vercel.app
1•dog52841•22m ago•1 comments

Performance Analysis and Tuning on Modern CPUs 2nd edition [pdf]

https://github.com/dendibakh/perf-book/releases/download/2.0_release/PerformanceAnalysisAndTuning...
3•medbar•22m ago•0 comments

Show HN: Neural Siege – A Multi-Agent RL Combat Simulation

https://github.com/ayushdnb/Neural-Siege
2•luthor190397•25m ago•0 comments

4. How to Keep Using Nano Banana Pro After Gemini Replaces It with Nano Banana 2

2•zaaaaooo•26m ago•0 comments

Show HN: C-Suite Skills – a full exec team as skills

https://github.com/pollow/c-suite-skills
2•pollow•32m ago•0 comments

Veo 3 AI

https://veo-3-ai.org/
2•Evan233•36m ago•1 comments

Show HN: GitHub Repo Agent – an agent that explores and reasons on GitHub repos

https://github.com/gauravvij/GithubRepoAgent
3•gauravvij137•39m ago•0 comments

I Put a Full JVM Inside a Browser Tab

https://bmarti44.substack.com/p/i-put-a-full-jvm-inside-a-browser
3•todsacerdoti•41m ago•0 comments

Full speech pipeline in native Swift/MLX – ASR, TTS, speech-to-speech, on-device

https://github.com/ivan-digital/qwen3-asr-swift
2•ipotapov•41m ago•1 comments

People in northeast BC say rest of province should embrace year-round time zone

https://www.cbc.ca/news/canada/british-columbia/time-change-british-columbia-9.7112139
2•divbzero•42m ago•0 comments

California to require age verification for all OS including Linux

https://www.tomshardware.com/software/operating-systems/california-introduces-age-verification-law
4•hambes•43m ago•1 comments

Rare Not Random – Using Token Efficiency for Secrets Scanning

https://lookingatcomputer.substack.com/p/rare-not-random
2•boyter•44m ago•0 comments

Strict Monospace Font for LLM-CLI users using Chinese Japanese Korean, CodexMono

https://www.npmjs.com/package/@monolex/codexmono
4•monokist•48m ago•1 comments

Working on Things That Suck

https://mayberay.bearblog.dev/working-on-things-that-suck/
2•mugamuga•50m ago•0 comments

Ask HN: How Do Emergency Alerts on Phone Work?

2•rishikeshs•55m ago•2 comments

US President struggles to explain why he launched another Middle Eastern war

https://www.ft.com/content/fd31c6ad-39f0-4fae-851c-fadf44f006eb
10•Jimmc414•1h ago•3 comments

Apple Does Value (Week)

https://om.co/2026/03/02/apple-does-value-week/
1•tosh•1h ago•1 comments

The Pointless War Between The Pentagon and Anthropic

https://www.wsj.com/opinion/the-pointless-war-between-the-pentagon-and-anthropic-9284fd37
5•jrosenblatt•1h ago•2 comments

Show HN: wo; a better CD for repo management

https://github.com/anishalle/wo
1•itsagamer124•1h ago•0 comments