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.

Apple integrates Claude and Codex into Xcode 26.3 for 'agentic coding'

https://venturebeat.com/technology/apple-integrates-anthropics-claude-and-openais-codex-into-xcod...
1•gurjeet•53s ago•0 comments

MySpace Co-Founder Misses "Serendipity" of Social Media as Documentary Premieres

https://deadline.com/2026/04/myspace-chris-dewolfe-serendipity-social-media-documentary-1236873630/
1•ChrisArchitect•1m ago•0 comments

Show HN: New readme badge builder (need feedback)

https://www.shieldcn.dev/showcase
1•justinlevine•3m ago•0 comments

We Audited 43 Product Hunt Launches for Accessibility. 1 Passed

https://overlayqa.com/blog/product-hunt-accessibility-study/
1•emveras•5m ago•0 comments

Ask HN: Novel crazy ideas on reducing RAM usage

1•sudo_cowsay•9m ago•1 comments

Show HN: Enve – Tiny server that stores per-project environment variables

https://github.com/skorotkiewicz/envd
1•modinfo•12m ago•0 comments

Show HN: rqlite – the fault-tolerant DB built on SQLite – v10.0 released

https://github.com/rqlite/rqlite/releases/tag/v10.0.0
1•otoolep•14m ago•0 comments

Who Owns Tindie?

https://hackaday.social/@tindie/116459166849350034
1•codezero•15m ago•0 comments

The remarkable Renaissance of high-frequency traders

https://www.ft.com/content/83b2a4b3-bdc6-4eb0-a87c-293c383b5994
2•simonpure•20m ago•1 comments

Colorful Nuclide Chart

https://people.physics.anu.edu.au/~ecs103/chart/
1•Eridanus2•24m ago•0 comments

An AI First World (2016)

https://avc.com/2016/04/an-ai-first-world/
2•capitalatrisk•29m ago•0 comments

Time, Money and Health

https://todaypurpose.com/posts/time-money-health/
1•eric_khun•34m ago•0 comments

How AI Will Reshape Computer Systems by 2035

https://cra.org/industry/2026/04/27/how-ai-will-reshape-computer-systems-by-2035-a-jeffersonian-d...
2•hasheddan•39m ago•0 comments

The physics slop that YouTube wants me to make [video]

https://www.youtube.com/watch?v=Cd5EHfRerGI
1•JumpCrisscross•39m ago•0 comments

Show HN: Lightport – open-source AI gateway

https://www.npmjs.com/package/lightport
1•statements•39m ago•0 comments

Body Soul and Spirit

https://www.skool.com/body-soul-and-spirit-9368/about
1•anthonychip•41m ago•0 comments

When robots.txt blocks the crawl, noindex never applies

https://netguard24-7.com/blog/a-field-note-on-claudeai-share-url-discoverability
1•cybrdude•49m ago•1 comments

How I Broke the Anti-Bot Behind Nike, Kick, and Twitch

https://emro.cat/blog/how-i-broke-the-anti-bot-behind-nike-kick-and-twitch/
3•dsekz•49m ago•0 comments

One in every $20 Super Micro earned 2024 to 2025 came from a front company

https://www.thewirechina.com/2026/04/26/inside-job/
1•NN88•49m ago•0 comments

Starship – Test Like You Fly

https://www.youtube.com/watch?v=ANe_HW4X8oc
1•sbuttgereit•50m ago•0 comments

OpenAI Misses Key Revenue, User Targets in High-Stakes Sprint Toward IPO

https://www.wsj.com/tech/ai/openai-misses-key-revenue-user-targets-in-high-stakes-sprint-toward-i...
5•ksherlock•54m ago•1 comments

Offline Agentic Coding

https://www.williamangel.net/blog/2026/04/27/offline-agentic-coding.html
2•datadrivenangel•1h ago•0 comments

I quit drinking for a year

https://dynomight.net/drinking/
36•webninja•1h ago•27 comments

Show HN: Blotter, a live map of LAPD radio activity

https://blotter.fm
1•s_e__a___n•1h ago•1 comments

Show HN: Multi Kanban Task Board and MCP Server

https://github.com/dizlexic/moo-tasks
1•dizlexic•1h ago•0 comments

Show HN: AgentSwift – Open-source iOS builder agent

https://github.com/hpennington/agentswift
7•hpen•1h ago•3 comments

Apple WWDC 2014 scrapped opening video

https://archive.org/details/apple-scrapped-wwdc-14-video
2•igregoryca•1h ago•0 comments

Why isn't AMD's MI300X competitive?

https://newsletter.semianalysis.com/p/mi300x-vs-h100-vs-h200-benchmark-part-1-training
7•colonCapitalDee•1h ago•1 comments

CertHound – open-source SSL/TLS certificate discovery and auto-renewal agent

https://github.com/deadbolthq/certhound-agent
1•keelw•1h ago•1 comments

Fidenae

https://en.wikipedia.org/wiki/Fidenae
1•pinkmuffinere•1h ago•1 comments