frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

Show HN: We ran 79 MCP servers in microVMs, only 31 passed

https://usethrone.dev
1•imtaimoorkhan•3m ago•1 comments

Victoria proposes 'demasking' powers to identify anonymous social media accounts

https://www.theguardian.com/australia-news/2026/jul/19/victoria-proposes-social-media-account-ide...
2•sbulaev•5m ago•0 comments

San Francisco Demands Apple and Google Delete AI 'Nudify' Apps from App Stores

https://techcrunch.com/2026/07/17/apple-and-google-ordered-to-purge-nudify-apps-from-app-stores/
1•nyku•6m ago•0 comments

Modern Harcker News (A Chrome extension to make Hacker News look moder)

https://chromewebstore.google.com/detail/modern-hacker-news/gkcajbhedfpgeaeeedhanlljgjbknadk
1•i3130002•8m ago•1 comments

Claude Code uses Bun written in Rust now

https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/
2•tosh•9m ago•0 comments

AI coding agents should optimize for less owned code

https://www.openenergytransition.org/posts/ai-coding-agents-should-optimize-for-less-owned-code
1•lyoncy•9m ago•0 comments

Claude Code now uses the new (unreleased) version of Bun (in Rust)

https://twitter.com/simonw/status/2078692298301587758
1•tosh•10m ago•0 comments

Follow the money, especially in open source

https://www.osnews.com/story/145548/follow-the-money-especially-in-open-source/
2•jandeboevrie•11m ago•0 comments

Show HN: Inertia, Physics in a Terminal

https://inertia-web.github.io/
1•aclfe•11m ago•0 comments

Aging Baby Boomers are America's real labor problem, not AI

https://fortune.com/2026/07/18/us-labor-shortage-ai-baby-boomers-2032/
2•quick_brown_fox•15m ago•0 comments

Free, comprehensive SEO analysis of your website (no signup, 100 checks)

https://www.upstart.quest/en/free-seo-analysis
1•k0ngz1•24m ago•1 comments

Tape notes: looking back at the iconic C81 compilation

https://www.nme.com/features/music-features/c81-tape-notes-3773602
1•jjgreen•25m ago•0 comments

Comprehensive understanding of Beidou short message communication (2024)

https://www.skylabmodule.com/comprehensive-understanding-of-beidou-short-message-communication
2•dizhn•33m ago•0 comments

Async Python File IO Using Uring

https://github.com/meitham/urio
1•meitham•33m ago•0 comments

Using AI makes people less likely to admit they don't know something

https://www.theregister.com/ai-and-ml/2026/07/19/using-ai-makes-people-less-likely-to-admit-they-...
3•defrost•34m ago•0 comments

Systemd, 10 years later: a historical and technical retrospective (2020)

https://blog.darknedgy.net/technology/2020/05/02/0/
1•downbad_•38m ago•0 comments

The Architecture of Absolute Autonomy: Inside the SOBÈK Framework

https://github.com/MichaelBirara/sobek-framework
1•MichaelBirara•41m ago•0 comments

Open Geo skills for geospatial analysis

https://github.com/jaakla/open-gis
1•jaakl•45m ago•0 comments

Show HN: Zlvox – A no-signup suite of developer tools (JSON, Temp Mail, PDF)

https://zlvox.com/blog/why-i-stopped-using-random-online-ai-tools-2026
1•mraadikhokhar•48m ago•0 comments

A full offline voice agent in 1.2 GB of RAM on Android device with FunctionGemma

https://old.reddit.com/r/androiddev/comments/1v07clk/a_full_offline_voice_agent_in_12_gb_of_ram_s...
1•ipotapov•49m ago•0 comments

Design a Url Shortner

https://blog.danwald.me/design-a-url-shortner
1•danwald•53m ago•0 comments

Ask HN: USB-to-WiFi print server for old printers – do you want it?

3•ValdikSS•59m ago•0 comments

Reading Between the Dots: Decoding Hidden Computation Across Filler Tokens

https://arxiv.org/abs/2607.03502
1•user_7832•59m ago•2 comments

Linux Foundation Announces the Intent to Launch the Tokenomics Foundation

https://www.linuxfoundation.org/press/linux-foundation-announces-the-intent-to-launch-the-tokenom...
1•nlpnerd•1h ago•0 comments

Coding too fast to collaborate

https://chrisloy.dev/post/2026/07/19/coding-too-fast-to-collaborate
2•chrisloy•1h ago•0 comments

RedisME:The most user-friendly RDM in the world

https://www.hepengju.com/
1•hepengju•1h ago•0 comments

Node graphs suck for metrics and traces

https://play.mapgl.org
1•vaduga•1h ago•1 comments

Dumber Mini: A Nokia-Style Phone with WhatsApp and Maps

https://dumbermini.com/
2•thunderbong•1h ago•0 comments

Trump, not Iran, is the greatest danger

https://www.theguardian.com/commentisfree/2026/jul/18/donald-trump-iran-world-danger-bombing-us
7•0x54MUR41•1h ago•5 comments

Show HN: AI mock interview tool that scores your answers – free, no signup

https://interviewpracticeai.com
1•BenGallagh•1h ago•0 comments