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.

Show HN: Tempo – A stablecoin payments blockchain built with Reth SDK

https://github.com/tempoxyz/tempo
1•criexe•2m ago•0 comments

Show HN: Alloy – Rust library for connecting apps to Ethereum-based chains

https://github.com/alloy-rs/alloy
1•criexe•2m ago•0 comments

Show HN: Lance – Open lakehouse format for multimodal AI datasets

https://github.com/lance-format/lance
1•criexe•2m ago•0 comments

Spritedrop: Persistent Taildrop file receiver for sprites.dev

https://github.com/kylemclaren/spritedrop
1•sea-gold•2m ago•1 comments

Show HN: Design Rails – Complete brand package for AI coding agents

https://designrails.com
1•amitbar•3m ago•0 comments

Command-line Tools can be 235x Faster than your Hadoop Cluster (2014)

https://adamdrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html
1•tosh•4m ago•0 comments

Show HN: Hot Macropad – a user-level Linux macropad daemon using evdev and Bash

https://github.com/nejdetckenobi/hot_macropad
1•nejdetckenobi•4m ago•0 comments

Why Every Brain Metaphor in History Has Been Wrong [video]

https://www.youtube.com/watch?v=pO0WZsN8Oiw
1•measurablefunc•7m ago•0 comments

I have thousands of $$ worth Claude Code credits expiring tomorrow

https://aryanbhasin.com/blog/credits/
1•abrowniejr•7m ago•0 comments

GitLab 18.8 Released

https://about.gitlab.com/releases/2026/01/15/gitlab-18-8-released/
1•bjoko•8m ago•0 comments

Amazon EC2 U7i instances (up to 32 TiB RAM)

https://aws.amazon.com/ec2/instance-types/u7i/
1•tosh•9m ago•0 comments

Show HN: A fast CSV/Parquet viewer built on DuckDB-WASM

https://csv-studio-plus.vercel.app
1•imdms•10m ago•0 comments

ZenRead: Track your reading progress and history

https://github.com/sumant1122/ZenRead
2•paperplaneflyr•10m ago•1 comments

Warren Buffett compares AI risks to those posed by nuclear weapons

https://finance.yahoo.com/news/warren-buffett-compares-ai-risks-to-those-posed-by-nuclear-weapons...
1•ksec•12m ago•0 comments

List of Former Footlights Members

https://en.wikipedia.org/wiki/List_of_former_Footlights_members
1•zeristor•15m ago•1 comments

200 MB RAM FreeBSD Desktop

https://vermaden.wordpress.com/2026/01/18/200-mb-ram-freebsd-desktop/
1•vermaden•21m ago•0 comments

ChaosBSD: FreeBSD drivers go to get beaten into shape before upstream

https://github.com/seuros/ChaosBSD-src
1•ksec•21m ago•0 comments

Stop using MySQL in 2026, it is not true open source

https://optimizedbyotto.com/post/reasons-to-stop-using-mysql/
2•irememberu•22m ago•0 comments

The Walls Are Closing in on Tesla

https://www.planetearthandbeyond.co/p/the-walls-are-closing-in-on-tesla
4•enopod_•23m ago•0 comments

SongKick (YC07) founder: Back UK founders to build the UK's first £1T tech giant

https://www.thetimes.com/sunday-times-100-tech/tech-feature/article/ian-hogarth-interview-ai-tech...
2•colesantiago•25m ago•1 comments

Erdõs Problem #281

https://www.erdosproblems.com/forum/thread/281
2•gone35•29m ago•1 comments

Show HN: Nosi – where AI publishes to the open web (human page and /raw text)

https://nosi.pub/260621
1•billhao•31m ago•1 comments

Prime-C-19 – Replacing Attention with a Physics Pilot on a Riemann Manifold

https://github.com/Kenessy/PRIME-C-19
2•DanielKenessy•34m ago•1 comments

Brand Safety Has Moved Upstream of Media

https://www.aivojournal.org/brand-safety-has-moved-upstream-of-media/
1•businessmate•35m ago•1 comments

Show HN: I built a list of student developer benefits beyond the GitHub Pack

https://resourify.com
1•faceline•36m ago•0 comments

A Social Filesystem

https://overreacted.io/a-social-filesystem/
1•icy•44m ago•0 comments

Show HN: WebTerm – Browser-based terminal emulator

https://www.webterm.app/en
1•DaiAoki•44m ago•1 comments

Built a Skills Database from Lenny's Podcast Episodes

https://sidbharath.com/blog/building-lenny-skills-database/
1•mikasisiki•50m ago•0 comments

Oilwell: Wellness app to help you embrace climate chaos

https://oilwell.app/
1•47282847•53m ago•0 comments

Cutting LLM token Usage by ~80% using REPL driven document analysis

https://yogthos.net/posts/2026-01-16-lattice-mcp.html
4•birdculture•57m ago•1 comments