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.

Show HN: Nanorust – Minimal server-driven UI in Rust

https://github.com/skorotkiewicz/nanorust
1•modinfo•13m ago•0 comments

The Cursed Computer Iceberg Meme (2021)

https://suricrasia.online/iceberg/
1•medbar•14m ago•0 comments

Hard Drive Smart Stats and Failure Rates

https://www.backblaze.com/docs/cloud-storage-hard-drive-smart-stats-and-failure-rates
1•mmh0000•16m ago•0 comments

Cyberattack hits Canvas system used by schools as finals loom

https://www.politico.com/news/2026/05/08/cyberattack-hits-canvas-system-used-by-thousands-of-scho...
2•1vuio0pswjnm7•18m ago•0 comments

Apple, Intel Have Reached Preliminary Chip-Making Agreement

https://www.wsj.com/tech/apple-intel-have-reached-preliminary-chip-making-agreement-69eb9370
1•tosh•21m ago•0 comments

Canvas outage delays college finals across the country

https://www.axios.com/2026/05/08/canvas-cyberattack-outage-finals-colleges-universities
1•1vuio0pswjnm7•23m ago•0 comments

California tech company Cloudflare to lay off more than 1k workers, cites AI

https://www.latimes.com/business/story/2026-05-07/california-tech-company-cloudflare-to-lay-off-m...
1•1vuio0pswjnm7•25m ago•0 comments

What do figureheads on ships represent?

https://thedockyard.co.uk/news/what-do-figureheads-on-ships-represent/
1•thunderbong•31m ago•0 comments

What is Amazon Linux 2023?

https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html
1•tosh•32m ago•0 comments

Programming as Theory Building [pdf]

https://pages.cs.wisc.edu/~remzi/Naur.pdf
1•nvader•39m ago•1 comments

Rough Week Thank God for Fridays

3•Eaglo•40m ago•1 comments

Show HN: Best Old School UFO Website

http://www.ufoevidence.org/
2•techteach00•51m ago•0 comments

Show HN: CopyProps – A Figma plugin that copies element properties as text

https://github.com/p32929/figma_copy_props
1•heliskyr2•53m ago•0 comments

GNUtrition 0.33.0rc1 Now Available

https://lists.gnu.org/archive/html/info-gnutrition/2026-05/msg00000.html
1•amcclure•56m ago•0 comments

The React2Shell Story and What Happened Next.js

https://sylvie.fyi/posts/react2shell/
1•thaunatos•1h ago•1 comments

ExitFlare

https://exitflare.com/
5•libroot•1h ago•0 comments

Learn Something Old Every Day, Part XXI: VGA Memory Access Is Complicated

https://www.os2museum.com/wp/learn-something-old-every-day-part-xxi-vga-memory-access-is-complica...
2•kencausey•1h ago•0 comments

Show HN: Ovlt – Lightweight Auth Server That Runs in ~20MB RAM

https://www.ovlt.tech/
2•Shrpp•1h ago•1 comments

How to Brush Your Teeth at Work

https://joshlf.com/posts/brush-your-teeth/
2•untrust•1h ago•0 comments

Over 97% of the 'Linux' Foundation's Budget Goes Not to Linux

https://techrights.org/n/2026/05/08/Over_97_of_the_Linux_Foundation_s_Budget_Goes_Not_to_Linux.shtml
29•esaym•1h ago•15 comments

Crab Memes Amplify Mistaken Ideas about Evolution

https://www.scientificamerican.com/article/crab-memes-amplify-mistaken-ideas-about-evolution/
1•Eridanus2•1h ago•1 comments

Show HN: TigerJSON – Native macOS JSON viewer with jq filter engine ($9.99)

https://apps.apple.com/kr/app/tiger-json/id6761610376?mt=12
1•oxchairman•1h ago•0 comments

Scott Sumner Q1 movie reviews

https://scottsumner.substack.com/p/films-of-2026-q1
1•paulpauper•1h ago•0 comments

Annualizing Retention Rates

https://www.arrguide.com/blog/annualizing-retention-rates
1•ericsd2024•1h ago•0 comments

The Gell-Mann Amnesia Trap

https://novehiclesinthepark.substack.com/p/the-gell-mann-amnesia-trap
3•axtro•1h ago•0 comments

Meltdown: LLM Client Made in Python and Tk

https://github.com/Merkoba/Meltdown
2•madprops•1h ago•0 comments

ShowHN: Applying PEFT (e.g., LoRA) for edge-cloud collaborative computing

https://github.com/ShadowLLM/shadow-peft
5•heyjude87•1h ago•0 comments

A recent experience with ChatGPT 5.5 Pro

https://gowers.wordpress.com/2026/05/08/a-recent-experience-with-chatgpt-5-5-pro/
3•_alternator_•1h ago•0 comments

Great Writers "Tell" All the Time

https://freddiedeboer.substack.com/p/great-writers-tell-all-the-time
3•paulpauper•2h ago•0 comments

Show HN: Ant – A from-scratch JavaScript runtime in 9 MB

https://github.com/themackabu/ant
5•theMackabu•2h ago•0 comments