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

Hours battery life: Dell XPS 14 2026 lasts 3x longer vs. MacBook Air 15 M5

https://www.notebookcheck.net/43-hours-battery-life-Dell-XPS-14-2026-lasts-almost-3x-longer-vs-Ma...
1•politelemon•3m ago•1 comments

Proton Launches Meet, an End-to-End Encrypted Video Conferencing Service

https://www.ghacks.net/2026/04/01/proton-launches-meet-an-end-to-end-encrypted-video-conferencing...
1•Unai•5m ago•0 comments

Starlink satellite 34343 disappears in 'fragment creation event'

https://www.tomshardware.com/service-providers/network-providers/starlink-satellite-34343-disappe...
2•gradus_ad•6m ago•0 comments

Germany Funded Israel's Nuclear Program

https://www.haaretz.com/israel-news/israel-security/2026-03-13/ty-article-magazine/.highlight/his...
1•sharpshadow•10m ago•0 comments

Working Claude Code from Source

https://github.com/777genius/claude-code-working
1•777genius•11m ago•0 comments

A Mysterious Numbers Station Is Broadcasting Through the Iran War

https://www.wired.com/story/a-mysterious-numbers-station-is-broadcasting-through-the-iran-war/
1•thinkingemote•11m ago•0 comments

Hoog: Why LA Can't Build [video]

https://www.youtube.com/watch?v=UF5YCnUuJuQ
1•Klaster_1•14m ago•0 comments

AI chatbots may be too validating for their own good

https://www.techradar.com/ai-platforms-assistants/why-you-shouldnt-ask-chatgpt-for-relationship-a...
1•steveharing1•14m ago•0 comments

Every major economy is trying to ditch Visa and Mastercard [video]

https://www.youtube.com/watch?v=ls-eE8FVM8E
2•mgh2•15m ago•0 comments

Function Calling Harness: Success Rate From 6.75% to 100%, by compiler skills

https://typia.io/blog/function-calling-harness-qwen-meetup-korea/
1•samchon•15m ago•1 comments

AI Snitches - Agentic AI should protect us, not spy

https://www.fightforthefuture.org/actions/ai-snitches/
1•giuliomagnifico•16m ago•0 comments

Japan achieved carbon-neutral fuel breakthrough but paused the project

https://timesofindia.indiatimes.com/science/fuel-made-from-air-japan-achieved-carbon-neutral-fuel...
1•methuselah_in•16m ago•0 comments

Tq-KV – Rust implementation of TurboQuant that works on GGUF models

1•onurgokyildiz•17m ago•0 comments

Check if your machine is affected by compromised axios versions

https://gist.github.com/noritaka88ta/50f20fe043da01eff81cab074d22c9a2
2•noritaka88•17m ago•0 comments

What if AI centers were producing food and jobs?

https://lazybean.github.io/a-shroom/
6•lazybean•17m ago•1 comments

New Afdppp Relaxes Apple App Store Policies

https://www.installaware.com/blog/?p=1005
1•installaware•19m ago•0 comments

Every app you buy has an expiration date

https://productimpossible.com/review/app-expiration-date/
1•lest•19m ago•0 comments

Show HN: RequestHunt – One prompt to install, know what users want while coding

https://requesthunt.com
1•Zephyr0x•19m ago•0 comments

Don't open that WhatsApp message, Microsoft warns

https://www.theregister.com/2026/03/31/whatsapp_message_bad_msi_packages/
2•beardyw•20m ago•0 comments

Roman board game stumped experts for decades – until AI played

https://newatlas.com/history/ancient-roman-boardgame-ai/
1•geox•20m ago•0 comments

Building an outbound sales agent using OpenClaw for less $50

https://manus.im/share/file/0214763b-0bf8-4f11-b15c-d30990810484
1•jflynn2•22m ago•1 comments

Show HN: ShellAgent – Open-source agentic terminal, bring your own API

https://github.com/victorantos/shellagent
2•victorbuilds•25m ago•0 comments

Dead zones of the imagination: violence, bureaucracy, & interpretive labor [pdf]

https://archive.org/download/graeber-dead-zones-imagination-2012/Graeber_Dead_zones_imagination_2...
1•downboots•25m ago•1 comments

Oracle cutting thousands inlayoffs as company continues to ramp AI spending

https://www.cnbc.com/2026/03/31/oracle-layoffs-ai-spending.html
4•bluedino•26m ago•0 comments

Bilt requires access to all unrelated transactions

https://www.bilt.com/terms
1•j-bos•28m ago•1 comments

February in Servo

https://servo.org/blog/2026/03/31/february-in-servo/
3•ravenical•33m ago•0 comments

Show HN: LLM Gateway – Simple API format converter for LLM providers

https://github.com/skorotkiewicz/llm-gateway
1•modinfo•34m ago•0 comments

Show HN: Muscula – Lightweight error monitoring with CLI and MCP

https://www.muscula.com/
1•qzum•34m ago•0 comments

Recordings of OC3 2026 (Open Confidential Computing Conference)

https://www.youtube.com/playlist?list=PLEhAl3D5WVvSqGrHPmtH9aHly3n2bwkYk
2•katexochen•37m ago•0 comments

Zero-Bit Quantization for Neural Network Weight Encoding (ZBQ/1.0)

https://medium.com/@adnanmasood/rfc-9998-zero-bit-quantization-for-neural-network-weight-encoding...
1•AdnanMasood•37m ago•0 comments