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.

Ben Forta - The UK's Social Media Ban: Necessary, and Bound to Fail

https://forta.com/blog/the-uks-social-media-ban-necessary-and-bound-to-fail
1•rmason•2m ago•0 comments

A new frontier in generative genomics with Omnii

https://www.radicalnumerics.ai/blog/omnii-health-preview
2•lebovic•5m ago•0 comments

Looking for a front end dev to help me build a math website

1•marysminefnuf•5m ago•0 comments

Banned Book Library in a Wi-Fi Smart Light Bulb

https://www.richardosgood.com/posts/banned-book-library/
4•sohkamyung•13m ago•0 comments

Show HN: Subagent-fleet – AI coding subagents across local Ollama machines

https://pypi.org/project/subagent-fleet/
1•akarnam37•13m ago•0 comments

67% of AI-generated commands are unsafe. We tested it

https://www.golproductions.com/blog/we-tested-gemini-ai-agent-67-percent-commands-were-unsafe
1•golproductions•14m ago•0 comments

American Express: Cell-Based Architecture for Resilient Payment Systems

https://americanexpress.io/cell-based-architecture-for-resilient-payment-systems/
3•birdculture•14m ago•0 comments

The efficiency-gain illusion: People underestimate the rate of AI use

https://arxiv.org/abs/2605.22687
2•Anon84•15m ago•0 comments

Build Compliant AI Agents with Stateful Stream Processing

https://www.confluent.io/blog/compliant-ai-agents-stateful-stream-processing/
1•manveerc•17m ago•0 comments

Show HN: Fish anything – a chill game using small models

https://build-small-hackathon-llm-fishing.hf.space
1•reuzed•18m ago•0 comments

Prediction and Entropy of Printed English - Claude Shannon (1950) [pdf]

https://www.princeton.edu/~wbialek/rome/refs/shannon_51.pdf
2•consumer451•18m ago•0 comments

The Official Akismet PHP SDK

https://akismet.com/blog/introducing-the-official-akismet-php-sdk/
3•gslin•25m ago•0 comments

Swedish parliament abolishes permanent residence visas for migrants

https://www.riksdagen.se/en/news/articles/2026/jun/9/permanent-residence-permits-to-be-abolished_...
17•CGMthrowaway•27m ago•9 comments

When Did White-Collar Work Start to Look So Bleak?

https://www.newyorker.com/magazine/2026/06/22/mutiny-noam-scheiber-book-review-yuppies-dylan-gott...
4•littlexsparkee•27m ago•2 comments

Andy McLean: Rapidus MoU Boosts U.K. Access to 2-Nm Tech- EE Times

https://www.eetimes.com/andy-mclean-rapidus-mou-will-help-british-innovators-access-2-nm-technology/
2•rbanffy•31m ago•0 comments

Meta Employees Hate Zuckerberg's Plan for a Companywide AI Hackathon

https://www.wired.com/story/meta-employees-absolutely-hate-mark-zuckerbergs-hackathon-idea/
7•cdrnsf•35m ago•0 comments

Ask HN: Why did you open source your project?

4•david_shi•35m ago•1 comments

Micro Radar: a tiny open-source flight radar for your desk

https://github.com/AnthonySturdy/micro-radar
4•asturdy•37m ago•1 comments

You Can't Have Both Democracy and Billionaires

https://www.currentaffairs.org/news/you-cant-have-both-democracy-and-billionaires
15•jacquesm•39m ago•1 comments

Justice Department Decision to Allow Paramount Deal Surprised Investigators

https://www.wsj.com/business/media/justice-department-decision-to-allow-paramount-deal-surprised-...
2•JumpCrisscross•40m ago•0 comments

Qualcomm in Talks to Purchase Tenstorrent

https://www.reuters.com/technology/qualcomm-talks-buy-tenstorrent-information-reports-2026-06-15/
3•milleramp•42m ago•0 comments

Openfootmanager: Open-source football management simulation game

https://github.com/openfootmanager/openfootmanager
2•nateb2022•43m ago•0 comments

Show HN: AltiVerse: What If SIM, see different decisions affect an environment

https://github.com/LeoTheAIDev/Altiverse
4•leoTheCoderrr•44m ago•0 comments

SMTP Relay with Web Dashboard

https://github.com/toinbox/simplerelay
2•toinbox•44m ago•0 comments

Satellite Tracker 3D

https://satellitetracker3d.com/track?norad-id=44800
3•ColinWright•46m ago•0 comments

San Francisco Weighs PG&E Takeover Amid Soaring Utility Costs

https://www.kqed.org/news/12081882/san-francisco-has-been-trying-to-leave-pge-for-100-years-will-...
12•cdrnsf•50m ago•1 comments

Show HN: Phlox – Open-source self-hosted agentic web chat

https://github.com/robert-mcdermott/phlox
2•mcdermott•51m ago•1 comments

Show HN: A Framework with a Possible Application to Hybrid Cryptography

https://zenodo.org/records/20613435
3•A19dammer91•51m ago•0 comments

AWS WAF now lets content owners charge AI bots for access

https://aws.amazon.com/blogs/aws/aws-waf-adds-ai-traffic-monetization-capability-to-help-content-...
7•mak8•52m ago•0 comments

Why I Email Complete Strangers

https://www.goodinternetmagazine.com/why-i-email-complete-strangers/
17•karakoram•53m ago•3 comments