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.

Run coding agents on your desktop without breaking your flow

https://www.ami.dev/
1•alexinavar•4m ago•0 comments

Show HN: Crapless craps – flutter PWA vibe coded from my phone

https://craps.exe.xyz:8081/
1•calderwoodra•7m ago•0 comments

Let's Buy California from Trump – Denmark's Next Big Adventure

https://denmarkification.com/
3•mil22•7m ago•0 comments

Building Production-Grade Micro Services on Azure Kubernetes

https://medium.com/@koladilip/building-production-grade-micro-services-on-azure-kubernetes-2884b5...
1•koladilip•9m ago•0 comments

Why 33% of NYC logistics thefts happen when the driver is nearby (Analysis)

https://www.tranzia.com/blog/nyc-logistics-safety
1•mednosis•15m ago•1 comments

My favorite NP-complete problem (2016) [video]

https://www.youtube.com/watch?v=BJBnR5Sn-sc
1•todsacerdoti•21m ago•0 comments

Show HN: Saile – credential once, work anywhere for clinicians

https://www.saileapp.com/
1•mayoub1•22m ago•0 comments

Japan's 40-year bond yield hits 4% record on fiscal jitters

https://www.cnbc.com/2026/01/20/japan-40-year-jgb-government-bond-yield-record-fiscal-jitters-sna...
1•zerosizedweasle•23m ago•0 comments

OpenAI launches GPT-audio and GPT-audio-mini

https://platform.openai.com/docs/models/gpt-audio
2•reed1234•24m ago•1 comments

Validation Economy: How Western Creators Monetize South Asia's Need to Be Seen

https://skift.com/2026/01/18/the-validation-economy-how-western-travel-creators-monetize-south-as...
1•ilamont•25m ago•0 comments

Show HN: Hammer of JSON

https://github.com/andrewbaxter/hammer-of-json
2•rendaw•25m ago•0 comments

EmuDevz – A game about building emulators

https://store.steampowered.com/app/4260720/EmuDevz/
3•evo_9•29m ago•0 comments

The Catcher in the Prompt: Day 60

https://blog.pytoshka.me/post/the-catcher-in-the-prompt/
1•kenny-opennix•30m ago•1 comments

Chinese Batteries Will Run the World

https://www.nytimes.com/2026/01/19/opinion/trump-energy-china-future.html
4•cmod•31m ago•0 comments

Show HN: A simple fork of gpodder2go for lightweight self-hosted podcast sync

https://github.com/ijustlovemath/gpodder2go
1•ijustlovemath•33m ago•0 comments

The Overcomplexity of the Shadcn Radio Button

https://maxkapur.com/2025/12/19/perfect-match-integer-programming.html
2•owenlacey•35m ago•0 comments

Hijacking Bluetooth Accessories Using Google Fast Pair

https://whisperpair.eu/
1•csmantle•37m ago•0 comments

RCS for Business

https://developers.google.com/business-communications/rcs-business-messaging
2•sshh12•39m ago•1 comments

Cyberpunk 2077 VR mod disappears after mod maker pulls the plug

https://www.pcgamer.com/games/vr/cyberpunk-2077-vr-mod-disappears-after-mod-maker-decides-hed-rat...
1•evo_9•40m ago•0 comments

The Tenth Watch for the Tenth Pitch Drop

http://thetenthwatch.com
2•mattas•42m ago•0 comments

Product Validation Launch Platform

https://www.launchradar.cc/
1•abdullah9•48m ago•0 comments

ADHD Routine Planner

https://www.habitualy.app/
4•abdullah9•49m ago•0 comments

Why isn't cindyllm blocked? Obviously a bot

https://news.ycombinator.com/user?id=cindyllm
3•raw_anon_1111•50m ago•2 comments

Who Contributed to PostgreSQL Development in 2025?

http://rhaas.blogspot.com/2026/01/who-contributed-to-postgresql.html
3•thunderbong•56m ago•0 comments

Common Lisp developer role Ravenpack

https://old.reddit.com/r/lisp/comments/1qedv4v/common_lisp_developer_role_ravenpack/
1•mike_ivanov•56m ago•0 comments

Observing Positronium Beam as a Quantum Matter Wave for the First Time

https://www.tus.ac.jp/en/mediarelations/archive/20260115_5801.htm
1•rustoo•57m ago•0 comments

Velox: A Port of Tauri to Swift by Miguel de Icaza

https://github.com/velox-apps/velox
3•wahnfrieden•1h ago•0 comments

x86 prefixes and escape opcodes flowchart

https://soc.me/interfaces/x86-prefixes-and-escape-opcodes-flowchart.html
1•gaul•1h ago•0 comments

React Native for macOS

https://github.com/microsoft/react-native-macos
3•wahnfrieden•1h ago•0 comments

Dear Jonas

https://denmark.news-pravda.com/en/world/2026/01/19/19000.html
2•barrister•1h ago•0 comments