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

AI Agent Designs a RISC-V CPU Core from Scratch

https://spectrum.ieee.org/ai-chip-design
1•pseudolus•1m ago•0 comments

Facts versus Understanding

https://www.solipsys.co.uk/ZimExpt/FactsVersusUnderstanding.html?zd24hn
1•ColinWright•2m ago•0 comments

US accuses China of "industrial-scale" AI theft. China says it's "slander"

https://arstechnica.com/tech-policy/2026/04/us-accuses-china-of-industrial-scale-ai-theft-china-s...
2•jnord•4m ago•0 comments

Electrostatics and High Voltage Links

http://amasci.com/static/electrostatic1.html
1•ludicrousdispla•7m ago•0 comments

Cohere and Aleph Alpha Merger

https://www.nytimes.com/2026/04/24/business/cohere-aleph-alpha-ai-merger.html
1•warthog•7m ago•0 comments

Spectro – macOS app to detect fake lossless audio files

https://www.getspectro.app
2•ddtcx•12m ago•0 comments

How Much Information Does Adding Noise Remove?

https://www.testingbranch.com/information_loss_and_noise/
1•mpcsb•22m ago•0 comments

WiFi Monitor for macOS

https://github.com/tenox7/wifimon
1•tenox•25m ago•0 comments

Show HN: My New Projects Website

https://apps.weichart.de
2•surrTurr•28m ago•0 comments

C64 Bass Guitar – Cool to Be Square Wave? (2012) [video]

https://www.youtube.com/watch?v=_kDhpFaf4EY
1•breve•30m ago•0 comments

Fast16: High-Precision Software Sabotage 5 Years Before Stuxnet

https://www.sentinelone.com/labs/fast16-mystery-shadowbrokers-reference-reveals-high-precision-so...
1•ledoge•30m ago•0 comments

Thermoacoustic heat pumps on the verge of commercial breakthrough

https://www.pv-magazine.com/2026/04/23/thermoacoustic-heat-pumps-on-the-verge-of-commercial-break...
2•ablation•32m ago•0 comments

Ask HN: Is Elon Musk Overrated?

2•wasimsk•32m ago•1 comments

RAG pipelines, leaking PII into vector databases and nobody's talking about it

https://comply-tech.co.uk/blog/rag-pipeline-pii-vector-embeddings.html
1•ComplyTechAPI•33m ago•0 comments

I built a kinetic reading engine to eliminate "page fright"

https://kin-txt.com/
2•pauljrad•33m ago•0 comments

My IKEA clock and software design

https://stitcher.io/blog/my-ikea-clock
2•brentroose•34m ago•0 comments

Got the Rust dream job, then AI happened

https://old.reddit.com/r/rust/comments/1stj607/got_the_rust_dream_job_then_ai_happened/
3•mellosouls•37m ago•0 comments

S. Korea police arrest man over AI image of runaway wolf that misled authorities

https://www.bbc.com/news/articles/c4gx1n0dl9no
13•giuliomagnifico•37m ago•0 comments

The Authentication Layer

https://stylman.substack.com/p/the-authentication-layer
1•hosteur•39m ago•0 comments

Analysis and Design of Developable Surfaces for Shipbuilding(1988) [pdf]

https://apps.dtic.mil/sti/tr/pdf/ADA327058.pdf
1•nill0•44m ago•0 comments

Recommender Systems Need the Tobacco Treatment

https://klemenvodopivec.substack.com/p/recommender-systems-need-the-tobacco
1•sunandsurf•48m ago•0 comments

Welcome to Gas City

https://steve-yegge.medium.com/welcome-to-gas-city-57f564bb3607
4•taheris•49m ago•0 comments

Vmsandbox.net: Wire up networks of Linux VMs in the browser

https://vmsandbox.net/
1•x3y1•51m ago•1 comments

GitHub Actions Key, but Resources Allocated to Other Areas

https://github.com/cli/cli/issues/5416
1•birdculture•52m ago•0 comments

Shibuya – Haskell Data Pipelines

https://github.com/shinzui/shibuya
2•Vosporos•53m ago•0 comments

DDD – Data Display Debugger

https://www.gnu.org/software/ddd/
2•mpweiher•54m ago•0 comments

Ask HN: Chrome, Brave, Firefox or Something Else?

4•wasimsk•56m ago•3 comments

I caught an Illegal Russian Spy [video]

https://www.youtube.com/watch?v=xjo0iLssbI8
2•benterix•58m ago•0 comments

Ovie – One view is enough

https://github.com/kyutai-labs/ovie
1•Sebastian_09•59m ago•0 comments

A GUI disk image writer for macOS. For when you're tired of dd

https://github.com/tenox7/dufus/
1•tenox•1h ago•0 comments