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.

Inadvertently becoming a slop contributor to a Rust core library

https://ianm199.github.io/personalSite/blog/inadvertently-becoming-a-slop-contributor-to-rust-libc/
1•ianm218•1m ago•0 comments

Magnolias Are So Old That They're Pollinated by Beetles, Not Bees

https://mymodernmet.com/magnolia-ancient-flowers-beetles/
2•speckx•3m ago•0 comments

Dissecting Claude Science

https://feitong.phd/essays/dissecting-claude-science/
1•planeyang•4m ago•1 comments

Through the Prompt Window

https://pprunty.substack.com/p/6-through-the-prompt-window
1•pprunty97•5m ago•0 comments

The Java Ring

https://yamad.jp/en/writings/java/ring/about.htm
1•thinkingemote•5m ago•0 comments

I built a privacy-first,US financial calculator(no signups, no server uploads)

https://calcsuitehub.com/
1•faldix•5m ago•0 comments

Kata Containers 4.0.0 Brings You a New Rust Runtime

https://katacontainers.io/blog/kata-containers-4-0-0-release-overview/
2•_ananos_•5m ago•0 comments

Building an AI-orchestrated publishing workflow for a long-form writing project

1•tmuhlestein•6m ago•0 comments

How Antithesis Turned exe into a Sandbox for Agentic Software Tests

https://blog.exe.dev/how-antithesis-turned-exe-into-a-sandbox-for-agentic-software-tests
1•ronfriedhaber•7m ago•0 comments

AI's cheatin' heart will make you weep

https://www.theregister.com/ai-and-ml/2026/07/21/ais-cheatin-heart-will-make-you-weep/5275784
2•Bender•7m ago•0 comments

Elon Musk says Grok will make 'historically accurate' Odyssey film by year-end

https://www.cnn.com/2026/07/22/tech/musk-grok-odyssey-adaptation-scli-intl
2•shrike•7m ago•0 comments

The Internet Is Starting to Card Everyone. Startups Are Making Millions from It

https://www.inc.com/georgia-fearn/the-internet-is-starting-to-card-everyone-these-startups-are-ma...
1•speckx•9m ago•0 comments

Hwatu: A daemon-based WebKit browser with 13ms window spawns

https://github.com/hongnoul/hwatu
1•hongnoul_•10m ago•0 comments

Show HN: Vifu – A runtime and visual workflow for building AI-native games

https://github.com/vifudotdev/vifu
1•DR_MING•11m ago•1 comments

TTFT benchmark: LLM Gateway vs. OpenRouter (Claude-haiku-4.5, 150 runs)

https://gist.github.com/smakosh/0ca360230fb267d375b91dbd50548b67
1•steebchen•12m ago•0 comments

Thoughts on Integers (2023)

https://blog.xoria.org/integers/
1•mpweiher•12m ago•0 comments

Slash Pages

https://slashpages.net/
2•birdculture•14m ago•0 comments

Show HN: Interact with inactive macOS windows without selecting the window first

https://github.com/dainank/apple-click-through
1•dainank•14m ago•0 comments

Show HN: LiteRadar – Fast, ad-free, 60fps weather radar

https://literadar.com
2•peetle•15m ago•1 comments

Productionizing research is a boundary problem

https://rpc3.dev/posts/productionizing-research-is-a-boundary-problem/
1•rpc3•16m ago•0 comments

How to build interactive experiences with canvases

https://github.blog/ai-and-ml/github-copilot/how-to-build-interactive-experiences-with-canvases/
1•Brajeshwar•16m ago•0 comments

Show HN: CoreBase – Governed AI Agents for your product, on your customers' data

https://corebasehq.com
1•y11t0•17m ago•1 comments

Natural raises $30M to reinvent payments for AI agents – and take on Stripe

https://thenextweb.com/news/natural-series-a-agentic-payments-ai-agents
2•krrishd•17m ago•0 comments

Google Commits $40M to the Genesis Mission – Google Cloud Blog

https://cloud.google.com/blog/topics/public-sector/accelerating-frontiers-of-scientific-discovery...
1•xnx•18m ago•0 comments

Google ordered to open Android and Search to rivals in Europe

https://www.theverge.com/policy/966438/eu-google-android-ai-interoperability-search-data-dma
1•smugma•21m ago•1 comments

When Listening to Music Was a Team Sport

https://www.nytimes.com/2026/07/21/arts/design/art-of-noise-cooper-hewitt-smithsonian-design.html
2•reaperducer•22m ago•0 comments

Show HN: Codify – Terraform for Developer Environments

https://codifycli.com/
3•kevinwang5658•23m ago•4 comments

OSS ChatGPT WebUI v4 – Projects, Agent Profiles, Server Tools, 1-Click Sharing

https://llmspy.org
1•mythz•23m ago•0 comments

European Commission: Guidance to Google for AI Interoperability on Android

https://daringfireball.net/2026/07/ec_google_guidance_android_ai_and_search_sharing
1•smugma•23m ago•0 comments

Samsung Galaxy Z Fold8 Ultra, Fold8 and Flip8

https://news.samsung.com/global/samsung-galaxy-z-fold8-ultra-fold8-and-flip8foldables-perfected-f...
1•jerryslm•25m ago•0 comments