frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•7mo 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•7mo 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•7mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•7mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Show HN: I used AI and embeddings to build word-chain puzzles with closed loops

https://puzzles.madebynathan.com/chains?date=2026-01-11&utm=hn
1•nathan_f77•15s ago•0 comments

A tool that clusters real user pain from public forum posts

1•Max_bignolet•44s ago•0 comments

Show HN: blaze-keys for zsh – run commands faster via leader-key combos

https://github.com/enhanced-primate/blaze-keys
1•enhancedprimate•2m ago•0 comments

Show HN: Fun things to do with your VM/370 machine

https://rbanffy.github.io/fun-with-old-mainframes.github.io/fun-with-vm370.html
1•rbanffy•4m ago•0 comments

Data on AI Chip Sales

https://epoch.ai/data/ai-chip-sales
1•thunderbong•5m ago•0 comments

Data centers – Don't we have enough already?

https://www.buzzsprout.com/2469780/episodes/18477666-19-data-centers-don-t-we-have-enough-already
1•jammcq•6m ago•1 comments

The AI-powered Veblen economy

https://reducibleerrors.com/the-veblen-economy/
1•simonpure•6m ago•0 comments

Technology Readiness Levels

https://www.nasa.gov/directorates/somd/space-communications-navigation-program/technology-readine...
1•ksec•7m ago•0 comments

Bag of Heavy Groceries

https://ahmeto.com/p/bag-of-heavy-groceries
1•ahmetomer•7m ago•0 comments

Instagram data breach reportedly exposed the personal info of 17.5M users

https://www.engadget.com/cybersecurity/an-instagram-data-breach-reportedly-exposed-the-personal-i...
2•IvanAchlaqullah•8m ago•0 comments

The Abuse Factory in Dublin

https://www.thegist.ie/the-gist-the-abuse-factory/
1•donohoe•8m ago•0 comments

Time and Risk

https://www.tornikeo.com/time-and-risk/
1•tornikeo•8m ago•0 comments

Show HN: Slate Journey – small challenging web game

https://maku.fun/slate-journey
1•me404•8m ago•0 comments

The role of LDL cholesterol in ASCVD

https://peterattiamd.com/the-role-of-ldl-cholesterol-in-ascvd/
1•brandonb•9m ago•0 comments

Universal Commerce Protocol

https://ucp.dev/
1•meetpateltech•10m ago•0 comments

Running LLMs Locally with Docker Model Runner and Python

https://theaiops.substack.com/p/running-llms-locally-with-docker
1•ramikrispin•11m ago•1 comments

SETA: Scaling Environments for Terminal Agents

https://www.camel-ai.org/blogs/seta-scaling-environments-for-terminal-agents
1•frozenseven•13m ago•0 comments

HN: DunSocial – AI scheduler that learns your voice and writes your posts

https://www.dunsocial.com
1•spikey_sanju•15m ago•1 comments

Everything you need to know about act() in React tests

https://howtotestfrontend.com/resources/react-act-function-everything-you-need-to-know
2•howToTestFE•16m ago•0 comments

Show HN: SayNo – Task manager that forces Signal vs. Noise prioritization

https://sayno.dev/
2•crop04•16m ago•0 comments

Building a sync-engine and reactivity system with SQLite

https://antoine.fi/sqlite-sync-engine-with-reactivity
2•goranmoomin•17m ago•0 comments

Kubernetes Was Overkill. We Moved to Docker Compose and Saved 60 Hours

https://medium.com/engineering-playbook/kubernetes-was-overkill-we-moved-to-docker-compose-and-sa...
3•maxloh•20m ago•0 comments

Aaron Swartz died 13 years ago today

10•vitaelabitur•21m ago•0 comments

Good AI, Bad AI – The Experiment

https://willmcgugan.github.io/good-ai-bad-ai/
3•lumpa•22m ago•0 comments

X to open source their recommendation engine

https://gizmodo.com/elon-musk-says-in-one-week-he-will-fully-reveal-why-your-x-timeline-is-like-t...
2•shikaan•22m ago•0 comments

PyTorch on a $6 Computer

https://www.hackster.io/spartacoos/pytorch-on-a-6-computer-efb4ff
2•7777777phil•23m ago•0 comments

Why Growth Feels Like Drag: The Complexity Threshold at 25 Employees

2•niplomatic•24m ago•0 comments

Building the Universal Commerce Protocol

https://shopify.engineering/ucp
2•emschwartz•25m ago•0 comments

From Eden to El Dorado: The Orinoco River's long history of attracting outsiders

https://worldhistory.substack.com/p/from-eden-to-el-dorado
3•crescit_eundo•26m ago•0 comments

AI Teddy Bears: A Brief Investigation

https://www.lesswrong.com/posts/aJAv7ky4LsH65qcx4/ai-teddy-bears-a-brief-investigation
2•surprisetalk•27m ago•0 comments