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.

EEVblog: The 555 Timer is 55 years old

https://www.youtube.com/watch?v=6JhK8iCQuqI
1•brudgers•45s ago•0 comments

Show HN: The SkillForge – skills-first credentials for software engineers

https://theskillforge.com
1•roymain•53s ago•0 comments

Show HN: I built an API for agents visiting my personal website

https://mczaykowski.com/articles/smallest-ax-surface
1•selvmvde•2m ago•0 comments

SubQ – a major breakthrough in LLM intelligence

https://twitter.com/alex_whedon/status/2051663268704636937
2•vanni•3m ago•0 comments

WolfPSA: PSA Crypto Compatibility Powered by WolfCrypt

https://github.com/wolfSSL/wolfPSA
1•aidangarske•3m ago•0 comments

Testers – 12 Testers Community

https://play.google.com/store/apps/details?id=com.thardstudio.testers&hl=en_US
1•mdaside•4m ago•1 comments

Ask HN: What tech hobbies are worth exploring?

2•merek•5m ago•0 comments

ArkTunnel, censorship-resistant tunnel that hides behind a real Bitcoin node

https://github.com/st-hannibal/ArkTunnel
1•st-hannibal•5m ago•0 comments

Peter Thiel on the Future of Legal Technology – Notes Essay (2012)

https://www.tumblr.com/blakemasters/37411481044/peter-thiel-on-the-future-of-legal-technology
1•ronfriedhaber•5m ago•0 comments

2026 Puzzle Design Competition: Entries

https://puzzleworld.org/DesignCompetition/2026/
1•robinhouston•5m ago•0 comments

Google, xAI and Microsoft agree to US national security reviews of new AI models

https://www.ft.com/content/c4435dd4-00c0-4270-aab9-3c7ce1ae45f6
1•merksittich•7m ago•0 comments

Show HN: Why Two Identical PDFs Have Different SHA-256 Hashes (How We Fixed It)

https://docs.pdfcanon.com/blog/why-identical-pdfs-hash-differently/
1•napzoom•8m ago•2 comments

Agent Orchestration Models

2•archer423•10m ago•0 comments

Wordy – Solving SEO Overkill with Information Theory and Stochastic Inference

https://wordy.runtime-hub.com/
1•RunTimeZero•11m ago•0 comments

Build you a personal assistant agent for fun and profit

https://techstackups.com/guides/build-personal-assistant-agent/
3•sixhobbits•12m ago•0 comments

Show HN: iOS SimulatorCamera – use your MacBook camera with iOS simulators

https://github.com/Akylas/SimulatorCamera
1•farfromrefuge•13m ago•0 comments

Achieving CVE Remediation in an Era of Escalating Vulnerabilities

https://flox.dev/blog/achieving-rapid-cve-remediation-in-an-era-of-escalating-vulnerabilities/
1•ronef•14m ago•1 comments

Show HN: Open-Source DesignMD Generator

https://www.designmd.supply/
2•ICodeSometimes•14m ago•0 comments

Offline Local AI for Protest

https://apps.apple.com/us/app/outcry-activist-ai-mentor/id6762086768
1•micahwhite•15m ago•0 comments

PageIndex: Vectorless, Reasoning-Based RAG

https://github.com/VectifyAI/PageIndex
1•garyclarke27•15m ago•0 comments

Don't Outsource Your Understanding

https://leehanchung.github.io/blogs/2026/05/01/dont-outsource-your-understanding/
1•freediver•16m ago•0 comments

BlueZ-powered Auracast broadcasting on Genio 700

https://www.collabora.com/news-and-blog/blog/2026/05/05/bluez-powered-auracast-broadcasting-on-ge...
2•losgehts•16m ago•1 comments

Single-layer transformer model "HarEmb" showcasing PII SOTA performance

https://huggingface.co/fblgit/haremb-privacy-filter-opennemo
1•fblgit•16m ago•1 comments

Peter Thiel backs $1B ocean data centre startup powered by waves

https://www.ft.com/content/711ce313-16fb-4a12-b6be-fbed547c8a39
1•1vuio0pswjnm7•17m ago•1 comments

Add Animal Crossing events to your digital calendar

https://sethmlarson.dev/animal-crossing-calendar
1•anujbans•17m ago•0 comments

Why Ancient Egyptian Honey Remains Edible After 3k Years

https://www.openculture.com/2026/05/why-ancient-egyptian-honey-remains-edible-after-3000-years.html
1•Brajeshwar•17m ago•0 comments

Show HN: Flow – Workflow automation that follows you across projects

https://github.com/flowexec/flow
2•Jahvon•19m ago•0 comments

Today I shipped 20 apps and a screensaver

https://blog.gingerbeardman.com/2026/04/17/today-i-shipped-twenty-apps-and-a-screensaver/
1•freediver•19m ago•0 comments

Three Inverse Laws of AI

https://susam.net/inverse-laws-of-robotics.html
6•blenderob•20m ago•0 comments

Agent guardrails are mostly theater

https://github.com/faramesh/faramesh-core
2•brian_r_hall•20m ago•0 comments