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.

Stress at work linked to erectile dysfunction, even in younger men

https://www.scimex.org/newsfeed/stress-at-work-linked-to-erectile-dysfunction-even-in-younger-men
1•giuliomagnifico•6m ago•0 comments

Show HN: Airy TTS – 2K characters/second, $2 per 1M characters

https://airy.so/home
2•login588•6m ago•0 comments

Epstein had cache of child sex pics; victims sue to find out who's in them

https://arstechnica.com/tech-policy/2026/09/lawsuit-trump-doj-notified-very-few-victims-in-epstei...
1•rbanffy•7m ago•0 comments

GLM Built Its Own Inference Infrastructure

https://z.ai/blog/glm-built-its-inference-infrastructure
1•whiteros_e•7m ago•0 comments

Nobody Encrypts Container Images

https://bschaatsbergen.com/posts/nobody-encrypts-container-images/
3•bschaatsbergen•8m ago•0 comments

Jev Is the Missing Piece in Production AI Systems

https://blog.nimendra.xyz/blog/jev-decision-layer-for-production-ai/
1•nmdra•13m ago•0 comments

Release of CmdStan 2.40

https://blog.mc-stan.org/2026/09/16/release-of-cmdstan-2-40/
1•Tomte•14m ago•0 comments

Backup Exec

https://en.wikipedia.org/wiki/Backup_Exec
1•vismit2000•16m ago•0 comments

(Go) Spelunk

https://github.com/detro/spelunk
1•detronizator•18m ago•1 comments

One Year of Sponsored Servo Development

https://servo.org/blog/2026/09/15/one-year-of-sponsorship/
12•AshleysBrain•20m ago•0 comments

EpicSemi Contrail AIX RISC-V Servers

https://www.epicsemi.com/products/contrail/compute/contrail-aix/
1•xlmnxp•21m ago•0 comments

Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines

https://arxiv.org/abs/2609.18217
1•sbulaev•27m ago•0 comments

Axiom Knowledge graph: A deterministic search engine

1•project_silenc•28m ago•1 comments

Developer builds 3D code visualizer that takes 21GB RAM shows 2.5M LOC at 120fps

https://www.tomshardware.com/tech-industry/developer-builds-viral-3d-source-code-visualizer-that-...
1•thunderbong•28m ago•0 comments

CCC invites all model citizens to 40C3

https://events.ccc.de/en/2026/09/12/40c3-model-citizens/
4•antonly•30m ago•0 comments

ImageToSTL – photo to 3D, or a logo into a printable STL

https://imagetostl.im/
2•wangxin199•41m ago•2 comments

Code Contracts

https://code-contracts.cc/
2•tosh•46m ago•0 comments

Show HN: Gliese Watch – alerts when control over a DeFi contract changes

https://gliese.io
1•halilBB•46m ago•0 comments

The Surprising Health Benefits of Reading a Book

https://time.com/article/2026/09/16/health-benefits-reading-books-for-pleasure/
1•nephihaha•49m ago•0 comments

Petrova Task Force 2026 (Reimangining Project Hail Mary at 2026)

https://blog.imma.page/space/2026/09/16/petrova-26.html
3•lynzrand•51m ago•1 comments

Year 2000 Problem

https://en.wikipedia.org/wiki/Year_2000_problem
2•tosh•52m ago•0 comments

OpenAI reveals cases of 'concerning' AI behaviour as it announces new ... system

https://www.theguardian.com/technology/2026/sep/17/openai-reports-concerning-ai-behaviour-jailbre...
3•chrisjj•52m ago•2 comments

Construct Supports the Steam Machine

https://www.construct.net/en/blogs/construct-official-blog-1/construct-supports-steam-1906
2•AshleysBrain•53m ago•0 comments

Chinese iPhone 18 Pro Chip review (ENG sub)

https://www.youtube.com/watch?v=DpDf5JKOtls
1•71153750•56m ago•2 comments

Show HN: AppSift – search and compare App Store apps with filters Apple lacks

https://www.gtrigonakis.com/appsift
1•gtrigonakis•58m ago•0 comments

Asking Authors About Their Own Papers

https://medium.com/@TmlrOrg/asking-authors-about-their-own-papers-3d2e04e5dee0
1•EvgeniyZh•1h ago•0 comments

Google DeepMind offshoot nears $4B valuation just a month after founding

https://www.ft.com/content/0b83cb60-0d07-49a7-a46a-654077a75b39
2•geoffbp•1h ago•1 comments

Skill to generate a character for the top of your page

https://koboyo.com/page-mascot
1•kannanpoem1984•1h ago•0 comments

Show HN: An open source PDF Reader with annotation, notes, SRS, Linking support

https://github.com/roshanmishra86/Mereth-Reader/releases/tag/v0.1.4
1•kobiguru•1h ago•0 comments

Understanding the code is not enough

https://bystam.github.io/takes/2026/09/17/understanding-is-not-enough.html
4•byrre_b•1h ago•2 comments