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.

Old English Computer Glossary

https://web.archive.org/web/20231120210517/http://www.u.arizona.edu/~ctb/wordhord.html
1•LAC-Tech•3m ago•0 comments

Claude Code with API Key?

https://old.reddit.com/r/ClaudeAI/comments/1jwvssa/comment/mtt0urz/
1•behnamoh•3m ago•0 comments

Microsoft wants to replace its C and C++ codebase, perhaps by 2030

https://www.theregister.com/2025/12/24/microsoft_rust_codebase_migration/
1•0in•8m ago•1 comments

Pennsylvania High Court Rules Police Can Access Google Searches Without Warrant

https://reclaimthenet.org/pennsylvania-court-rules-no-privacy-in-google-searches
1•imglorp•12m ago•0 comments

A new immunotherapy approach could work for many types of cancer

https://news.mit.edu/2025/new-immunotherapy-approach-could-work-many-types-cancer-1216
2•0in•16m ago•0 comments

QWED – Deterministic Verification for AI

https://docs.qwedai.com/
1•handfuloflight•18m ago•0 comments

Gave My RGB Fans a Job: 38-Pixel Screen Mirror

https://seg6.space/posts/rgb-sync/
1•seg6•19m ago•0 comments

Ask HN: Will SLMs be what bursts the LLM bubble cos you can run them on a phone?

1•aniijbod•24m ago•0 comments

They graduated from Stanford. Due to AI, they can't find a job

https://www.latimes.com/business/story/2025-12-19/they-graduated-from-stanford-due-to-ai-they-can...
2•osnium123•24m ago•0 comments

We interfaced single-threaded C++ with multi-threaded Rust and lived

https://antithesis.com/blog/2025/rust_cpp/
1•wwilson•25m ago•0 comments

Evaluating Context Compression for AI Agents

https://factory.ai/news/evaluating-compression
1•gmays•29m ago•0 comments

Zodiac Z13 Decryption

https://colab.research.google.com/drive/19p4n1aMyeYte1jC4P3GKflMgD6xuZAvV
3•sgustard•29m ago•0 comments

Manufactured Inevitability and the Need for Courage

https://theconvivialsociety.substack.com/p/manufactured-inevitability-and-the
1•danielam•29m ago•0 comments

Physicists found a way to make thermodynamics work in the quantum world

https://www.sciencedaily.com/releases/2025/12/251223084615.htm
3•ashishgupta2209•43m ago•0 comments

Don't Become the Machine

https://armeet.bearblog.dev/becoming-the-machine/
4•armeet•48m ago•1 comments

You Can Get Every AI Model for Free

https://infiniax.ai
2•ZacharyGolinger•59m ago•1 comments

Ask HN: Critique wanted — granular-physics pyramid preprint

https://zenodo.org/records/18036910
1•Sherlock_Blight•59m ago•1 comments

The semantic layer is dead. Long live the wiki

https://promptql.io/blog/semantic-layer-dead-long-live-wiki
4•tirumaraiselvan•1h ago•0 comments

Big Space Sandwich Broke a Record

https://nautil.us/this-big-space-sandwich-broke-a-record-1256821/
2•fleahunter•1h ago•0 comments

China bans sharing 'obscene' material – potentially including sexting

https://www.washingtonpost.com/world/2025/12/23/china-porn-ban-online-censorship/
3•0in•1h ago•0 comments

Yendor: A Zach-like, rogue-like game and language made in 7 days

https://github.com/olifog/YENDOR
2•azhenley•1h ago•0 comments

China Delays Plans for Mass Production of Self-Driving Cars After Accident

https://www.nytimes.com/2025/12/23/business/china-autonomous-cars-driving.html
2•bookofjoe•1h ago•1 comments

Poetiq achieves 75% at under $8 / problem using GPT-5.2 X-High on ARC-AGI-2

https://poetiq.ai/posts/arcagi_announcement/
3•mromanuk•1h ago•0 comments

A semantic POP-style framework for structuring AI-assisted programs

https://github.com/dohuyhoang93/theus/blob/main/README.md
3•dohuyhoangvn93•1h ago•1 comments

How to Become AGI: From Capitalism to Compute-Ism

https://medium.com/@zichengxu/how-to-become-agi-a5b2d7d74bda
2•lossy_compress•1h ago•0 comments

Casuistic Alignment

https://fi-le.net/casuism/
3•fi-le•1h ago•0 comments

Show HN: Depsy – normalized SaaS dependency health in one API call (cached,fast)

https://depsy.io/
2•malik_naji•1h ago•0 comments

Show HN: Send free letters to your future self or others

https://lettertolater.com
1•sankar_builds•1h ago•0 comments

DownDownDown Come and challenge the 100th floor game

https://downdowndown.live/
2•bitvvip•1h ago•0 comments

Peter Thiel's $74M Shake-Up: Slashes Tesla, Bets Big on Microsoft and Apple

https://www.13radar.com/guru/peter-thiel
3•EvansWilson•1h ago•3 comments