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

Show HN: Webflow Skills by 224 Industries

https://224industries.com.au/webflow-skills
1•flashbrew•9m ago•0 comments

The inner workings of TCP zero-copy

https://blog.tohojo.dk/2026/02/the-inner-workings-of-tcp-zero-copy.html
1•mfrw•10m ago•0 comments

Process-Based Concurrency: Why Beam and OTP Keep Being Right

https://variantsystems.io/blog/beam-otp-process-concurrency
2•linkdd•11m ago•0 comments

Chasing the Chip Smugglers

https://www.thewirechina.com/2026/03/01/chasing-the-chip-smugglers-nvidia-ai-chips-china/
1•NN88•11m ago•0 comments

Show HN: Interactive 3D WebGL Globe for real-time daylight cycles

https://github.com/azialle/Oclock
1•codechibi•12m ago•0 comments

Cryptopp-modern 2026.3.0M-KEM/ML-DSA/SLH-DSA and X-Wing hybrid KEM for C++

https://github.com/cryptopp-modern/cryptopp-modern/discussions/18
1•CoraleDev•12m ago•1 comments

Why mathematicians hate Good Will Hunting

https://www.scientificamerican.com/article/why-mathematicians-hate-good-will-hunting/
1•1659447091•14m ago•0 comments

Show HN: Yakki.ai – Say it. Ship it. Increase your output with your voice

https://yakki.ai
2•imazio•14m ago•0 comments

Why Intelligent People Make Others Uncomfortable [video]

https://www.youtube.com/watch?v=GQYxHSw-TCI
1•SMAAART•16m ago•2 comments

Show HN: Visualize Git commit histories as animated force-directed graphs

https://github.com/nshcr/git-commits-threadline
1•wwhxd•19m ago•0 comments

Track what AI models say about candidates and races

https://caucus-ai.com/
1•m-hodges•20m ago•0 comments

I charge for a single-file web app I can't protect from piracy

https://joeldare.com/i-charge-for-a-single-file-web-app-i-cant-protect-from-piracy
2•codazoda•20m ago•1 comments

Show HN: Sabela – A Reactive Notebook for Haskell

https://www.datahaskell.org/blog/2026/03/01/sabela-reactive-haskell-notebooks.html
1•mchav•22m ago•0 comments

Day #15 of Rediscovering FreeBSD

https://tnorlin.se/posts/2026-03-01-day15-of-rediscovering-freebsd/
2•vermaden•23m ago•0 comments

Von Neumann on Consciousness in Quantum Mechanics

https://arxiv.org/abs/2508.15871
1•andsoitis•25m ago•0 comments

Enveil – Encrypted vault that replaces .env files with runtime secret injection

https://github.com/MaximoCoder/Enveil
1•enveil•26m ago•1 comments

Show HN: Dispatcher – simple yet ergonomic coding agent management

https://dispatcher.sh
1•thebuilderjr•28m ago•0 comments

A Day in the Life of an Ensh*ttificator [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
3•johnnyApplePRNG•29m ago•0 comments

Digital products and services are getting worse – but the trend can be reversed

https://www.forbrukerradet.no/news-in-english/digital-products-and-services-are-getting-worse-but...
1•pabs3•29m ago•0 comments

Expert Beginners and Lone Wolves will dominate this early LLM era

https://www.jeffgeerling.com/blog/2026/expert-beginners-and-lone-wolves-dominate-llm-era/
1•twapi•29m ago•0 comments

Is anyone compressing AI models for the 4B people without GPUs or internet?

2•yashpxl•30m ago•0 comments

Ask HN: How long before AI become a deity?

1•WheelsAtLarge•31m ago•0 comments

Politicians are being sold AI-powered 'digital fighters'

https://www.nationalobserver.com/2026/02/24/investigations/logivote-ai-political-messaging
1•moogly•32m ago•0 comments

Show HN: Action Relay – Every App Intent as an MCP Tool

https://tarq.net/posts/action-relay-shortcut-actions-mcp/
2•TarqDirtyToMe•33m ago•0 comments

What do you want in a database client in 2026?

1•m2fauzaan•37m ago•0 comments

Building personal software is now Practical

https://divanv.com/post/age-of-personal-software/
1•freediver•45m ago•0 comments

Computer-generated dream world: Virtual reality for a 286 processor

https://deadlime.hu/en/2026/02/22/computer-generated-dream-world/
11•MBCook•48m ago•0 comments

Show HN: I built open source Gmail organizer because I refused to pay $30/month

https://github.com/Lakshay1509/NeatMail
1•mafia15•54m ago•1 comments

How to Record and Retrieve Anything You've Ever Had to Look Up Twice

https://ellanew.com/2026/03/02/ptpl-197-record-retrieve-from-a-personal-knowledgebase
2•Curiositry•57m ago•0 comments

Thinking Together A platform for problems AI can't solve

https://github.com/ALEX-13-Chen/Thinking---Together
1•alex-thinking•58m ago•1 comments