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.

MonitorSpider. Uptime, page-change detection and login monitoring in one

https://monitorspider.com
1•hitechist•32s ago•0 comments

Show HN: Web-Performer – Run HTTP/GraphQL Requests from YAML (TypeScript CLI)

https://github.com/Techthos/web-performer
1•alex20465•3m ago•0 comments

Key Volkswagen shareholder pitches producing China car models in Germany

https://www.reuters.com/world/china/key-volkswagen-shareholder-pitches-producing-china-car-models...
1•tosh•8m ago•0 comments

Long March 10 booster cable catch, from the ship

https://twitter.com/CNSpaceflight/status/2075743529985605677
1•hunglee2•10m ago•0 comments

OST to PST Converter

https://blog.perfectdatasolutions.com/ost-to-pst-converter-software-2/
1•tieanderson•13m ago•0 comments

Show HN: Tinyreplay – lightweight session replay without analytics/cloud

https://github.com/kzekiue/tinyreplay
1•kzekiue•13m ago•0 comments

Eliezer Yudkowsky: Will superintelligent AI end the world? [video]

https://www.ted.com/talks/eliezer_yudkowsky_will_superintelligent_ai_end_the_world
1•fagnerbrack•16m ago•0 comments

Companies are scrambling to curtail soaring AI costs

https://www.economist.com/business/2026/06/14/companies-are-scrambling-to-curtail-soaring-ai-costs
18•nlpnerd•21m ago•5 comments

Surgeons Use Teleoperated Humanoid Robots to Perform Live Surgery

https://today.ucsd.edu/story/surgeons-use-teleoperated-humanoid-robots-to-perform-live-surgery-a-...
2•geox•21m ago•0 comments

Show HN: Akshara vision localfirst layout aware OCR and document restorer

https://bgraaj.github.io/akshara-vision/
1•bgraj•21m ago•0 comments

AI is compressing the startup lifecycle, not just development speed

https://www.alexdelivet.com/insights/the-end-of-zombie-startup-land
1•adelivet•22m ago•0 comments

Study: Cerebellum helps AI ignore the ordinary for more efficient computing

https://www.mccormick.northwestern.edu/news/articles/2026/07/ai-gets-a-cerebellum/
3•giuliomagnifico•27m ago•0 comments

Show HN: Open database of 2k IP camera specs (JSON/CSV, CC0)

https://github.com/ch-bas/cctv-camera-database
2•ch-bas•29m ago•0 comments

Your 'App' Could Have Been a Webpage (so I fixed it for you)

https://danq.me/2026/07/09/your-app-could-have-been-a-webpage/
2•MrVandemar•29m ago•0 comments

The brutal, powerful legacy of Threads

https://thebulletin.org/premium/2026-07/the-brutal-powerful-legacy-of-threads/
2•rwmj•30m ago•0 comments

Domain Expiry Grace Period: ICANN Rules, Redemption Period and What It Costs

https://medium.com/@thesuperrepemail/domain-expiry-grace-period-icann-rules-redemption-period-wha...
3•mssblogs•33m ago•0 comments

Prism World-The Workers.try for Free

https://prism-world.pages.dev
3•rrrpro123•36m ago•6 comments

The page of only weblogs (1999 – 2002)

http://www.jjg.net/retired/portal/tpoowl.html
1•theanonymousone•36m ago•0 comments

Cockpit Color Guide

https://www.cybermodeler.com/color/cockpit.shtml
1•theletterf•37m ago•0 comments

Paca v0.9.0: Automation Workflows – let Paca hand off tasks for you

https://github.com/Paca-AI/paca/discussions/268
1•pikann22•38m ago•1 comments

EU threatens Meta with fines over 'addictive' Facebook and Instagram

https://www.bbc.com/news/articles/c8j2dje3pldo
3•breve•38m ago•0 comments

Revenue is just an agreement between friends

https://www.larp.website/
1•bryanrasmussen•39m ago•1 comments

RFID Case Study: Uniqlo Global Stores Applied RFID Tags

https://huayuansh.com/uniqlo-global-stores-applied-rfid-tags/
1•thunderbong•46m ago•0 comments

Make Europe Cool Again

https://jacek.migdal.pl/2026/07/07/make-europe-cool-again
2•matesz•53m ago•0 comments

MCP-customs – NPM audit, but for MCP servers (offline, zero telemetry)

https://github.com/mcpcustoms/mcp-customs
1•mcpcustoms•58m ago•1 comments

High-performance Go to TypeScript transpiler

https://github.com/s4wave/goscript
1•aperturecjs•59m ago•0 comments

MCP server for Hyperliquid trading perps

https://github.com/Dakkshin/hyperliquid-mcp
1•Dakkshin•1h ago•0 comments

A CIRCT (Circuit IR Compilers and Tools) Project Tutorial

https://samuelcoward.co.uk/blog/2026/demo/
1•matt_d•1h ago•0 comments

9lives – Self-healing test runner that refuses to mask real bugs (

https://github.com/Quality-Max/9lives
1•ruslan_qm•1h ago•1 comments

Inside HackerRank's LLM-based Hiring Agent

https://blog.grandimam.com/posts/how-hacker-rank-scores-engineers/
1•grandimam•1h ago•0 comments