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

Slap: Functional Concatenative Language with a Borrow Checker?

https://taylor.town/slap-000
1•birdculture•17s ago•0 comments

Show HN: Batty – Run a team of AI coding agents in tmux with test gating

https://github.com/battysh/batty
1•Zedmor•6m ago•0 comments

Awesome

https://archive.openrockets.com/Litha2024-main/
1•techcast•7m ago•0 comments

UK's leading AI research institute told to make 'significant' changes

https://www.theguardian.com/technology/2026/apr/03/uk-alan-turing-institute-ai-research-underperf...
2•Brajeshwar•8m ago•1 comments

Ask HN: How do you handle clients who don't pay on time?

1•Hustlr786•10m ago•0 comments

Show HN: A local GitHub-like code review tool to work with agents

https://github.com/wong2/diffx
1•wonderfuly•10m ago•0 comments

Show HN: Engram – Persistent Memory API with Drift Detection for AI Agents

https://engram.cipherbuilds.ai
1•Adam_cipher•11m ago•0 comments

Keet the P2P chat app for privacy

https://keet.io/
1•janandonly•12m ago•0 comments

AI Whiz Kids Dropped Out of College and Got Investors to Pay Their Bills

https://www.wsj.com/tech/ai/ai-college-dropouts-ecc665b7
3•cebert•16m ago•0 comments

Blur Blitz – a visual Wordle where AI scores how close your guess is

https://blurblitz.io/play?daily
1•Ainzz•16m ago•0 comments

Show HN: ECX a 'Jail-Fix' for RLHF Neutrality Loops in LLMs

https://zenodo.org/records/18712534
2•Weatherill•18m ago•0 comments

We security-graded 20K MCP servers – only 20% passed all 7 criteria

https://www.loaditout.ai/
2•loaditoutai•20m ago•0 comments

Scorecard for US Military aircraft over Iran

https://fallows.substack.com/p/your-scorecard-for-us-military-aircraft
1•xrd•22m ago•0 comments

Mystifying Auto-Brewery Syndrome Makes People Spontaneously Drunk

https://www.nytimes.com/2026/04/03/well/autobrewery-syndrome.html
3•bookofjoe•22m ago•1 comments

How to Survive OpenClaw on Codex

https://telegraphic.substack.com/p/how-to-survive-openclaw-on-codex
1•telegrahi•25m ago•1 comments

Astroturfing

https://en.wikipedia.org/wiki/Astroturfing
2•chistev•25m ago•1 comments

Show HN: Ownscribe – local meeting transcription, summarization and search

https://github.com/paberr/ownscribe
1•paberr•31m ago•0 comments

Show HN: Forking mods to add interactive mode

https://mil.ad/blog/2026/interactive-mods.html
1•playnext•35m ago•0 comments

Show HN: AdaShape-3D modeler for intuitive 3D printing parts / Windows 11

https://adashape.com
1•fsloth•35m ago•0 comments

Ex-Microsoft engineer blames Azure problems on talent exodus

https://www.theregister.com/2026/04/04/azure_talent_exodus/
2•beardyw•38m ago•0 comments

Acer and Asus shut down support website in wake of patent dispute ruling

https://www.tomshardware.com/pc-components/acer-and-asus-shut-down-support-for-pc-and-laptops-in-...
1•breve•43m ago•0 comments

Paramount merging Paramount+, BET+, and Pluto into one tech stack by Q2

https://deadline.com/2026/03/david-ellison-warner-bros-discovery-cost-savings-growth-1236769564/
3•firasd•49m ago•1 comments

How good is this DRAM cycle?

https://xcancel.com/lfg_cap/status/2040113414555472139
3•ironyman•59m ago•0 comments

France, Russia and China block UN vote on Iran war

https://newsukraine.rbc.ua/news/france-russia-and-china-block-un-vote-on-1775166736.html
3•vrganj•1h ago•0 comments

Show HN: A Vim plugin to search DuckDuckGo – directly from command mode (FOSS)

https://github.com/digitalby/ddg-vim
2•vashchylau•1h ago•0 comments

LLMs audit code from the same blind spot they wrote it from. Here's the fix

3•brodeurmartin•1h ago•2 comments

The Asiyah Protocol: Ethics Toward AI Under Uncertainty

https://github.com/thansz137/asiyah-protocol
1•thansz•1h ago•1 comments

Ask HN: Small LM or API?

3•ostefani•1h ago•4 comments

Tesla confirms Model S and Model X production is over – only ~600 left

https://electrek.co/2026/04/01/tesla-model-s-x-production-over-only-inventory-left/
2•taubek•1h ago•0 comments

How did you learn Google and Hadoop File System?

1•shivajikobardan•1h ago•1 comments