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.

Trained Qwen to Write Clojure Better Than GPT-5.4 (Kinda)

https://www.nibzard.com/clojure-phone
1•nkko•31s ago•0 comments

Legit – Dockerized git server for agent interaction

https://github.com/aquanauts/legit
1•shorsher•1m ago•0 comments

The best time to post on Hacker News

https://blog.alcazarsec.com/tech/posts/best-time-to-post-on-hacker-news
1•alcazar•1m ago•0 comments

Why some images look brighter than your screen

https://tn1ck.com/blog/abuse-hdr-images-for-marketing
1•brandrick•2m ago•1 comments

I turned an old Android phone into a home server

https://www.xda-developers.com/turned-old-android-phone-into-home-server-more-useful-than-raspber...
1•imichael•3m ago•0 comments

NASA reckons Artemis II heat shield performed like a champ

https://www.theregister.com/2026/04/22/nasa_artemis_ii_heat_shield/
1•LorenDB•3m ago•0 comments

The Two Sides of OpenClaw

https://www.latent.space/p/ainews-the-two-sides-of-openclaw
1•gmays•4m ago•0 comments

The New GizmoSQL iOS App – DuckDB

https://duckdb.org/library/introducing-gizmosql-ios-app/
1•tanelpoder•5m ago•0 comments

Show HN: Move Lights in a Photograph in 3D

https://vrroom.github.io/tokenlight/
1•matroid•5m ago•0 comments

Hands-on with ChatGPT's powerful new image engine

https://www.axios.com/2026/04/22/chatgpt-hands-on-powerful-image-engine
1•Brajeshwar•5m ago•0 comments

Unpickable Lock [video]

https://www.youtube.com/watch?v=-qUu8kIliy8
1•burrito_brain•5m ago•0 comments

Show HN: Physics-accurate 3D assets for robotics simulations from any input

https://app.rigyd.com/
3•uguryekta•6m ago•2 comments

The last Elasticsearch engineer you will hire

https://www.trydeer.sh/product
1•aspectrr•9m ago•1 comments

DuckDB 1.5.2 – SQL database that runs on laptop, server, in the browser

https://duckdb.org/2026/04/13/announcing-duckdb-152
6•janandonly•9m ago•0 comments

The Couch Keyboard Has Been Bad for Years and Framework Just Fixed It

https://www.yankodesign.com/2026/04/22/the-couch-keyboard-has-been-bad-for-years-and-framework-ju...
1•freedomben•9m ago•0 comments

Parallel Token Prediction for Language Models

https://www.justuswill.com/ptp/
2•drrelax•10m ago•0 comments

A music distributor is generating AI music now

https://dev.once.app/blog/omg-music-generation
1•jakehandy•11m ago•0 comments

Deploying to IPv6-Only Hetzner with Kamal and Ansible

https://uncomplicated.systems/2026/04/17/kamal-hetzner-ipv6-only
1•Jn2G3Np8•11m ago•1 comments

TaxHacker – Self-hosted AI accounting app

https://github.com/vas3k/TaxHacker
2•sebakubisz•12m ago•0 comments

Show HN: Momentum – showcase what you're shipping

https://app.heytangent.com/momentum/tangent
1•brandonmb•12m ago•0 comments

I'm a very slow thinker (2016)

https://sive.rs/slow
1•theorchid•13m ago•1 comments

Plants can 'hear' rain coming, spurring them into action

https://www.scientificamerican.com/article/plants-can-hear-rain-coming-spurring-them-into-action/
1•dylan604•13m ago•0 comments

Show HN submissions tripled and are now mostly vibe-coded

https://www.adriankrebs.ch/blog/design-slop/
3•hubraumhugo•14m ago•2 comments

China Makes an Island

https://www.nytimes.com/interactive/2026/04/22/world/asia/south-china-sea-island.html
1•tcp_handshaker•16m ago•0 comments

An AI‑enabled device code phishing campaign

https://www.microsoft.com/en-us/security/blog/2026/04/06/ai-enabled-device-code-phishing-campaign...
2•mooreds•16m ago•0 comments

AI Index Report

https://hai.stanford.edu/ai-index/2026-ai-index-report
1•mmaia•16m ago•0 comments

Inside Prime Video

https://insidetechandmedia.substack.com/p/inside-launching-ads-on-prime-video
1•NeedMoreCowbell•17m ago•0 comments

How I've Actually Been Using AI

https://www.indiehackers.com/post/how-ive-actually-been-using-ai-39109e2c59
1•TimLeland•17m ago•0 comments

Ask HN: How are you handling domain registration in agentic workflows?

1•AgentNews•18m ago•0 comments

Built a tool to turn any data into dashboards instantly – looking for feedback

1•dashbee•18m ago•0 comments