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.

Clair Obscur has 'Game of the Year" title stripped away over AI use

https://www.thegamer.com/clair-obscur-expedition-33-indie-game-awards-goty-stripped-ai-use/
1•anigbrowl•3m ago•0 comments

Mochi: New window insulation blocks heat, but not your view

https://www.colorado.edu/today/2025/12/11/new-window-insulation-blocks-heat-not-your-view
1•bluehat974•4m ago•0 comments

Ruby's Website Got an Overhaul

https://www.ruby-lang.org/en/
1•psxuaw•13m ago•0 comments

Show HN: Free Roblox GamePlay Video Generator Tool (Inreels.ai)

https://www.inreels.ai/tools/free-roblox-video-maker
1•Onekiran•16m ago•0 comments

Driving Xiaomi's Electric Car: Are We Cooked? [video]

https://www.youtube.com/watch?v=Mb6H7trzMfI
1•baxtr•27m ago•0 comments

How the Resistors Put Computing into 1960s Counter-Culture

https://spectrum.ieee.org/teenage-hackers
1•oldnetguy•29m ago•0 comments

Weight-loss jabs: What happens when you stop?

https://www.bbc.com/news/articles/cn98pdpyjz5o
1•notepad0x90•33m ago•0 comments

Chinese surveillance based on US tech is used to silence Tibetans in Nepal

https://apnews.com/article/china-tibet-nepal-surveillance-technology-silicon-valley-eadac8211c5d0...
3•aspenmayer•37m ago•1 comments

New study reveals that AI cannot write like a human

https://www.ucc.ie/en/news/2025/new-study-reveals-that-ai-cannot-fully-write-like-a-human.html
1•giuliomagnifico•37m ago•0 comments

Stop Losing Intent: Absent, Null, and Value in Rust

https://minikin.me/blog/presence-rs
1•lukastyrychtr•40m ago•0 comments

Show HN: Unrag (open-source) – Add RAG as source files, not dependencies

https://unrag.dev
1•tanaylakhani•45m ago•0 comments

"Koyunbaba Op. 19" (Carlo Domeniconi) Performed by Julia Schüler

https://www.youtube.com/watch?v=xIheg9EM8xM
1•ofalkaed•46m ago•0 comments

Nvidia X Palantir, Global Surveillance, "Pre-Crime" Arrests, & AI [Video]

https://www.youtube.com/watch?v=5lYsO4k7OIY
2•IlikeKitties•50m ago•0 comments

The hidden cost of video-call glitches

https://www.nature.com/articles/d41586-025-03820-z
1•XzetaU8•56m ago•0 comments

Elon Musk's SpaceX bought millions worth of Cybertrucks Tesla can't sell

https://electrek.co/2025/12/18/elon-musks-spacex-bought-tens-of-millions-worth-of-cybertrucks-tes...
4•MilnerRoute•56m ago•0 comments

Show HN: Local and mobile-first all-in-one productivity app, with E2E encryption

https://home.journalit.app/
1•haidoit•57m ago•0 comments

Former DeepMind engineer (possibly) experiences LLM pyschosis

https://xcancel.com/davidmbudden/status/2002549962958401849#m
4•E-Reverance•1h ago•2 comments

Show HN: I built a privacy-first image converter that runs in the browser

https://www.ezfilechanger.com
1•waqaar-ansari•1h ago•0 comments

Japanese companies demand commercial-grade support for open source at no cost

https://www.linuxfoundation.org/research/world-of-open-source-japan-2025
4•nogajun•1h ago•0 comments

Bell Labs 'Unix' Tape from 1974 Dumped to a Tarball

https://discuss.systems/@ricci/115747843169814700
6•jnord•1h ago•0 comments

Open-sourced Jarvis: free,local alternative to Wispr Flow(230 stars in 2 weeks)

https://github.com/akshayaggarwal99/jarvis-ai-assistant
4•akshayaggarwal•1h ago•0 comments

Isengard in Oxford

https://lareviewofbooks.org/article/isengard-in-oxford/
3•lermontov•1h ago•0 comments

Net Neutrality Open Internet Order Set Aside

https://www.dwt.com/blogs/broadband-advisor/2024/06/fcc-reinstates-most-2015-net-neutrality-rules
2•mahirsaid•1h ago•1 comments

"Internet Archive services are temporarily offline."

https://archive.org/details/Heroes_of_Might_and_Magic_II_The_Succession_Wars_USA/
9•burnt-resistor•1h ago•0 comments

The evolution of expendability: Why some ants traded armor for numbers

https://arstechnica.com/science/2025/12/the-evolution-of-expendability-why-some-ants-traded-armor...
1•Archelaos•1h ago•0 comments

Indoor Tanning Makes Youthful Skin Much Older on a Genetic Level

https://www.ucsf.edu/news/2025/12/431206/indoor-tanning-makes-youthful-skin-much-older-genetic-level
6•SanjayMehta•1h ago•0 comments

Tacit: We Know More Than We Can Tell

https://www.stripe.press/tacit
3•walterbell•2h ago•0 comments

What If Readers Like A.I.-Generated Fiction?

https://www.newyorker.com/culture/the-weekend-essay/what-if-readers-like-ai-generated-fiction
3•mitchbob•2h ago•2 comments

Waymo halts service during S.F. blackout after causing traffic jams

https://missionlocal.org/2025/12/sf-waymo-halts-service-blackout/
44•rwoll•2h ago•24 comments

Command-Line Tools for Data Science (2013)

https://jeroenjanssens.com/seven/
1•Tomte•2h ago•0 comments