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.

Nano Governments

https://shukla.io/blog/2026-01/nano-gov.html
1•BinRoo•29s ago•1 comments

We Default to Addition

https://www.ufried.com/blog/addition_bias/
1•todsacerdoti•43s ago•0 comments

Type-In Rescue: The C64 Autoboot Generator

https://bumbershootsoft.wordpress.com/2026/01/10/type-in-rescue-the-c64-autoboot-generator/
1•ibobev•1m ago•0 comments

DestinationDrivenCompilation

https://tailrecursion.com/~alan/Lisp/DestinationDrivenCompilation.html
1•mpweiher•1m ago•0 comments

Bespoke Software Is the Future

https://fzakaria.com/2026/01/01/bespoke-software-is-the-future
1•mpweiher•3m ago•0 comments

AI-generated police report mistakenly claims officer was transformed into a frog

https://www.fox13now.com/news/local-news/summit-county/how-utah-police-departments-are-using-ai-t...
1•zdragnar•3m ago•1 comments

Python: What's Coming in 2026

https://thenewstack.io/python-whats-coming-in-2026/
1•MilnerRoute•3m ago•0 comments

The Price of Mathematical Scepticism

https://arxiv.org/abs/2107.12925
1•hackandthink•3m ago•0 comments

'F*ck You, Make Me' Without Saying the Words

https://daringfireball.net/2026/01/fuck_you_make_me_without_saying_the_words
1•chmaynard•9m ago•0 comments

In the Path of a Raging Wildfire, a Luthier's Precious Wood

https://www.nytimes.com/2026/01/09/arts/music/eaton-fire-mario-miralles-violin-cello.html
2•bookofjoe•10m ago•1 comments

Ask HN: How are you balancing AI coding tools with junior developers growth?

2•rubslopes•13m ago•1 comments

Why Julia's GPU Accelerated Ode Solvers Are 20x-100x Faster Than Jax and PyTorch

https://www.stochasticlifestyle.com/why-julias-gpu-accelerated-ode-solvers-are-20x-100x-faster-th...
1•leephillips•14m ago•1 comments

Your Feelings Do Not Scale [video]

https://www.youtube.com/watch?v=6Lz8A6R5rbE
1•mooreds•14m ago•0 comments

Claude Code-native marketing consultant

https://github.com/itsbariscan/claude-code-marketing
1•bariscan•15m ago•0 comments

The Path to a New Smartphone Ecosystem

https://www.421.news/gael-duval-nuevo-ecosistema-mobile/
1•maelito•18m ago•0 comments

Artificial intelligence begins prescribing medications in Utah

https://www.politico.com/news/2026/01/06/artificial-intelligence-prescribing-medications-utah-007...
2•randycupertino•19m ago•1 comments

Confucius Code Agent: Scalable Agent Scaffolding for Real-World Codebases

https://arxiv.org/abs/2512.10398
1•erhuve•19m ago•0 comments

The rise and fall of the Sprinkles empire

https://www.latimes.com/business/story/2026-01-11/rise-fall-of-sprinkles-empire-that-made-cupcake...
1•lxm•26m ago•0 comments

Show HN: I built a Chrome DevTools-style panel for Shopify themes

https://github.com/yakohere/shopify-theme-devtools
1•yakohere•26m ago•0 comments

After RAM and SSDs, PSUs and CPU coolers are next in line for price hikes

https://www.notebookcheck.net/After-RAM-and-SSDs-PSUs-and-CPU-coolers-are-next-in-line-for-price-...
3•akyuu•29m ago•0 comments

Show HN: IDE that works with Claude Code and Antigravity subscription

https://nucleus.terramind.com
1•terramind_com•29m ago•0 comments

Write Less with AI

https://writelesswithai.com/
3•3rodents•30m ago•1 comments

Linkers and Loaders

https://www.os2museum.com/wp/book-review-linkers-loaders/
3•dboon•32m ago•0 comments

China-linked cybercrims abused VMware ESXi zero-days a year before disclosure

https://www.theregister.com/2026/01/09/china_esxi_zerodays/
1•Bender•34m ago•0 comments

Show HN: Stewardly - tracking software, renewals, ownership, and audit context

https://usestewardly.com/
1•xyzadam•34m ago•0 comments

QR codes a powerful new phishing weapon in hands of Pyongyang cyberspies

https://www.theregister.com/2026/01/09/pyongyangs_cyberspies_are_turning_qr/
1•Bender•35m ago•0 comments

Linus Torvalds: Stop making an issue out of AI slop in kernel docs

https://www.theregister.com/2026/01/08/linus_versus_llms_ai_slop_docs/
2•Bender•36m ago•0 comments

Re: Datacenters in space. What shall history say of us?

https://github.com/andrewmccalip/thoughts/pull/4/files
2•bluejellybean•38m ago•0 comments

Apple Withdraws iOS 18 Security Updates

https://www.forbes.com/sites/zakdoffman/2025/12/27/apples-iphone-upgrade-hundreds-of-millions-of-...
6•zaltekk•38m ago•1 comments

Acquired Tastes

https://www.nytimes.com/2026/01/10/briefing/acquired-tastes.html
3•paulpauper•40m ago•0 comments