frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

Show HN: A guided 3D Leonardo da Vinci museum, built in code

https://museumofages.org/w/vinci
1•micstradev•4m ago•0 comments

The operation of Starlink terminals in Ukraine was restricted above 160 kph

https://www.reddit.com/r/UkraineWarVideoReport/comments/1x5kefw/last_night_the_operation_of_starl...
1•jacquesm•9m ago•0 comments

Science Corp implants its vision-restoring chip in its first Stargardt patient

https://techcrunch.com/2026/10/13/science-corporation-implants-its-vision-restoring-chip-in-its-f...
1•bookofjoe•10m ago•0 comments

Ask HN: What is the current trajectory of a senior engineer?

2•guitarlimeo•10m ago•0 comments

Can I offer you a nice CI Pipeline in this trying time?

https://practicalai.co.nz/blog/6.html
1•sgrnz•14m ago•0 comments

Legendary FPS level designer Richard 'Levelord' Gray passes away at 68

https://www.shacknews.com/article/150993/richard-gray-levelord-obituary
2•neversaydie•16m ago•0 comments

Ask HN: Why does Windows Update overrite the Linux boot record?

1•roschdal•17m ago•1 comments

The Birth of Living God

https://vamaai.substack.com/p/the-birth-of-a-living-god-truth-appearance
2•hemantv•20m ago•0 comments

Plasma 6.8 – 30th Anniversary Edition

https://kde.org/announcements/plasma/6/6.8.0/
1•HieronymusBosch•22m ago•0 comments

When Bacteria Become Masons

https://ethz.ch/en/news-and-events/eth-news/news/2026/10/when-bacteria-become-masons.html
1•JeanKage•22m ago•0 comments

Haskell: Origins, evolution, and future. Peyton Jones at JuliaCon Global 2026 [video]

https://www.youtube.com/watch?v=uHlT5sFejXM
1•pjmlp•23m ago•0 comments

Free Website Traffic Checker

https://scopesynthesis.com/
1•tubesmedia•25m ago•0 comments

Basic Atomic Swap Proof of Concept

https://github.com/basicswap
2•dRK-U•26m ago•0 comments

Jane Goodall Supports Moby

https://www.facebook.com/mobymusic/videos/on-the-anniversary-of-jane-goodalls-passing-i-wanted-to...
1•hochmartinez•27m ago•0 comments

Who Is Planting Backdoors in Ledger Crypto Wallets?

https://www.zetter-zeroday.com/who-is-planting-backdoors-in-ledger-crypto-wallets/
3•hacb•27m ago•0 comments

Starlink restricted in Ukraine with no notice

https://malcontentnews.substack.com/p/starlink-restricted-in-ukraine-with
8•vrganj•31m ago•0 comments

RTX 5090 joins AirPods and cigarettes in Macau smuggling seizures

https://videocardz.com/newz/rtx-5090-once-a-consumer-gaming-card-is-now-on-smugglers-menu-alongsi...
2•theanonymousone•32m ago•0 comments

The Economic Complexity of the Western Roman Empire

https://www.michelecoscia.com/?p=2613
3•mikk14•32m ago•0 comments

How to read QR codes by hand (and make bad ones that work) [video]

https://www.youtube.com/watch?v=RYqX8CNgzwM
3•sandebert•32m ago•0 comments

AutoQuant KV: Automatic Mixed-Precision KV Cache Quantization

https://nvidia.github.io/Model-Optimizer/announcements/autoquant-kv.html
2•khalidkhair•35m ago•0 comments

AI isn't just a tool and it might be dangerous

https://waspdev.com/articles/2026-10-14/ai-is-not-just-a-tool-and-it-might-be-dangerous
1•senfiaj•35m ago•0 comments

Amazon pushes up prices across the Internet

https://www.not-ship.com/how-amazon-pushes-up-prices-all-across-the-internet/
4•sighborg•36m ago•0 comments

OpenAI Engineer Allegedly Hid Toilet Paper-Wrapped Mic in Conference Room

https://www.wsj.com/tech/ai/saudi-national-charged-with-bugging-openais-office-7e960aad
2•itisit•38m ago•0 comments

Hive – Coding Agens That Don't Clock Out

https://hive.admir-saheta.com/
2•admirxsaheta•46m ago•0 comments

Why I Wrote PGP (1991, revised 1999)

https://philzimmermann.com/EN/essays/WhyIWrotePGP.html
1•GaryBluto•47m ago•0 comments

DX Garden, DX7 and other FM patches and browser audition

https://dxgarden.ticalun.net
1•jstsch•50m ago•0 comments

Show HN: AI investment agreement review for startup founders

https://www.orchardagentic.cloud/#browse/funding-review
1•iop030290•51m ago•0 comments

Atomising Fraction Addition

https://fivetwelvethirteen.substack.com/p/atomising-fraction-addition
1•yorwba•53m ago•0 comments

Starlink limit hits Ukraine's drones. The battlefield depends on SpaceX

https://defence24.com/geopolitics/starlink-limit-hits-ukraines-drones-the-battlefield-depends-on-...
33•uxhacker•54m ago•15 comments

Accelerating Audio Processing with SpeexDSP Optimizations for RISC-V

https://riseproject.dev/2026/10/13/accelerating-audio-processing-with-speexdsp-optimizations-for-...
5•captain_bender•54m ago•0 comments