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

A proxy that cuts LLM API bills by routing simple tasks to cheaper models

1•alex_1002•11s ago•0 comments

Don't Become an Engineering Manager

https://newsletter.manager.dev/p/dont-become-an-engineering-manager
1•flail•1m ago•0 comments

Focused YouTube

https://chromewebstore.google.com/detail/focused-youtube/nfghbmabdoakhobmimnjkamfdnpfammn
1•Brysonbw•2m ago•0 comments

Israel hacked Tehran traffic cameras to track Khamenei ahead of assassination

https://www.timesofisrael.com/report-israel-hacked-tehran-traffic-cameras-to-track-khamenei-ahead...
1•mhb•3m ago•0 comments

Show HN: Shell toolkit for custom Android OS builds on 100GB+ source trees

1•thinkbigx•3m ago•0 comments

15 Years in Offensive Security – Are We Wasting Too Much on Manual Pen Tests?

https://attackvector.tech
1•pallaxa•3m ago•1 comments

Show HN: I built an expense tracker where no data ever touches a server

https://github.com/ankitpandey2708/kharchakitab
1•ankitpandey2708•4m ago•0 comments

Gravitational wave detectors affected by daylight savings time

https://phys.org/news/2025-09-gravitational-detectors-affected-daylight.html
1•speckx•4m ago•0 comments

Designing the Perfect ID: Marrying UUIDv7, Stripe Prefixes, and ULID

https://blog.alcazarsec.com/tech/posts/better-database-ids
1•alcazar•4m ago•0 comments

Social Media is in decline. I'm still betting on ActivityPub

https://raphael.lullis.net/adapt-activitypub/
1•rglullis•4m ago•0 comments

Your AI Slop Bores Me

https://www.youraislopbores.me/
1•radeeyate•4m ago•0 comments

Optimizing Delta-Step on the GPU

https://www.execfoo.de/blog/deltastep_shader.html
1•softwarehippie•4m ago•0 comments

Show HN: Modembin – A pastebin that encodes your text into real FSK modem audio

https://www.modembin.com
1•a13x57•5m ago•0 comments

DHS Single Ottoman: Dust Sheet Protection for Your Stored Items

https://dreamhomestore.co.uk/collections/ottoman-beds
1•susanwicks26•6m ago•1 comments

PatternBase – visual permaculture garden designer with climate matching

https://pattern-base.com
1•james-pb•7m ago•1 comments

Video: Waymo seen blocking first responders during West Sixth shooting

https://www.kxan.com/news/austin-mass-shooting/video-waymo-seen-blocking-first-responders-during-...
1•breaker-kind•7m ago•0 comments

AArch64 Bitfield Move (BFM) Instruction

https://nemanjatrifunovic.substack.com/p/aarch64-bitfield-move-bfm-instruction
1•whobre•8m ago•0 comments

State of the Browser 2026

https://jamesg.blog/2026/03/03/state-of-the-browser-2026
1•speckx•9m ago•0 comments

QuitGPT: 700K users say they're done. Are they right?

https://tapestry.news/tech/quitgpt/
1•sonalidee•9m ago•0 comments

Type systems are leaky abstractions: the case of Map.take /2

https://dashbit.co/blog/type-systems-are-leaky-abstractions-map-take
1•todsacerdoti•10m ago•0 comments

MelonLand Surf Club

https://melonland.net/surf-club
1•TigerUniversity•10m ago•0 comments

Show HN: React admin dashboard template that generates UI from a JSON schema

https://github.com/RestDB/codehooks-io-templates/tree/main/react-admin-dashboard
3•jonesatrestdb•10m ago•0 comments

How the Moat Is Moving

https://mashedbits.substack.com/p/the-moat-is-moving
1•JesseObrien•11m ago•1 comments

Show HN: Use Codex/Claude Code as your personal financial assistant

https://github.com/junnjiee/finance-agent
1•jjuniordev•12m ago•1 comments

Learning to recognize rick roll QR codes on sight

https://marcos.ac/blog/rickroll/
1•spaghetti-code•12m ago•0 comments

LLMs can unmask pseudonymous users at scale with surprising accuracy

https://arstechnica.com/security/2026/03/llms-can-unmask-pseudonymous-users-at-scale-with-surpris...
1•alwillis•12m ago•0 comments

Goals vs. Systems

https://web.archive.org/web/20210811125743/https://www.scottadamssays.com/2013/11/18/goals-vs-sys...
1•Brysonbw•14m ago•0 comments

Apple introduces the new MacBook Air with M5

https://www.apple.com/newsroom/2026/03/apple-introduces-the-new-macbook-air-with-m5/
5•Garbage•15m ago•3 comments

I Brought an AI to a Hacking Contest (and Won)

https://medium.com/@pol.avec/i-brought-an-ai-to-a-hacking-contest-and-won-a8c9998745c9
1•pol_avec•16m ago•2 comments

Apple debuts M5 Pro and M5 Max to supercharge the most demanding pro workflows

https://www.apple.com/newsroom/2026/03/apple-debuts-m5-pro-and-m5-max-to-supercharge-the-most-dem...
2•ryanhn•16m ago•0 comments