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

Show HN: I built a tool to visualize the Peter Thiel stock portfolio (13F data)

https://www.13radar.com/guru/peter-thiel
1•PanicSellGuru•56s ago•0 comments

Exasol Personal – Democratizing Big Data Analytics

https://www.exasol.com/blog/introducing-exasol-personal/
1•astigsen•4m ago•0 comments

Most US Gen Zers and millennials listen to about three hours of AI music a week

https://sherwood.news/markets/morgan-stanley-most-gen-zers-and-millennials-in-the-us-listen-to-ab...
1•croes•8m ago•0 comments

Demystifying Evals for AI Agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
1•dvorka•15m ago•0 comments

I reverse engineered Ann Arbor's parking ticket system and built a live map

https://ammarateya.com/a2-parking/
2•ateya•16m ago•1 comments

The ESP32-C3 Super Mini Scam [video]

https://www.youtube.com/watch?v=ZMnSjpFgwdQ
1•josephcsible•19m ago•1 comments

HTGS – HTML Online Editor

https://htgspro.xyz/
1•MopAmine•20m ago•0 comments

Golden girl: Rose Byrne's Globes win maps the road to Oscar glory

https://www.smh.com.au/culture/movies/rose-byrne-golden-globes-winners-2026-oscar-win-best-actres...
1•keepamovin•20m ago•0 comments

AI Can Code (But It Doesn't Care About Quality)

https://blog.discourse.org/2026/01/ai-can-code-but-it-doesnt-care-about-quality/
1•mjrbrennan•23m ago•0 comments

A product that helps developers with marketing tools

https://amplift.ai/
1•gaygum102•24m ago•1 comments

UK Prime Minister Starmer seeks support for international X ban

https://www.euractiv.com/news/uk-prime-minister-starmer-seeks-support-for-international-x-ban/
3•saubeidl•25m ago•3 comments

WhatsApp is untrustable

https://toki.la/posts/whatsapp
3•purglet•28m ago•0 comments

Common misunderstandings about large software companies

https://philipotoole.com/common-misunderstandings-about-large-software-companies/
1•otoolep•28m ago•0 comments

The Emacs Widget Library: A Critique and Case Study

https://www.d12frosted.io/posts/2025-11-26-emacs-widget-library
1•whacked_new•29m ago•0 comments

The liquid air alternative to fossil fuels

https://www.bbc.com/future/article/20251009-the-liquid-air-alternative-to-fossil-fuels
1•otoolep•30m ago•0 comments

DroPE: Extending the Context of LLMs by Dropping Their Positional Embeddings

https://pub.sakana.ai/DroPE/
1•hardmaru•30m ago•0 comments

Roman villa found under popular park dubbed town's 'Pompeii'

https://www.bbc.com/news/articles/cgk8j1gkxelo
1•defrost•37m ago•0 comments

Ask HN: Any active databases / systems paper reading group?

1•dockerd•40m ago•1 comments

AI in RollerCoaster Tycoon

https://labs.ramp.com/rct
1•robbiet480•47m ago•0 comments

Show HN: CKEditor 5 Symfony Integration

https://github.com/Mati365/ckeditor5-symfony
1•mati365•48m ago•0 comments

World Age for beginners: one way to compile a dynamic language

https://discourse.julialang.org/t/world-age-for-beginners-one-way-to-compile-a-dynamic-language/1...
1•anewhnaccount2•50m ago•0 comments

Show HN: 3D Visualizing YC Advice

https://github.com/akshay326/quote-viz
1•akshay326•51m ago•0 comments

Noise sensitivity disrupts the mind, brain and body

https://www.bbc.com/future/article/20250804-inside-the-brains-of-noise-sensitive-people
1•rock_artist•54m ago•0 comments

Your problem with Vim is that you don't grok vi.

https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim
1•chanana•55m ago•0 comments

The Map Is Not the Territory: The Agent-Tool Trust Boundary

https://niyikiza.com/posts/map-territory/
2•niyikiza•1h ago•0 comments

If you want to plan your dev projects faster, use this tool

https://getfrostbyte.dev/
3•Skyfall106•1h ago•0 comments

Are the YouTube channel Courts and Crimes's shorts AI-generated deep fakes?

https://skeptics.stackexchange.com/questions/60423/are-the-youtube-channel-courts-crimess-shorts-...
2•razor-thin•1h ago•0 comments

Show HN: OpenAI FM – Zero-setup AI voice tool(Inspired by repo)

https://openai-fm.org/
2•thenextechtrade•1h ago•0 comments

Altaid 8800

https://sunrise-ev.com/8080.htm
3•exvi•1h ago•0 comments

Z80 Mem­ber­ship Card

https://sunrise-ev.com/z80.htm
3•exvi•1h ago•0 comments