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.

Washington State Has Racist Laws Making Housing More Expensive

1•silexia•9m ago•1 comments

Show HN: GPT Image 1.5 – High-Fidelity Image Generation and Precision Editing

https://www.gptimageai.org/?i=d1d5k
1•lu794377•10m ago•0 comments

Noclip.website – A digital museum of video game levels

https://noclip.website/
1•ivmoreau•12m ago•0 comments

Chatbot Incognito

https://github.com/Chapoly1305/chatbot-incognito
1•chapoly1305•13m ago•1 comments

My contribution to the idea that we lived in a simulation

1•Gardinengleiter•14m ago•1 comments

Coding Intelligence Asymptotics

https://fi-le.net/asymptotics/
2•fi-le•15m ago•0 comments

Ask HN: Startup launch destroyed by Bolt.new's AI. 10M tokens gone, no response

2•therealcapi•16m ago•2 comments

Using React Transitions for low priority text editor updates

https://handlewithcare.dev/blog/transition_low_priority_editor_updates/
1•smoores•16m ago•1 comments

Largest wildlife overpass in North America now open in Colorado

https://www.cpr.org/2025/12/17/largest-wildlife-overpass-in-north-america-douglas-county/
2•toomuchtodo•19m ago•1 comments

Ask HN: How much do human factors affect production incidents?

1•curious_sre•20m ago•0 comments

Skip the returns, try on any look first

https://www.boughtlook.com/
1•1dolinski•23m ago•1 comments

Workplace 2026 will be increasingly intelligent, interconnected, human-centred

https://economictimes.indiatimes.com/jobs/hr-policies-trends/workplace-of-2026-will-be-increasing...
1•rustoo•24m ago•0 comments

The Shape of the Essay Field

https://www.paulgraham.com/field.html
1•karakoram•25m ago•0 comments

Seeing Like a Bank

https://www.bitsaboutmoney.com/archive/seeing-like-a-bank/
1•bookofjoe•25m ago•0 comments

Paul Graham: Good Writing

https://www.paulgraham.com/goodwriting.html
1•karakoram•26m ago•0 comments

Bruno v3 Preview Release

https://github.com/usebruno/bruno/discussions/6466
1•jicea•27m ago•0 comments

Show HN: Eon – A modular AI architecture for continuous cognitive flow

https://github.com/jeremy-sud/Eon-AI-Project
1•deadmooncr•28m ago•0 comments

To Understand the US in 2026, Travel to Texas

https://www.bloomberg.com/news/features/2025-12-18/travel-to-texas-to-understand-the-us-in-2026
1•DivingForGold•32m ago•1 comments

Ask HN: How do teams remember why infrastructure decisions were made?

1•curious_sre•32m ago•0 comments

Trump Signs Space Superiority Executive Order

https://payloadspace.com/trump-signs-space-superiority-executive-order/
1•decimalenough•32m ago•0 comments

Xbox Boycott and how it's secured a major victory against Microsoft [video]

https://www.youtube.com/watch?v=Ybj10537yi4
1•SockThief•33m ago•0 comments

Compression Is Intelligence: Two Counter-Intuitive Hypotheses

https://medium.com/@zichengxu/compression-is-intelligence-agi-synthetic-data-b9a00ae01e4c
1•lossy_compress•34m ago•0 comments

Show HN: Tree-fs – Turn ASCII directory trees into real files

https://github.com/mgks/tree-fs
1•enigmazi•37m ago•1 comments

Shoelace Knots

https://www.fieggen.com/shoelace/knots.htm
1•martinlaz•43m ago•0 comments

Kimi-K2-Thinking 1T at 28 tok/SEC with MLX tensor parallel

https://twitter.com/exolabs/status/2001817749744476256
1•jeudesprits•47m ago•0 comments

The feds are asking universities to provide lists of Jews

https://religionnews.com/2025/12/11/the-feds-are-asking-universities-to-provide-lists-of-jews-thi...
4•cratermoon•49m ago•0 comments

SMB Direct – SMB3 over RDMA – The Linux Kernel Documentation

https://docs.kernel.org/filesystems/smb/smbdirect.html
1•tambourine_man•50m ago•0 comments

Estonia's police send black Christmas cards to over 800 dangerous drivers

https://news.err.ee/1609889512/estonia-s-police-send-black-christmas-cards-to-over-800-dangerous-...
2•atlasunshrugged•56m ago•0 comments

Mitchell Hashimoto on Feature Design [video]

https://twitter.com/mitchellh/status/2001810354096214059
1•GabrielBianconi•57m ago•0 comments

Mozilla can't stop making Firefox worse [video]

https://www.youtube.com/watch?v=0kCn2f6ngAs
4•da02•57m ago•0 comments