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•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.

Tony Gilroy Accepts Award for Andor: "Fuck the Empire "

https://kottke.org/26/06/tony-gilroy-accepts-award-for-andor-fuck-the-empire-1
1•jay_kyburz•6m ago•1 comments

Demand Is Booming for New No Tech, Repairable Tractor

https://www.404media.co/demand-is-booming-for-ursa-ag-new-no-tech-repairable-tractor/
3•jay_kyburz•9m ago•1 comments

24. Goulash Programming Night

https://entropia.de/GPN24/en
1•throw_await•9m ago•1 comments

Intel bit off more than it could chew with 18A process node

https://www.theregister.com/systems/2026/06/03/intel-bit-off-more-than-it-could-chew-with-18a-pro...
2•WarOnPrivacy•11m ago•0 comments

People with cancer / HIV could lose Medicaid under new work rules, advocates say

https://www.npr.org/2026/06/03/nx-s1-5845097/medicaid-work-requirements-cuts-hiv-cancer
3•littlexsparkee•11m ago•1 comments

Can you go 82-0?

https://www.82-0.com/
1•jxmorris12•11m ago•0 comments

Transparency.org Accuses Trump of Using Anti-Corruption Agenda Against Brazil [pdf]

https://files.transparencycdn.org/images/Letter-from-Transparency-International_PAC_2026-01-12-08...
2•peq42•11m ago•0 comments

DNS-Aid

https://github.com/dns-aid
1•simonpure•16m ago•0 comments

Anchor – Zero-dependency LLM hallucination detector

https://github.com/malaxiya202505https://github.com/malaxiya20250530-glitch/anchor-llm-in-truth
1•hubeiligsng429•17m ago•0 comments

Microsoft Office 2019 for Mac Will Soon Stop Letting You Edit Documents

https://www.macrumors.com/2026/06/02/microsoft-office-2019-for-mac-no-edit-documents/
2•CharlesW•18m ago•0 comments

We Uncovered a Hidden Wealth Transfer in the SpaceX IPO. You're Holding the Bag [video]

https://www.youtube.com/watch?v=sYA-z0Y8WRQ
4•CharlesW•20m ago•0 comments

ADHD: Parallel Divergent Ideation for Coding Agents

https://adhdstack.github.io/
1•pgedge_postgres•22m ago•1 comments

I made a realtime world model for games that works on consumer GPUs

https://www.youtube.com/watch?v=GzQLwAXCKqo
1•abhisoflucidml•23m ago•0 comments

We shrank our TimescaleDB chunks from 30 days to 7

https://tech.wmg.com/why-we-shrank-our-timescaledb-chunks-from-30-days-to-7-07cab8afefc5
1•yask123•25m ago•0 comments

Haiku, a generative music album for Mac OS

https://www.giorgiosancristoforo.net/ooame/
1•CharlesW•26m ago•0 comments

H-1B Crackdown on Indian Workers Erodes a Texas Real Estate Boom

https://www.bloomberg.com/features/2026-dallas-h1b-housing-market/
7•littlexsparkee•27m ago•1 comments

Read vehicle license plates this API gives you 2,500 free reads per month

https://www.platenexus.com/?lang=en
1•androg•29m ago•0 comments

Show HN: Fork of Rsync

https://github.com/benja2998/better-sync
3•benja2998•32m ago•0 comments

SpaceX Sets Price for $1.77T IPO

https://www.cnbc.com/2026/06/03/spacex-ipo-stock-price-roadshow-musk.html
11•gen220•34m ago•0 comments

Roadmap 2026 – Fluxer

https://fluxer.app/blog/roadmap-2026
1•Cider9986•36m ago•1 comments

Stop Location-Tracking Your Friends and Lovers

https://www.nytimes.com/2026/06/03/opinion/location-sharing-surveillance-summer-house.html
4•corny•36m ago•1 comments

Deck Gallery

https://www.deck.gallery
1•handfuloflight•39m ago•0 comments

Know Your Nulls

https://nulls.claytn.dev/quiz/1
1•claytn•41m ago•0 comments

The Environmental Cost of AI: Carbon, Water, and Land Footprints

https://unu.edu/inweh/collection/environmental-cost-of-AIs-Enrgy-Use-Carbon-water-and-land-footpr...
2•SupremumLimit•42m ago•1 comments

Rockstar fit a city into PlayStation 2 memory [video]

https://www.youtube.com/watch?v=cIbCxbrBCys
2•birdculture•43m ago•0 comments

Google's Top DMCA Sender Plateaus at 70M Takedowns per Week

https://torrentfreak.com/googles-top-dmca-sender-plateaus-at-70-million-takedowns-per-week/
2•aa_is_op•45m ago•0 comments

I built a local news website

https://www.thomasmcgee.co/article/i-built-a-local-news-website
2•SunshineTheCat•47m ago•0 comments

Changing Document Version Control Forever

https://github.com/SCCS-HQ/legal-contract-version-control
1•slveer•48m ago•0 comments

Mac-sudo-touchid: When coding agents sudo, use touch ID instead of password

https://github.com/Divide-By-0/macos-sudo-touchid
1•gyush•51m ago•0 comments

Breaking Circular Imports in Python Without Losing Type Safety

https://www.orcaset.com/blog/breaking-circular-imports-in-python-without-losing-type-safety
1•jrdnocs•56m ago•0 comments