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.

ebookfs – a 9P eBook library filesystem

https://github.com/ramblingenzyme/ebookfs
1•ramblingenzyme•2m ago•1 comments

ao486: x86-compatible Verilog core implementing all features of a 486 SX (2014)

https://github.com/alfikpl/ao486
1•csmantle•5m ago•0 comments

Challenge GPT and Claude to Run Their Own Lemonade Stands[video]

https://www.youtube.com/watch?v=6Ide5pRLR8Y
1•blackcat201•6m ago•0 comments

Strangers pretrained a language model with HF PRs and a cron job

1•somevyn•15m ago•0 comments

'Naked Dressing' Is Spreading and It's Making Things Awkward

https://www.wsj.com/style/fashion/naked-dressing-hailey-bieber-madonna-d2a1d94b
1•petethomas•23m ago•0 comments

Moochacha

https://codeberg.org/markdascher/moochacha
2•sillysaurusx•24m ago•0 comments

J3blocks

https://codeberg.org/amano.kenji/j3blocks
1•sillysaurusx•25m ago•0 comments

Show HN: Nuking the crap Claude left in the codebase – CCN

https://github.com/jonhardwick-spec/ccn
1•jonhardwickspec•26m ago•0 comments

Running Kimi K3 on MI355X at Better Performance per Dollar Than B300

https://www.wafer.ai/blog/kimi-k3-mi355x
7•ilreb•37m ago•0 comments

Booting Fuchsia's Zircon on a Homebrew RISC-V SoC, on an Artix-7 FPGA

https://www.hdlfactory.com/post/2026/07/19/cocoapuffs-booting-fuchsias-zircon-kernel-on-a-risc-v-...
3•mbStavola•39m ago•0 comments

Sick of waiting for agents to run and then having to debug

1•seafaithless•40m ago•1 comments

Ask HN: Collection of Best Pitch Decks?

3•carbonclaw•41m ago•0 comments

PostgreSQL and the Linux OOM Killer: A Better Default

https://clickhouse.com/blog/strict-memory-overcommit-for-postgres
1•saisrirampur•45m ago•0 comments

Don't credit the LLM

https://isaacsu.com/2026/08/dont-credit-the-llm/
7•isaacsu•50m ago•3 comments

Safeguards Based on Copyable Context Cannot Provide Reliable Safety for LLMs

https://arxiv.org/abs/2607.27951
1•sbulaev•51m ago•0 comments

Karpathy's Pelican

https://twitter.com/karpathy/status/2083749667410727319
2•delichon•52m ago•0 comments

Canadians are leaving the country at record levels. Can anyone solve this?

https://thehub.ca/2026/04/03/can-anyone-solve-canadas-brain-drain-problem/
1•TMWNN•52m ago•0 comments

Simple Outlier Detection in a Kalman Filter

https://gurevich.ca/simple-outlier-detection-in-a-kalman-filter/
1•gregsadetsky•1h ago•0 comments

Futurism says Meta has "almost nothing" to show for AI. The numbers say

https://runtimewire.com/article/futurism-says-meta-has-almost-nothing-to-show-for-ai-the-numbers-...
3•ryanmerket•1h ago•6 comments

AI Models as Commodities

https://www.axios.com/2026/08/01/deepseek-model-cheap-ai-price-war
1•kooi•1h ago•1 comments

Play Neuromancer

https://archive.org/details/msdos_Neuromancer_1988
1•mindcrime•1h ago•0 comments

OpenAI's claimed disproof of Connes' Rigidity Conjecture is invalid [pdf]

https://philarchive.org/archive/NIEWTCv17
30•muglug•1h ago•8 comments

Foundational ternary-model inference and training – CUDA, CPU, BitNet/TQ

https://github.com/Quitetall/tritium
1•jacquesm•1h ago•0 comments

Windows XP Original

https://archive.org/details/windows-xp-all-sp-msdn-iso-files-en-de-ru-tr-x86-x64
1•shrikaranhanda•1h ago•1 comments

ModRetro M64 – Nintendo 64 that plays original cartridges with 4K HDMI

https://modretro.com/products/m64
1•dazzatron•1h ago•0 comments

Task Hounds – a local-first, inspectable multi-agent dev workspace

https://github.com/catowabisabi/task-hounds
1•enomars•1h ago•0 comments

OpenV2K: Working FOSS Software Stack for "Voice to Skull" SDR Pulse Modulation

https://github.com/OpenV2K
1•mike564•1h ago•0 comments

Show HN: I get 25 deep researched ideas with one single prompt

https://github.com/ringlochid/banksia
5•ringlochid•1h ago•2 comments

Large language models can predict the results of social science experiments

https://www.nature.com/articles/s41586-026-10742-x
1•Tomte•1h ago•0 comments

Show HN: CleanSlate – an open-source coding agent for the IDE, CLI, and SDK

https://github.com/TheWariend/CleanSlate
1•maaaz7n•1h ago•0 comments