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

Fiat Lux – UFO Religion

https://en.wikipedia.org/wiki/Fiat_Lux_(UFO_religion)
1•dmonay•2m ago•0 comments

Gemini AI assistant tricked into leaking Google Calendar data

https://www.bleepingcomputer.com/news/security/gemini-ai-assistant-tricked-into-leaking-google-ca...
1•greyadept•3m ago•0 comments

Ask HN: Motion Blur Detector Library/Package

1•notlikeus•5m ago•0 comments

Show HN: ShipShared – Breaking the "distribution wall" for micro-SaaS

https://shipshared.link
1•markyd•6m ago•0 comments

Brain on ChatGPT: Accumulation of Cognitive Debt When Using an AI Assistant

https://www.media.mit.edu/publications/your-brain-on-chatgpt/
1•misswaterfairy•7m ago•1 comments

Show HN Guidelines

https://news.ycombinator.com/yli.html
2•cjbarber•8m ago•0 comments

Show HN: Squadsure a free tool for volunteer sports committees

https://squadsure.com
1•chocoboaus3•10m ago•0 comments

PassLLM – World's most accurate AI-based password guesser

https://github.com/Tzohar/PassLLM
1•Plarsy•15m ago•0 comments

Show HN: Syntux - build generative UIs for the web.

https://www.getsyntux.com/
2•TheDever•18m ago•0 comments

Hacking WhiteDate [video]

https://www.youtube.com/watch?v=lJsS8lqCpwU
1•subjektivation•18m ago•0 comments

RadOps is a multi-agent platform for automated DevOps workflows

https://github.com/mehrdadrad/radops
1•mehrdadrad•19m ago•1 comments

The surprising windfall that airlines could reap from weight-loss drugs

https://www.washingtonpost.com/transportation/2026/01/21/weight-loss-drugs-airlines-fuel-savings/
3•bookofjoe•21m ago•1 comments

Lords defy Government with crushing vote to ban social media for under-16s

https://www.upday.com/uk/politics/lords-defy-government-with-crushing-vote-to-ban-social-media-fo...
2•chrisjj•21m ago•1 comments

Microsoft's Nadella: AI needs 'social permission' to consume so much energy

https://www.politico.com/news/2025/12/01/microsofts-nadella-says-ai-must-earn-social-permission-t...
1•cstever•26m ago•2 comments

Delay / Disruption Tolerant Networking for deep space communications

https://www.nasa.gov/communicating-with-missions/delay-disruption-tolerant-networking/
1•voxadam•27m ago•0 comments

The Future of Development: Running Firecracker MicroVMs on Your MacBook Pro M3

https://u3n.medium.com/the-future-of-development-is-here-running-firecracker-microvms-on-your-mac...
2•thenaturalist•29m ago•0 comments

After 40 years, Nintendo's Kensuke Tanabe is retiring

https://hanafuda.report/articles/kensuke-tanabe-is-retiring-here-are-all-the-nintendo-games-he-ha...
2•brandrick•33m ago•0 comments

Shiseido's Fall and Did You Know China Has an Industrial Policy for Lipstick?

https://www.governance.fyi/p/shiseidos-fall-japanese-cosmetics
5•guardianbob•33m ago•0 comments

Email from Family in Minnesota

https://inessential.com/2026/01/21/email-from-minnesota-family.html
8•tastyface•33m ago•0 comments

Lynx R2 Mixed Reality Headset

https://lynx-r.com/
1•LorenDB•34m ago•0 comments

Long-Term InSAR Monitoring of Groundwater: Insights from the Hollywood Basin

https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2024WR039161
1•PaulHoule•35m ago•0 comments

Show HN: A distribution-first incubator for solo and small-team B2C apps

https://twitter.com/clover_ye/status/2014096525836566979
1•tuye0305•37m ago•0 comments

I built a multi-touch attribution engine that detects ChatGPT and "Dark" traffic

https://www.Zyro.world/
1•edwardglush•38m ago•2 comments

The Battle for One of the Richest and Smallest Counties in Texas

https://www.newyorker.com/news/letter-from-the-southwest/the-battle-for-one-of-the-richest-and-sm...
3•coloneltcb•38m ago•1 comments

I built a new type of erasure code using Bloom filters

https://lumramabaja.com/posts/let-it-bloom-the-seeds-of-information-chaining-part-1/
3•birdculture•39m ago•0 comments

A Framework for Ethical Decision Making – Markkula Center for Applied Ethics [pdf]

https://cse.sc.edu/~mgv/csce390f23/MarkkulaFramework.pdf
2•shrewdcomputer•41m ago•0 comments

Immigration officers assert power to enter homes without a warrant

https://apnews.com/article/ice-arrests-warrants-minneapolis-trump-00d0ab0338e82341fd91b160758aeb2d
8•duxup•41m ago•5 comments

Show HN: Matrix style morphing into ASCII art rendering of myself

https://www.paepper.com/
1•mpaepper•41m ago•1 comments

PDF Extractor API – SaaS

https://www.pdf-extractor.com
1•lupion•42m ago•1 comments

Zong Massacre

https://en.wikipedia.org/wiki/Zong_massacre
4•lisper•43m ago•0 comments