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

Show HN: Generate Static Sites from Videos

1•keepamovin•29s ago•0 comments

An Open Letter to Hetzner

https://old.reddit.com/r/hetzner/comments/1sskwfp/10_outages_in_30_days_an_open_letter_to_hetzner/
1•0x000042•1m ago•0 comments

Why The Split? [Meshcore]

https://blog.meshcore.io/2026/04/23/the-split
2•simonjgreen•1m ago•0 comments

Show HN: JibarOS, a shared inference runtime for Android

https://github.com/Jibar-OS/JibarOS
1•rafaelvalle03•3m ago•0 comments

Train-Before-Test: One Simple Fix That Makes LLM Benchmark Rankings Agree

https://ghzhang233.github.io/blog/2026/03/05/train-before-test/
1•taegee•5m ago•1 comments

Boston marathon's good Samaritan loses race time but wins plaudits

https://www.thetimes.com/us/news-today/article/boston-marathon-runners-video-viral-mv2glcvff
1•petethomas•11m ago•0 comments

Rediscovering the Handcart

https://solar.lowtechmagazine.com/2026/04/rediscovering-the-handcart/
1•jgrodziski•12m ago•0 comments

The Second Wave of the API-First Economy

https://brandur.org/second-wave-api-first
1•birdculture•14m ago•0 comments

Left Behind: A BeOS and Be Incorporated Post-Mortem (2024)

https://macfolkloreradio.com/be/
1•henry_flower•15m ago•0 comments

Ask HN: Where are all the AI disasters?

1•fiftyacorn•16m ago•0 comments

Healthy mother to end life in Swiss clinic after grief at losing son

https://www.thetimes.com/uk/healthcare/article/healthy-mother-to-end-life-in-swiss-clinic-after-g...
1•petethomas•18m ago•0 comments

I made a tool to teach you how to sketch portraits

https://www.sketch-tutor.com
1•blekaj•20m ago•1 comments

The [UK] Green Party is STILL bad at being green

https://takes.jamesomalley.co.uk/p/the-green-party-is-still-bad-at-being-green
1•DamonHD•24m ago•0 comments

OpenAI deprecation notice: upcoming model shutdowns in 2026

https://developers.openai.com/api/docs/deprecations
2•ananthakumaran•24m ago•0 comments

The Ultimate Personal AI Supercomputer – Nvidia DGX Station

https://www.nvidia.com/en-eu/products/workstations/dgx-station/
1•rbanffy•25m ago•0 comments

Release PiClaw v1.8.5 – Colossus: The Forbin Project

https://github.com/rcarmo/piclaw/releases/tag/v1.8.5
1•rcarmo•26m ago•0 comments

Designing Data-intensive Applications with Martin Kleppmann (2026) [video]

https://www.youtube.com/watch?v=SVOrURyOu_U
1•zeristor•27m ago•1 comments

The Markdown Link no. 24

https://md-handbook.com/blog/markdown-link-no-24/
1•wordius•30m ago•0 comments

PHP will get an AOT compiler from the Swoole team in 2027

https://old.reddit.com/r/PHP/comments/1stb4o3/php_will_get_an_aot_compiler_from_the_swoole_team/
2•edmondx•33m ago•2 comments

Show HN: We made 3M jobs searchable on a globe to visualize labor markets

https://map.rezi.ai/index.html
1•jacob_rezi•43m ago•0 comments

MacPulse – macOS System Monitor and Performance Logging

https://www.macpulse.app/
2•juhapekka69•45m ago•0 comments

Show HN: Protovoters -- Free, accessible voter files for democracy

https://protovoters.org
1•reesericci•45m ago•1 comments

Le Glaude Code – A CLI that responds to Git command with quotes from a Fr movie

https://github.com/davidthibault/le-glaude-code
1•david_thibault•48m ago•0 comments

Show HN: Desktop OSD that reads Claude Code's rate limit headers

https://github.com/bozdemir/claude-usage-widget
1•bozdemir•50m ago•0 comments

A robot is beating human pros at table tennis

https://apnews.com/article/ai-table-tennis-robot-ping-pong-sony-995b239945e0dc8d7bea918a850969dc
1•greggoB•50m ago•1 comments

Anthropic is A/B testing removing Claude Code from Pro plans

https://twitter.com/TheAmolAvasare/status/2046724659039932830
2•gagdiez•51m ago•0 comments

TalentRecruit

1•TalentRecruit•51m ago•0 comments

Corral: Measuring how LLM-based AI scientists reason, not just what they produce

https://lamalab-org.github.io/corral/
2•kjappelbaum•54m ago•0 comments

FreeBSD Status Report First Quarter 2026

https://www.freebsd.org/status/report-2026-01-2026-03/
2•ptx•55m ago•0 comments

Texas launches $750M plant, targets growing New World screwworm threat

https://www.chron.com/texas/article/south-texas-plant-screwworm-threat-usda-22214580.php
4•littlexsparkee•56m ago•0 comments