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

The crisis whisperer: how Adam Tooze makes sense of our bewildering age

https://www.theguardian.com/business/2026/jan/15/the-crisis-whisperer-how-adam-tooze-makes-sense-...
1•Caiero•1m ago•0 comments

Make boxes from dried citrus rind

https://pixey.org/p/confluency/917527402164543260
1•sohkamyung•1m ago•0 comments

PAZ O.S. – A "Bio-Civic" Alignment Framework for Ethical LLMs

https://github.com/carropereziago-blip/PAZ-O.S-GLOBAL
1•PiSounds•3m ago•1 comments

FCC Poised to Exempt Amateurs from Foreign Adversary Reporting Requirements

https://www.arrl.org/news/fcc-poised-to-exempt-amateurs-from-foreign-adversary-reporting-requirem...
1•7402•5m ago•0 comments

FTC Finalizes Order Banning GM from Sharing Driver Data

https://www.pcmag.com/news/ftc-finalizes-order-banning-gm-from-sharing-driver-data?test_uuid=04Ip...
4•CGMthrowaway•9m ago•0 comments

Ask HN: Browser extension vs. native app for structured form filling?

1•livrasand•9m ago•0 comments

IETF@40

https://www.ietf.org/blog/ietf-40/
2•sohkamyung•13m ago•0 comments

Re: Mix: open-source repairable blender

https://github.com/openfunkHQ/reMix
1•rishikeshs•14m ago•0 comments

I thought Grammarly was essential. It wasn't

https://www.makeuseof.com/stopped-paying-for-grammarly-once-found-free-open-source-alternative/
2•chilipepperhott•23m ago•0 comments

I have settled on XChaCha20+Blake3 as the AE suite of choice for my projects

https://mccarty.io/chacha20-blake3/
2•enz•28m ago•0 comments

For profit university offers scholarship to RuneScape skill cape recipients

https://usv.edu/max-achievement-scholarship
1•rickcarlino•28m ago•0 comments

Show HN: Neurop Forge: Live Demo /Real AI Action

https://neurop-forge.onrender.com/demo/google
1•LBWasserman•28m ago•0 comments

"Freedom of Speech" Exists – But "Freedom of Reach" Is a Black Box

1•Ayanonymous•29m ago•1 comments

LimX COSA – Agentic OS for Humanoid Robots (YouTube)

https://www.youtube.com/watch?v=0hIqs3TBb5g
2•_medihack_•30m ago•0 comments

Do Cloudflare's Lava Lamps Do Anything?

https://notnotp.com/notes/do-cloudflares-lava-lamps-actually-do-anything/
2•enz•30m ago•1 comments

Emergent topological semimetal from quantum criticality

https://www.nature.com/articles/s41567-025-03135-w
1•bryanrasmussen•31m ago•0 comments

Eddy Goldfarb – The Man Who Invented More Than 800 Iconic Toys [video]

https://www.youtube.com/watch?v=9sKKan_Q9VU
1•embedding-shape•34m ago•0 comments

US moves to strip sovereign wealth investors of US tax perks

https://www.ft.com/content/de1968ab-3db3-4aa6-8489-35e7cdb81be7
4•alephnerd•35m ago•3 comments

Fix the two-party system with proportional representation

https://agrarianparty.org/platform/peoples-act
4•tedkimble•36m ago•1 comments

Before I forget how I got here

https://richhaase.com/blog/2026-01-14-before-i-forget-how-i-got-here/
2•richhhh•38m ago•1 comments

FAA warns on Central, South American flights over potential military actions

https://www.reuters.com/world/americas/faa-issues-warnings-airlines-central-south-american-flight...
5•toomuchtodo•41m ago•2 comments

AT&T collapse:A single typo that shut down the US long-distance network

https://en.wikipedia.org/wiki/1971_AT%26T_network_switching_system_collapse
2•xthe•43m ago•1 comments

Debian gnome team plans to kill GTK2

https://ludditus.com/2026/01/15/debian-has-its-retards-too-they-plan-to-kill-gtk2/
2•jandeboevrie•45m ago•0 comments

Install.md: A standard for LLM-executable installation

https://www.mintlify.com/blog/install-md-standard-for-llm-executable-installation
9•npmipg•48m ago•17 comments

Show HN: ExprTk High-Performance C++ Math Expression Parser Evaluation Engine

https://www.partow.net/programming/exprtk/index.html
3•exprtk•49m ago•0 comments

What happens to cities when the jobs leave?

https://deadneurons.substack.com/p/what-happens-to-cities-when-the-jobs
1•nr378•49m ago•0 comments

Drawbot: Let's hack something cute (2025)

https://www.atredis.com/blog/2025/9/30/drawbot-lets-hack-something-cute
11•notmine1337•50m ago•4 comments

Show HN: Polymcp Implements Ollama for Local and Cloud Model Execution

2•justvugg•51m ago•0 comments

Custom firmware for x4 eInk device

https://github.com/crosspoint-reader/crosspoint-reader
1•xteink•51m ago•0 comments

Radithor

https://en.wikipedia.org/wiki/Radithor
2•radeeyate•53m ago•0 comments