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.

Claude Code: The Changelog Nobody Read Is the Most Important One

https://alirezarezvani.medium.com/claude-code-the-changelog-nobody-read-is-the-most-important-one...
1•jungard•1m ago•1 comments

Authsome – open-source local auth proxy for AI agents

https://github.com/manojbajaj95/authsome
1•pkhodiyar•1m ago•1 comments

NIST's NVD Changes: A Wake-Up Call for CVE-Driven Security

https://www.oligo.security/blog/nists-nvd-changes-a-wake-up-call-for-cve-driven-security
1•curmudgeon22•2m ago•0 comments

Auto Polo

https://en.wikipedia.org/wiki/Auto_polo
1•canjobear•2m ago•0 comments

From Convergence to Confidence: Push-Button Verification for RDTs

https://kcsrk.info/verification/rdts/lean/2026/04/28/from-convergence-to-confidence/
1•ibobev•3m ago•0 comments

Superwhisper now integrates with Claude Code

https://superwhisper.com/claude-code
2•Neeeks•4m ago•1 comments

Physicists Discover the Most Complex Forms of Ice Yet

https://www.quantamagazine.org/physicists-discover-the-most-complex-forms-of-ice-yet-20260427/
1•ibobev•4m ago•0 comments

Circular Arc Approximation

https://www.johndcook.com/blog/2026/04/28/circular-arc-approximation/
1•ibobev•4m ago•0 comments

Google and Pentagon reportedly agree on deal for 'any lawful' use of AI

https://www.theverge.com/ai-artificial-intelligence/919494/google-pentagon-classified-ai-deal
1•granzymes•4m ago•0 comments

Arietta: A framework for creating local AI voice assistants w. knowledge, tools

https://github.com/robert-mcdermott/arietta-voice
1•mcdermott•5m ago•0 comments

Lapsus$ – Data Repository

https://lapsus.by/
1•speckx•6m ago•0 comments

Introduction to Quantum Information Science Lecture Notes (2018) [pdf]

https://www.scottaaronson.com/qclec.pdf
1•Tomte•8m ago•0 comments

IMPulse: Open-source incident manager (Grafana OnCall alternative)

https://impulse.bot/
1•ditsi•8m ago•1 comments

Elephants, Goldfish and the New Golden Age of Software Engineering

https://drensin.medium.com/elephants-goldfish-and-the-new-golden-age-of-software-engineering-c336...
1•fridek•9m ago•0 comments

I Built an AI Trading Platform in Six Days. That's Terrifying

https://www.bloomberg.com/opinion/articles/2026-04-28/ai-trading-bots-are-creating-a-major-financ...
1•wslh•10m ago•1 comments

You're probably taking the wrong painkiller

https://asteriskmag.substack.com/p/youre-probably-taking-the-wrong-painkiller
1•speckx•11m ago•0 comments

One common charging solution for all

https://single-market-economy.ec.europa.eu/sectors/electrical-and-electronic-engineering-industri...
2•doener•11m ago•0 comments

The Neuroscience Behind Writing: Handwriting vs. Typing [pdf]

https://pmc.ncbi.nlm.nih.gov/articles/PMC11943480/
1•thunderbong•12m ago•0 comments

Meta Is Preparing to Have to Undo Its Manus Acquisition After China Ban

https://www.wsj.com/tech/ai/meta-is-preparing-to-have-to-undo-its-manus-acquisition-after-china-b...
2•Brajeshwar•12m ago•0 comments

The Best (Query) Plans of Mice and Men

https://ohadravid.github.io/posts/2026-04-query-plans/
1•ohr•13m ago•0 comments

Initial Commit: A Dedication

https://www.khanna.law/blog/initial-commit
3•hkhanna•14m ago•0 comments

Claude for Creative Work

https://www.anthropic.com/news/claude-for-creative-work
3•l1n•15m ago•0 comments

Show HN: CV Mirror – see what 5 ATS parsers do to your CV

https://cv-mirror-web.vercel.app/
1•GS_Projects•16m ago•0 comments

Software engineering may no longer be a lifetime career

https://www.seangoedecke.com/software-engineering-may-no-longer-be-a-lifetime-career/
1•twapi•17m ago•0 comments

Meta, Microsoft look to trim workforces amid heavy AI spending

https://fortune.com/2026/04/23/meta-microsoft-layoffs-job-cuts-not-filling-open-roles-voluntary-b...
2•gmargari•19m ago•0 comments

Show HN: SuperVoiceMode dictation experiment became an AI voice interface

https://voicemode.io/
1•mikezx•21m ago•0 comments

Iran's Meme War Against Trump Ushers in a Future of 'Slopaganda'

https://www.nytimes.com/interactive/2026/04/25/business/iran-trump-israel-war-memes.html
3•ryan_j_naughton•22m ago•0 comments

Scroll-Driven Animations: Exploring the majestic new animation-timeline API

https://www.joshwcomeau.com/animation/scroll-driven-animations/
1•joshwcomeau•23m ago•0 comments

Train collision in Indonesia kills 14 as rescuers work to reach survivors

https://www.theguardian.com/world/2026/apr/28/indonesian-train-crash-fatal
1•Imustaskforhelp•23m ago•0 comments

KiCad Breadboard Builder

https://github.com/kerstensrobin/kicad-breadboard
1•radeeyate•24m ago•0 comments