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.

Iframes that fit their content

https://alfy.blog/2026/10/09/iframe-that-finally-fit-their-content.html
1•ulrischa•2m ago•0 comments

MCP web reader that returns only the relevant passages instead of whole pages

https://github.com/heyyviv/web-shooter
1•heyviv•3m ago•0 comments

Show HN: writui – An encrypted Markdown-based writing app for the terminal

https://writui.com/
1•aakashns•5m ago•0 comments

BellRun: An Agentic Day Trading Game

https://bellrun.com/menu/how-to-play
1•twism•6m ago•0 comments

Codex CLI installs a persistent, self-updating background daemon by default

https://github.com/openai/codex/issues/48195
2•whimblepop•6m ago•0 comments

Publishers Killed the Paperback, Then Blamed Readers

https://jacobin.com/2026/10/books-publishing-reading-mass-market-paperback
3•PaulHoule•8m ago•0 comments

Openbox on NetBSD

https://www.dwarmstrong.org/openbox-netbsd/
1•speckx•8m ago•0 comments

Show HN: Portable Guided Reviews you can send as HTML

https://guides.show/
2•ramoz•10m ago•0 comments

Jobkit – a job-search agent that refuses to lie on your resume

https://github.com/inamiqbal2/jobkit
1•berkovich_mod•11m ago•0 comments

ZFS Object Storage (proof of concept)

https://github.com/openzfs/zfs/pull/19358
2•dabinat•12m ago•0 comments

FCSS 2: Utility CSS that reads like CSS

https://github.com/meerita/FCSS2
1•meerita•12m ago•1 comments

The Punks Plan to Reclaim the Internet from 'Big Tech'

https://www.abc.net.au/news/2026-10-12/reclaiming-the-internet-from-big-tech/106726208
2•laurex•13m ago•0 comments

Jailbreaking My Kindle

https://dotmavriq.life/blog/jailbreaking-my-kindle
1•speckx•13m ago•0 comments

Germany: Investigation opened for sexual assault of 16 years girl using a robot

https://koeln.polizei.nrw/presse/mutmasslich-ferngesteuerter-roboter-fasst-16-jaehriger-ans-gesaess
1•DeepLogin•14m ago•0 comments

Sticky alpine flower confirms Darwin's 150-year-old carnivorous plant prediction

https://phys.org/news/2026-08-sticky-alpine-darwin-year-carnivorous.html
1•maxall4•15m ago•0 comments

Russia was not ready for the data center war it started with Ukraine

https://arstechnica.com/gadgets/2026/10/russia-was-not-ready-for-the-data-center-war-it-started-w...
1•mikelgan•15m ago•0 comments

Show HN: TallyMint – offline personal finance for Windows, plus a web version

https://tallymint.app/
1•tallyMint•15m ago•0 comments

Way to use icons in Web UIs

https://lea.verou.me/blog/2026/icons/
1•myfonj•15m ago•0 comments

Elon Musk Bragged About His Grok Lego Star Wars Haul. Then X Users Punked Him

https://www.wired.com/story/elon-musk-bragged-about-his-grok-lego-star-wars-haul-then-x-users-pun...
1•mikelgan•16m ago•0 comments

Just say no to OpenAI and Anthropic

https://micahflee.com/just-say-no-to-openai-and-anthropic/
37•DeepLogin•17m ago•3 comments

Show HN: Vibecoded top-down game for learning vocab from a Korean webtoon

https://stan-stani.github.io/jeomsim-bangsong/
1•EstanislaoStan•18m ago•0 comments

Responsive Is Joining Databricks

https://www.responsive.dev/
2•zX41ZdbW•19m ago•1 comments

MonsterCloud Owner Charged with Wire Fraud in 'No-Ransom' Scheme

https://www.gadgetreview.com/monstercloud-owner-charged-with-wire-fraud-in-no-ransom-scheme
1•PicardManeuver•20m ago•0 comments

Verification was never just about certification

https://christophspiegel.berlin/appendix/when-to-trust-lean
1•c-roux•21m ago•0 comments

Russia is not prepared for the 'data centre war' it started

https://bsky.app/profile/chriso-wiki.bsky.social/post/3mxgtsqzqjs2t
2•leecoursey•21m ago•0 comments

Most US Adults Aren't Ready for AI to Help with Holiday Shopping, Survey Finds

https://www.cnet.com/tech/services-and-software/ai-holiday-shopping-survey/
1•MC995•25m ago•0 comments

French supermarkets suffer refrigerator shutdown after unprecedented cyberattack

https://www.rnz.co.nz/news/world/1865776/french-supermarkets-suffer-refrigerator-shutdown-after-u...
6•billybuckwheat•26m ago•0 comments

The Ballpoint Pen Game Nobody Could Play, So I Built One

https://intelligenttools.co/blog/ink-armada-ballpoint-pen-canvas
1•austinallegro•26m ago•0 comments

Mark Zuckerberg says Meta reached AI 'frontier' and rejects calls for slowdown

https://www.ft.com/content/fca23e77-be57-4d7e-ae61-74ff299e25cb
5•thm•26m ago•1 comments

Use Bun for Shell Scripts

https://blog.iany.me/2026/02/use-bun-for-shell-scripts/
1•ssernikk•27m ago•0 comments