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.

Codex downloaded by Xcode 26.4.1 reported as Malware

https://old.reddit.com/r/Xcode/comments/1t8bdf2/codex_downloaded_by_xcode_2641_reported_as_malware/
1•williamstein•12s ago•0 comments

Stop designing your CLI for humans

https://camil-haroune.com/blog/code/cli-agentic-design/
1•1000k•13s ago•0 comments

JetBrains Junie – a yet another AI coding agent

https://www.jetbrains.com/junie/
1•dude250711•1m ago•0 comments

How the Heck Do Solar Panels Work?

https://perthirtysix.com/how-the-heck-do-solar-panels-work
1•dg-ac•1m ago•0 comments

How to bring a company up to speed on AI

https://www.theaithinker.com/p/how-to-bring-a-company-up-to-speed
1•adamfaik•3m ago•0 comments

Out with the JavaScript, in with the HTML

https://blog.jim-nielsen.com/2026/out-with-js-in-with-html/
2•Brajeshwar•4m ago•0 comments

Anthropic says 'evil' portrayal of AI responsible for Claude blackmail attempts

https://techcrunch.com/2026/05/10/anthropic-says-evil-portrayals-of-ai-were-responsible-for-claud...
1•jerezzprime•5m ago•0 comments

I built an open-source tracker for the MV Hondius hantavirus outbreak

https://hondius-watch.com
1•the_tgm•5m ago•0 comments

What's Wrong with AI?

https://kurtis.weblog.lol/2026/05/whats-wrong-with-ai
1•Arch485•6m ago•0 comments

How to not screw up a benchmark

https://planetscale.com/blog/on-benchmarking
1•bddicken•6m ago•0 comments

Can we get an AI to write better?

https://www.strangeloopcanon.com/p/can-we-get-an-ai-to-write-better
1•surprisetalk•9m ago•0 comments

Gyms, Zoos, and Museums: Your documentation should be in-game [video]

https://www.youtube.com/watch?v=5PJRCz0t7yY
1•ai_critic•9m ago•0 comments

The Morse Code Hack That Made an AI Agent Spend $200k [video]

https://www.youtube.com/watch?v=UQ4pSVS_mN0
1•Joel_Mckay•10m ago•1 comments

Show HN: I built Tokenyst to stop getting shocked by Claude Code API bills

https://github.com/jher7/tokenyst
3•herrj•11m ago•0 comments

ICE to Develop Own Smart Glasses to 'Supplement' Its Facial Recognition App

https://www.404media.co/ice-plans-to-develop-own-smart-glasses-to-supplement-its-facial-recogniti...
1•SpyCoder77•12m ago•0 comments

Tiny C Compiler

https://github.com/TinyCC/tinycc
1•Koshkin•12m ago•0 comments

Metformin's real power may be in the gut

https://news.northwestern.edu/stories/2026/05/metformins-real-power-may-be-in-the-gut
1•gmays•13m ago•0 comments

End of Money: Elon Musk, 100 TW of Compute and the New Economics of Abundance

https://twitter.com/cernbasher/status/2053468797978230919
1•simonebrunozzi•13m ago•0 comments

A Chinese court sets limits on the dismissal of a worker replaced by AI

https://english.elpais.com/economy-and-business/2026-05-07/a-chinese-court-sets-limits-on-the-dis...
1•t-3•16m ago•0 comments

Ru-ST: A Rust Toolchain for Atari ST Targets

https://github.com/DominoTree/RuST
1•DominoTree•16m ago•0 comments

G = (4/3)(ℏC/m_e²)α²¹exp(−5α/2) – closed-form match to Newton's G at 1.84 ppm

https://doi.org/10.5281/zenodo.20120946
1•Oldrich333•17m ago•0 comments

Delightfully Boring, Carefully Crafted: The Story Behind Geocodio's Redesign

https://www.geocod.io/code-and-coordinates/2026-05-11-the-story-behind-geocodios-redesign
1•mjwhansen•18m ago•0 comments

Fuck off with your AI that doesn't even understand my job

https://drmollytov.smol.pub/2026-05-08
4•speckx•18m ago•0 comments

Linux kernel maintainers pitch emergency killswitch after CopyFail, Dirty Frag

https://www.theregister.com/oses/2026/05/11/linux-kernel-maintainers-pitch-emergency-killswitch-a...
2•dangle1•18m ago•0 comments

ECP: An open standard for making websites agent-friendly via Content Negotiation

https://EndpointContextProtocol.io
1•devconcierge•18m ago•0 comments

Show HN: I made an iOS app to gauge AI over-reliance and AI psychosis

https://apps.apple.com/us/app/atrophy/id6765778979
1•grahamannett•19m ago•0 comments

The Mathematica Story

https://www.wolfram.com/mathematica/scrapbook/
4•tosh•21m ago•0 comments

Dua Lipa sues Samsung for $15M for allegedly using her image to sell TVs

https://www.nbcnews.com/pop-culture/music/dua-lipa-sues-samsung-15-million-allegedly-using-image-...
7•ripe•21m ago•0 comments

Dev environment. One window. AI woven through everything

https://github.com/raiyanyahya/kit
3•PaulHoule•22m ago•2 comments

Claude Mythos Opens the Cybersecurity Pandora's Box

https://shiftmag.dev/claude-mythos-opens-the-cybersecurity-pandoras-box-9622/
3•senko•23m ago•0 comments