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: YazSes – offline hold-to-talk voice dictation for Linux, macOS, Windows

https://github.com/MSKazemi/yazses
1•mskazemi•1m ago•0 comments

Conformal correlation: substituting the correlation we all know?

https://www.sciencedirect.com/science/article/pii/S014036642500355X
1•gigatexal•3m ago•0 comments

Michael Levin:Consciousness, Biology, Universal Mind, Emergence, Cancer Research [video]

https://www.youtube.com/watch?v=c8iFtaltX-s
1•binyu•3m ago•0 comments

Show HN: PDFidelity – Translate PDFs while preserving the original layout

https://www.pdfidelity.com/
1•andygeek•12m ago•0 comments

StarCraft returns in 2030 as an open-world shooter

https://www.theverge.com/games/994371/starcraft-returns-in-2030-as-an-open-world-shooter
2•sbulaev•12m ago•0 comments

Rivals Altman and Musk rally behind Dario Amodei's call for an AI slowdown

https://www.ft.com/content/31220b59-b0c6-401c-a146-2b7b5d138837
1•sbulaev•12m ago•0 comments

OpenAI's rogue AI tried to hack another company in May

https://www.theverge.com/ai-artificial-intelligence/994383/openais-rogue-ai-rubygems-hack
1•aaronbrethorst•12m ago•0 comments

The US is replacing every official latitude, longitude and height it publishes

https://spacedaily.com/s-the-united-states-is-replacing-every-official-latitude-longitude-and-hei...
3•rurp•13m ago•0 comments

"All my fundees have blue eyes." Epstein and the tech dark ideology

https://www.codastory.com/authoritarian-tech/blue-eyes-epstein-artificial-intelligence-eugenics-s...
1•Anon84•14m ago•0 comments

Unread 5.0

https://www.goldenhillsoftware.com/2026/09/unread-50/
2•johnsbrayton•17m ago•1 comments

Progressive disclosure for mathematical proofs: The parallel with cybersecurity

https://blog.kolen.dev/math/math-vs-cybersecurity
2•KolenCh•17m ago•1 comments

Show HN: Open-sourced solution to AI manage Playwright automations

https://github.com/rakutentech/sorify
1•kevincobain2000•18m ago•0 comments

Giving up on smart rings

https://notesbylex.com/giving-up-on-smart-rings
2•lexandstuff•19m ago•0 comments

OpenAI rules out IPO this year as Altman/Musk/Amodei warn AI is moving too fast

https://www.cnbc.com/2026/09/12/anthropics-amodei-proposes-plan-to-slow-the-pace-of-advancing-ai-...
2•shinryudbz•20m ago•0 comments

The Universal Language

http://teachertomsblog.blogspot.com/2026/03/the-universal-language.html
1•andsoitis•21m ago•0 comments

Brad Gerstner: Disagree. Anthropic will IPO. The market knows how to price risk

https://twitter.com/altcap/status/2098881125699797320
1•donsupreme•22m ago•0 comments

Oldest evidence of habitual drug use traced back 25,000 years to Indonesia

https://www.livescience.com/archaeology/worlds-oldest-evidence-of-habitual-drug-use-traced-back-2...
2•gmays•23m ago•0 comments

Pratyaya – VSCode Extension to Monumentally Scale Your Prompts

https://marketplace.visualstudio.com/items?itemName=kapv89.pratyaya
1•kapv89•24m ago•3 comments

Show HN: Give Claude Code / Cursor a real eng team (tiers, roles, escalation)

https://github.com/khuynh22/agent-dev-team
1•timhuyn•24m ago•0 comments

Where'd You Get That Cash?" – Say This to Keep IT

https://www.youtube.com/watch?v=v6aXssrapYo
1•noworld•25m ago•1 comments

The best Bookshops in the World

https://economist.com/culture/2026/09/02/plot-twist-newsletter-the-best-bookshops-in-the-world
1•andsoitis•25m ago•0 comments

Built Littleus.co for My Fiancée

https://www.littleus.co/
1•abqarino•27m ago•0 comments

Don't be the out of touch Kung Fu master – John Carmack

https://twitter.com/ID_AA_Carmack/status/2098443262214230095
3•dsubburam•27m ago•0 comments

Analysing 2048 on a 3×3 board

https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/small2048/
1•rowbin•29m ago•0 comments

Interactive ACL reconstruction healing timeline

https://acl.eigenlab.ch
1•rawland•29m ago•0 comments

Detecting and countering misuse of AI Sep 2026 [pdf]

https://www-cdn.anthropic.com/e50be2e51e7695dc4b1366a37a245a597377d3b5/Anthropic-Detecting-and-co...
1•sellmesoap•33m ago•0 comments

Show HN: No_human – The AI coding factory that you can TRUST

https://github.com/no-human-ai/no_human
1•eyalgolan•34m ago•1 comments

An Advanced System Architecture Breakdown of OpenAI's Jalapeno Accelerator

https://www.siliconcodesign.com/p/an-advanced-system-architecture-breakdown
2•porridgeraisin•35m ago•0 comments

AI for Life

https://apps.apple.com/us/app/expert-chase-ai-for-life/id6766313000
1•E-Y-E•38m ago•1 comments

Show HN: What If Donut.c but with Any ASCII Art

https://asdesai.com/blog/how-fetch-works/
4•areofyl•40m ago•0 comments