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

Show HN: Raindrip – AI-Friendly CLI for Raindrop API

https://github.com/rinvii/raindrip
1•rinvi•5m ago•0 comments

Intent Free Subdomain: Get an free .int.yt or .i11.eu subdomain

https://int.yt/
1•MopAmine•5m ago•0 comments

The Rise and Fall of the US Army Camel Corps

https://www.historytoday.com/archive/history-matters/rise-and-fall-us-army-camel-corps
1•Thevet•5m ago•0 comments

A High-Performance, GPU-Accelerated Redis Client Built with Rust and GPUI

https://github.com/vicanso/zedis
1•krisgenre•6m ago•0 comments

Elephants Don't Play Chess [pdf]

https://people.csail.mit.edu/brooks/papers/elephants.pdf
1•gregsadetsky•9m ago•1 comments

Show HN: AI-first screen recorder to create videos in perfect English

https://trywizardly.com/
1•cbrun•11m ago•0 comments

Google is unleashing Gemini AI features on Gmail. Users will have to opt out

https://www.cnbc.com/2026/01/08/google-adds-gemini-features-to-gmail-message-summaries-proofreadi...
1•1vuio0pswjnm7•12m ago•1 comments

Getting my first 100 users with $0: what worked

https://amplift.ai/
5•gaygum102•12m ago•2 comments

Show HN: GoPico – a native Android retro(PICO-8) games player

https://play.google.com/store/apps/details?id=dev.bunnylabs.gopico&hl=en_US
1•SamPerson•16m ago•0 comments

Clean React Architecture for Sustainable Front-End Development

https://jsdev.space/maintainable-react-code/
1•javatuts•21m ago•0 comments

Show HN: Commit-based code review instead of PR-based

https://commitguard.ai
1•moshetanzer•21m ago•0 comments

Show HN: An all-in-one image crop/split/collage tool (no uploads, no watermark)

https://imagesplitter.tools
1•harperhuang•24m ago•0 comments

FontBob - easy font editor for designers, students and beginners

https://fontbob.com/
1•duck•28m ago•0 comments

A Meticulous Guide to Advances in Deep Learning Efficiency over the Years

https://alexzhang13.github.io/blog/2024/efficient-dl/
2•subset•36m ago•0 comments

Ask HN: Anyone in Hangzhou, Suzhou, Shanghai area wants to meet up?

4•etkgv6xa•37m ago•0 comments

Agonist-Antagonist Myoneural Interface

https://www.media.mit.edu/projects/agonist-antagonist-myoneural-interface-ami/overview/
1•kaycebasques•40m ago•0 comments

Show HN: Interactive checklist walkthrough for Dragon Quest VII

https://dq7reimagined.com/
1•causalzap•43m ago•0 comments

Police Have No Duty to Protect the Public (2022)

https://prospect.org/2022/04/18/police-have-no-duty-to-protect-the-public/
1•toomuchtodo•43m ago•1 comments

MiniMax, China's second 'AI tiger' to go public, soars in Hong Kong debut

https://www.reuters.com/world/asia-pacific/china-ai-firm-minimax-set-surge-hong-kong-debut-2026-0...
1•defrost•43m ago•0 comments

Tell HN: Get a dying iPhone 12 mini in 2026

3•remywang•46m ago•1 comments

Amazon demands proof of productivity from employees, asking for accomplishments

https://fortune.com/2026/01/08/amazon-demands-proof-of-productivity-from-employees-asking-for-lis...
2•Brajeshwar•47m ago•0 comments

The AI Can't Hallucinate What TypeScript Won't Compile

https://twitter.com/fullstacktard/status/2009498211296399709
1•fullstacktard•48m ago•0 comments

Show HN: An Alternative UI for DuckDB

1•hfmsio•56m ago•0 comments

Watch MTV Replay

https://wantmymtv.xyz/player.html
1•colewilson•57m ago•0 comments

Show HN: Distributing AI agent skills via NPM

https://github.com/RaoHai/agent-skill-npm-boilerplate
6•surgesoft•1h ago•1 comments

What Is Arithmetic Bandwidth?

https://modal.com/gpu-glossary/perf/arithmetic-bandwidth
1•jxmorris12•1h ago•0 comments

Remove Person from Photo – AI Object Removal Tool

https://nanobananaeditor.cc/remove-person-from-photo
1•s_xing•1h ago•0 comments

Playable Quotes for Game Boy Games [video]

https://www.youtube.com/watch?v=z9JYOZWLMlo
1•frogulis•1h ago•0 comments

A Major Mail Provider Demonstrates They Likely Do Not Understand Mail at All

https://bsdly.blogspot.com/2026/01/a-major-mail-provider-demonstrate-they.html
1•zdw•1h ago•1 comments

AI Assisted Physics Extraction from a Simple Seed Prompt

https://chat.deepseek.com/share/jnv9z2xo3palx4558s
1•morpheos137•1h ago•0 comments