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.

Molly holzschlag – 30 years of blog

https://mollyholzschlag.com/
1•vietyork•5m ago•0 comments

Musk found liable to Twitter shareholders in fraud lawsuit over $44B takeover

https://www.reuters.com/sustainability/boards-policy-regulation/musk-found-liable-twitter-shareho...
1•gostsamo•10m ago•0 comments

What AI augmentation means for technical leaders – Birgitta Boeckeler

https://www.youtube.com/watch?v=qB7rsbDfmQg
1•mcp_•10m ago•0 comments

A Markdown textfile based Kanban board in a single HTML file

https://github.com/chr15m/kanban-todo
2•chr15m•12m ago•1 comments

The easiest way to make the world smarter [video][30m]

https://www.youtube.com/watch?v=XRcwwZXJ8gk
1•Bender•14m ago•0 comments

NPM Visual Manager – a visual dependency manager for VS Code

https://github.com/luisssc/npm-visual-manager
1•luicc•15m ago•0 comments

I'm Sorry Did You Say Street Magic

https://en.wikipedia.org/wiki/I%27m_Sorry_Did_You_Say_Street_Magic
2•doener•17m ago•1 comments

Atuin v18.13 – better search, a PTY proxy, and AI for your shell

https://blog.atuin.sh/atuin-v18-13/
3•cenanozen•24m ago•0 comments

AI Slop Is Infiltrating Online Children's Content

https://undark.org/2026/03/20/ai-slop-children/
3•jruohonen•26m ago•0 comments

Tech Interview guide – the test without tests

http://opentranscripts.org/wp-content/uploads/2016/12/allison-parrish-programming-forgetting-04.png
1•anong1•30m ago•0 comments

Big Win for Open Source as Germany Backs Open Document Format

https://itsfoss.com/news/germany-digital-stack-mandate/
4•giuliomagnifico•30m ago•0 comments

Apple: Accelerate your machine learning workloads with the M5 and A19 GPUs

https://www.youtube.com/watch?v=wgJX1HndGl0
3•de_aztec•30m ago•0 comments

Etel-Tuning

https://etel-tuning.com/
2•mqus•33m ago•0 comments

I benchmarked managed Kubernetes across 31 EU providers – here's what I found

https://www.eucloudcost.com/blog/building-eucloudcost/
1•mixxor•36m ago•0 comments

Show HN: YoloAI: A sandbox and diff/apply workflow your agent can't escape

https://yoloai.dev/posts/the-only-sandbox-claude-cant-escape/
1•kstenerud•39m ago•0 comments

Show HN: World Time TUI

https://github.com/aleris/woti
1•realaleris149•42m ago•0 comments

Internet course on circuit theory using TINA

https://www.tina.com/free-dc-ac-course/
1•teleforce•45m ago•0 comments

Pydantic-Deep: Production Deep Agents for Pydantic AI – Vstorm

https://pydantic.dev/articles/pydantic-deep-agents
1•rbanffy•45m ago•0 comments

Show HN: Shareaslot Is a Doodle Alternative

https://shareaslot.com/
1•theill•47m ago•0 comments

Study: An AI decoded the rules of an ancient board game

https://news.flinders.edu.au/blog/2026/03/21/ai-sheds-light-on-an-ancient-gaming-mystery/
1•giuliomagnifico•47m ago•0 comments

Show HN: Live-Typing Chat

https://kraa.io/kraa/trees
2•levmiseri•49m ago•0 comments

Microscope (Role-Playing Game)

https://en.wikipedia.org/wiki/Microscope_(role-playing_game)
1•doener•50m ago•0 comments

SoftBank planning $500B data center in Ohio

https://www.japantimes.co.jp/business/2026/03/21/companies/softbank-ohio-data-center/
2•shrike•51m ago•1 comments

Hallucinated References: Five Excuses for Academic Misconduct

https://dorotheabaur.ch/en/texts-and-media/hallucinated-references-five-excuses-for-academic-misc...
2•jruohonen•51m ago•1 comments

Living with (Jagged) Artificial Superintelligence

https://langkilde.se/blog/living-with-asi/
1•imartin2k•53m ago•0 comments

Show HN: AI still recommends Delve to buyers 3 days after the fraud scandal

https://optimly.ai/brand/delve
1•apurvaluty•54m ago•0 comments

Elon Musk misled Twitter investors, jury finds

https://www.bbc.co.uk/news/articles/c62j3yl842eo
6•iamflimflam1•56m ago•1 comments

Ask HN: Good minimal hardware to run LLMs and general NNs

1•mdp2021•57m ago•0 comments

Show HN: Run Emacs in the Browser with v86

https://play.emacsen.de/
1•gudzpoz•1h ago•0 comments

New research suggests Bennu's boulders might be more porous than expected

https://science.nasa.gov/missions/osiris-rex/asteroid-bennus-rugged-surface-baffled-nasa-we-final...
1•ultratalk•1h ago•0 comments