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.

Show HN: Another App Store Screenshot Creator, but with high quality images

https://screenbuilder.app/
1•bert2002•2m ago•0 comments

Simple heuristics to run a research group (2022)

https://onlinelibrary.wiley.com/doi/10.1002/pchj.533
1•Tomte•5m ago•0 comments

Stackoverflow 2026 Developer Survey

https://stackoverflow.blog/2026/10/06/the-results-of-the-2026-developer-survey-are-here/
1•marciob•10m ago•0 comments

Show HN: SynoRing – An input ring for smart glasses and everything

https://www.synoring.ai
1•CLCKKKKK•14m ago•0 comments

Spotify Partners With Bookshop.org for physical book sales

https://newsroom.spotify.com/2026-02-05/bookshop-partnership-page-match-announcement/
1•kristianp•22m ago•0 comments

Does Fast Mode Do Anything?

https://doesfastdoanything.com/
2•luu•24m ago•0 comments

Max severity SonicWall SMA1000 flaw now exploited in attacks

https://www.bleepingcomputer.com/news/security/max-severity-sonicwall-sma1000-flaw-now-exploited-...
1•wondersky•26m ago•0 comments

Resident Evil 1995-08-04 Prototype: Full Disk and ASM Disassembly Analysis [video]

https://www.youtube.com/watch?v=NFodrCsNJaI
1•stein1946•27m ago•0 comments

Ukraine hits second major tech site, expanding range of targets inside Russia

https://www.reuters.com/world/europe/russias-yandex-says-second-data-centre-hit-by-drone-attack-2...
2•JumpCrisscross•29m ago•0 comments

Every lawsuit against an AI company

https://ailawsuittracker.com/
2•marciob•30m ago•0 comments

District Six

https://en.wikipedia.org/wiki/District_Six
1•thunderbong•34m ago•0 comments

How to Pronounce English Like a Native

https://youglish.com/
1•Tomte•38m ago•0 comments

The Awesome Power of Constraint Solvers

https://btmc.substack.com/p/the-awesome-power-of-constraint-solvers
1•zdw•39m ago•0 comments

Show HN: Localci, run your GitHub Actions jobs locally before you push

https://github.com/peters/localci
1•petersunde•44m ago•0 comments

Electric two-wheelers offer mobility to some women

https://www.pakistantoday.com.pk/2026/06/17/electric-two-wheelers-offer-mobility-to-some-women-bu...
1•doener•50m ago•0 comments

Gemini API RLS notes: 3.7-flash now routed to 3.8-flash, 3.5->3.6

https://ai.google.dev/gemini-api/docs/changelog
2•cagey•1h ago•1 comments

CortextAI – A private, offline AI workspace for email, notes, tasks, and files

https://cortextai.saposs.com
1•jimmy_lee•1h ago•0 comments

6 Months of Bubbles

https://www.gordonmclean.co.uk/2026/10/09/6-months-of-bubbles/
2•rdmuser•1h ago•0 comments

Optimization is the root of all evil

https://12gramsofcarbon.com/p/the-optimization-theory-of-everything
2•theahura•1h ago•0 comments

RAOP playback to HomePod 2 stopped working after HomePod OS 27 update

https://gitlab.freedesktop.org/pipewire/pipewire/-/work_items/5516
1•chazeon•1h ago•0 comments

Trump approves tiny 'cars of the near future'

https://thehill.com/policy/energy-environment/5635349-donald-trump-approves-tiny-cars/
3•harambae•1h ago•0 comments

SpaceX Raised $111B – It Needs More [video]

https://www.youtube.com/watch?v=9SAgLMahZm4
3•koolhead17•1h ago•0 comments

Assorted things I've been mulling over regarding agents in the economy

https://twitter.com/patrickc/status/2108706907859116280
1•MrBuddyCasino•1h ago•0 comments

Terence Tao on "Math 2.0" [pdf]

https://teorth.github.io/tao-web/slides/math-2-0-caltech-2026.pdf
1•atdt•1h ago•2 comments

Understanding why you'd use Effect TS

https://cm.xyz/blog/understanding-why-youd-use-effect-ts
3•nilsbunger•1h ago•0 comments

The story of utopias by Lewis Mumford

https://www.gutenberg.org/ebooks/75654
2•doener•1h ago•0 comments

Vegetables are half as nutritious as they were in the 1960s

https://www.telegraph.co.uk/business/2026/10/07/vegetable-nutrition-halved-since-60s/
14•WarOnPrivacy•1h ago•13 comments

A persistent accuracy ceiling in automated verbal deception detection

https://arxiv.org/abs/2610.12118
1•sbulaev•1h ago•1 comments

wBlock 3.2 – The next-generation ad blocker for Safari

https://github.com/0xCUB3/wBlock/releases/tag/3.2.0
1•nntwozz•1h ago•0 comments

Ongoing lawsuits allege GLP-1s can cause serious harm; we don't know how often

https://text.npr.org/nx-s1-5996652
1•1659447091•1h ago•0 comments