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.

Ask HN: How are you finding work/gigs as a SWE?

1•mariopt•1m ago•0 comments

Kamod Hooks – a Preact hooks library ported from ahooks

https://kamod-ch.github.io/kamod-hooks/
1•zahir777•3m ago•0 comments

Show HN: Estimating what users ask ChatGPT about your company

https://github.com/syntropicsignal-ai/ai-visibility-audit
1•biduskamil•4m ago•1 comments

Ask HN: How should human overrides of AI agent outputs be recorded?

https://github.com/BrightbeamAI/chap
1•arsalanshahid•7m ago•0 comments

Apache Pulsar 5.0.0-M1: Introducing Self-Managing Scalable Topics

https://pulsar.apache.org/blog/2026/06/23/announcing-apache-pulsar-5-0-m1/
1•birdculture•8m ago•0 comments

Cloudflare and major browsers push token system to curb bots

https://www.theregister.com/software/2026/06/22/cloudflare-teams-up-with-big-browsers-to-help-web...
2•pedromlsreis•10m ago•0 comments

Why Phoenix LiveView renders twice on first load

https://elixirdrops.net/d/9mrw2kg3
2•almirsarajcic•12m ago•0 comments

Saw This on R/Developerjobs

https://hiring.cafe/
3•buffer_overlord•14m ago•0 comments

Show HN: Resume Claude Code from a handoff file auto-save, snapshots, PR sharing

https://github.com/sofumel/claude-handoff-revive
1•sofumel•15m ago•0 comments

Bring Twitter Back by SauceyRed

https://addons.mozilla.org/en-US/firefox/addon/bring-twitter-back/
1•t0lo•16m ago•0 comments

You gotta deal with the boring part first

https://arnon.dk/you-gotta-deal-with-the-boring-part-first/
1•arnon•19m ago•0 comments

Flying solar-powered platform could deliver better internet from the air

https://www.technologyreview.com/2026/06/24/1138771/solar-powered-platform-delivers-better-internet/
1•joozio•20m ago•0 comments

Too many R packages: CRAN is inundated with submissions

https://rworks.dev/posts/too-many-R-packages/
2•ionychal•21m ago•0 comments

EmeraldWhale's .git/.env credential scraping is still running, ~2 years on

https://honeylabs.net/blog/credential-scraping-env-and-git
1•Robbedoes•27m ago•0 comments

RDS Extended Support: What It Costs to Stay on EOL Versions

https://www.usage.ai/blogs/aws/reserved-instances/rds/extended-support/
2•amansingh280901•27m ago•0 comments

Show HN: A way to respect all your user feedback and your time

https://www.triagely.net
2•Nair0•27m ago•0 comments

Archive.yesterday: an empirical study of the Streisand effect

https://gyrovague.com/2026/06/24/archive-yesterday-an-empirical-study-of-the-streisand-effect/
1•gyrovague-com•28m ago•0 comments

How long before we stop reading the code?

https://thenewstack.io/future-of-code-reviews/
3•tonkkatonka•32m ago•1 comments

Ask HN: Bootstrap founders, how do you distribute what you build?

1•akashwadhwani35•32m ago•0 comments

Buckets – know which user caused your database bill

https://github.com/Crossdeckhq/buckets-oss
1•Crossdeck•36m ago•0 comments

We know the official GTA 6 price – it's expensive, but not too bad

https://www.techradar.com/gaming/we-finally-know-the-official-gta-6-price-its-expensive-but-not-t...
1•spectral_beel•37m ago•2 comments

Tech Company Ranker

https://tech.bingo/?f=JTdCJTIyeCUyMiUzQSUyMmVzdF92YWx1YXRpb25fdXNkX2IlMjIlMkMlMjJ5JTIyJTNBJTIyZm9...
2•thisismytest•44m ago•0 comments

Show HN: Execlave – AI Agent Management Platform for Governance and Enforcement

https://www.execlave.com
1•rishitmavani•44m ago•0 comments

Medicine: Country Surgeon (1932)

https://time.com/archive/6748492/medicine-country-surgeon/
1•EndXA•45m ago•0 comments

LastPass confirms data breach after hacker compromises supply chain

https://www.techradar.com/pro/security/lastpass-confirms-data-breach-after-hacker-compromises-sup...
3•mistic92•45m ago•1 comments

ChatGPT Exporter – Export Conversations to PDF, Word, Google Docs

https://chromewebstore.google.com/detail/chatgpt-exporter-save-cha/ploaaddkflkapjfbfapmkmkefigedefp
2•quysala12•46m ago•1 comments

The Emergence of a New Paedophile Panic

http://guerrillademocracy.blogspot.com/2026/06/the-emergence-of-new-paedophile-panic.html
2•GDNews503AD•46m ago•0 comments

Show HN: How Loud Is My Hotel?

https://noise.vantezzen.io/
2•bennett_dev•48m ago•1 comments

Fate – a joke horoscope generator utility for Linux pids

https://github.com/cjd8/fate
2•cjd8•49m ago•2 comments

Carspreading' could lead to extra 2,600 crash deaths a year by 2040, study finds

https://www.theguardian.com/environment/2026/jun/24/carspreading-vehicle-size-crash-deaths-study
3•mellosouls•49m ago•0 comments