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

Why Subscriptions Make Everything More Expensive [video]

https://www.youtube.com/watch?v=8AKn-zJMIwY
1•mgh2•34s ago•0 comments

Spacecurve: A space-filling curve playground

https://corte.si/posts/spacecurve/announce/
1•cortesi•2m ago•1 comments

Waymo and Cybercab use very different sensors – which wins determines SDV future

https://asteriskmag.com/issues/13/seeing-like-a-sedan
1•bookofjoe•4m ago•0 comments

A true 'hello world' LLM pipeline

https://alganet.github.io/blog/2026-01-08-23-A-true-hello-world-LLM-pipeline.html
1•gaigalas•7m ago•0 comments

Ask HN: How is AppLovin valued at $180B

1•gordon_freeman•8m ago•1 comments

The Darnella test of social media and smartphone regulation

https://heatherburns.tech/2026/01/16/the-darnella-test-of-social-media-and-smartphone-regulation/
1•hn_acker•10m ago•0 comments

Particle IoT acquired by Digi International for $50M

https://www.particle.io/blog/particle-is-being-acquired-by-digi-to-power-the-next-40-years-of-iot...
1•flycatcha•15m ago•0 comments

Thief of $90M in seized U.S.-controlled crypto is gov't contractor's son

https://www.web3isgoinggreat.com/single/lick-theft
3•pavel_lishin•15m ago•0 comments

Ukraine, Sudan, Syria, Yemen, America

https://heatherburns.tech/2026/01/26/ukraine-sudan-syria-yemen-america/
1•hn_acker•15m ago•0 comments

Technology Artisan

https://life-prog.com/tech/technology-artisan/
1•mrngilles•16m ago•0 comments

Trump Says He's Not Concerned with Decline of US Dollar

https://finance.yahoo.com/news/trump-says-not-concerned-decline-205831235.html
5•thomassmith65•17m ago•3 comments

New speech to text tool is better than willow and wispr flow?

https://www.breezevoice.com
1•NalinAtmakur•17m ago•0 comments

Photographer Transformed a Panasonic Lumix G9 II into a Leica Look-Alike

https://petapixel.com/2026/01/09/photographer-transformed-a-panasonic-lumix-g9-ii-into-a-leica-lo...
1•PaulHoule•18m ago•0 comments

NTSB Animation of Flight 5342 2025 Potomac River mid-air collision [video]

https://www.youtube.com/watch?v=LJ10ZOcWuC4
1•antongribok•19m ago•0 comments

Why is the app slow on Pixel 7?

https://binarysky.se/blog/2026/01/why-is-the-app-slow-on-pixel-7/
1•lindskogen•20m ago•0 comments

Sum, Product: A simple-to-understand mathematical paradox on meta-cognition

https://magarshak.com/blog/sum-product-and-the-limits-of-meta-knowledge/
1•EGreg•20m ago•0 comments

40 years later, a new look at lessons from the Challenger disaster

https://www.washingtonpost.com/politics/2026/01/27/challenger-space-shuttle-disaster-40-years/
2•bookofjoe•21m ago•2 comments

Chasing 6 TB/s: an MXFP8 quantizer on Blackwell

https://blog.fal.ai/chasing-6-tb-s-an-mxfp8-quantizer-on-blackwell/
1•amrrs•21m ago•0 comments

How-Dirty-Marketing-Works

https://how-dirty-marketing-works.onrender.com/
1•yashsm01•22m ago•0 comments

We Built Our IVR Scraper (and What Broke Along the Way)

https://phonesupported.dev/blog/how-we-built-our-ivr-scraper-and-what-broke-along-the-way/
1•fast_kalyan•23m ago•0 comments

Chrome, Edge Extensions Caught Stealing ChatGPT Sessions

https://www.securityweek.com/chrome-edge-extensions-caught-stealing-chatgpt-sessions/
2•Bender•26m ago•0 comments

Six JavaScript zero-day bugs lead to fears of supply chain attack

https://www.scworld.com/news/six-javascript-zero-day-bugs-lead-to-fears-of-supply-chain-attack
1•Bender•26m ago•0 comments

The sad and self-inflicted decline of the Washington Post, in one chart

https://www.natesilver.net/p/the-sad-and-self-inflicted-decline
3•JumpCrisscross•27m ago•0 comments

Coding with AI without giving up power

https://medium.com/@sig.segv/coding-with-ai-without-giving-up-power-e0c6ca257ad9
1•fwef64•27m ago•0 comments

Supreme Court to decide how 1988 videotape privacy law applies to online video

https://arstechnica.com/tech-policy/2026/01/supreme-court-to-decide-how-1988-videotape-privacy-la...
2•Bender•27m ago•0 comments

Units of measure in the KCL CAD language

https://www.ncameron.org/blog/kcl-part-1-units/
1•fanf2•27m ago•0 comments

Fun 0.37.62 – The programming language that makes you have fun

https://fun-lang.xyz/2026/01/25/announcing-fun-0.37.62/
1•hanez•28m ago•1 comments

GameStop's original bull is back. CEO Ryan Cohen has Berkshire-like ambitions

https://www.msn.com/en-us/money/savingandinvesting/gamestop-s-original-bull-is-back-ceo-ryan-cohe...
1•petethomas•29m ago•0 comments

How many users can a $50K AI workstation serve? Benchmark data

https://old.reddit.com/r/LocalLLaMA/comments/1qorbdk/dual_rtx_pro_6000_workstation_with_115tb_ram/
2•Blue_Cosma•30m ago•0 comments

AI gives cleaning instructions [video]

https://www.youtube.com/shorts/TP_p5YnRH00
1•6510•31m ago•0 comments