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.

Determinate: End-to-End Nix for macOS, WSL, Linux

https://docs.determinate.systems/
1•Lwrless•1m ago•0 comments

Show HN: ChatGPT Projects wasn't enough, so I built my "dream notes app"

https://apps.apple.com/us/app/wiz-note-ai-smart-notes/id6757632086
1•wabiosdev•2m ago•0 comments

TPM on Embedded Systems: Pitfalls and Caveats to Watch Out For

https://sigma-star.at/blog/2026/01/tpm-on-embedded-systems-pitfalls-and-caveats/
2•Deeg9rie9usi•4m ago•0 comments

Snowflakes in Print

https://blogs.loc.gov/inside_adams/2022/01/snowflakes-in-print/
1•jruohonen•5m ago•0 comments

I recently hit 1K GitHub stars on github.com/learning-cloud-native-go/myapp:)

1•dumindunuwan•5m ago•0 comments

Science journals retract 500 papers a month

https://www.thetimes.com/uk/science/article/science-journals-retract-500-papers-a-month-this-is-w...
2•robtherobber•7m ago•0 comments

Models of generics and metaprogramming: Golang, Rust, Swift, D, and more

https://thume.ca/2019/07/14/a-tour-of-metaprogramming-models-for-generics/
1•fanf2•8m ago•0 comments

Alzheimer's finger-prick test could help diagnosis

https://www.bbc.com/news/articles/cq5y85e8d2xo
1•1659447091•9m ago•0 comments

Show HN: I built a free text-to-speech plugin for WordPress

https://wordpress.org/plugins/speechable/
1•Tanishmittal•10m ago•0 comments

SIMD Programming in Pure Rust

https://kerkour.com/introduction-rust-simd
1•randomint64•11m ago•0 comments

US believes its power matters more than international law, UN chief

https://www.bbc.co.uk/news/articles/c4g0zx0llpzo
2•treadump•13m ago•0 comments

Show HN: I built a Next.js boilerplate to stop fighting with CSS

https://veloxweb.gumroad.com/l/launch-ui
1•asliper•14m ago•0 comments

Bring Back Ops Pride

https://charity.wtf/2026/01/19/bring-back-ops-pride-xpost/
1•BerislavLopac•16m ago•0 comments

Greenpeace pilot brings heat pumps and solar to Ukrainian community

https://www.pveurope.eu/power2heat/greenpeace-pilot-brings-heat-pumps-and-solar-ukrainian-community
3•doener•16m ago•0 comments

Show HN: Bundle a large codebase for use across multiple LLM apps

1•koistya•16m ago•0 comments

Show HN: Visual Database Schema Designer (Angular 21 and .NET 10)

https://dbvisualdesigner.com
1•temakonkin•17m ago•1 comments

Claude Skill for Terraform/OpenTofu – testing, modules, CI/CD, and prod patterns

https://github.com/antonbabenko/terraform-skill
1•antonbabenko•18m ago•1 comments

Awesome-ralph: A curated list of resources about Ralph, the AI coding technique

https://github.com/snwfdhmp/awesome-ralph
1•snwfdhmp•23m ago•0 comments

Coding Adventure: Ray Tracer

https://www.youtube.com/playlist?list=PLFt_AvWsXl0dlgwe4JQ0oZuleqOTjmox3
1•ivanjermakov•25m ago•0 comments

The surprising benefits of standing on one leg

https://www.bbc.com/future/article/20260114-the-surprising-benefits-of-standing-on-one-leg
1•1659447091•26m ago•0 comments

Show HN: Aeph – Just a paper for your terminal, not an editor

https://github.com/siki-712/aeph
2•ovonvo•27m ago•0 comments

How the Book of Mormon Unlocks the Book of Revelation [video]

https://www.youtube.com/watch?v=dPgMZxCslWU
1•beeburrt•27m ago•1 comments

Simple Invoicing for Independent Work

https://www.defray.com
1•grinry•30m ago•0 comments

Building Robust Helm Charts

https://www.willmunn.xyz/devops/helm/kubernetes/2026/01/17/building-robust-helm-charts.html
1•will_munn•30m ago•0 comments

Transcribe Audio to Text

https://transcribetotext.org
1•jiangyifeng•31m ago•0 comments

A Peek into Einstein's Zurich Notebook

https://sites.pitt.edu/~jdnorton/Goodies/Zurich_Notebook/
1•nill0•32m ago•0 comments

Hysterical Maps of the Lindgren Brothers

https://www.geographicus.com/blog/hysterical-maps-of-the-lindgren-brothers-a-cartobibliograpy.html
2•jruohonen•33m ago•0 comments

1Password SSH agent and CLI for secret management

https://marending.dev/notes/keys-in-pm/
2•beingflo•33m ago•0 comments

Learning better decision tree splits – LLMs as Heuristics for Program Synthesis

https://mchav.github.io/learning-better-decision-tree-splits/
1•internet_points•33m ago•0 comments

Adaptive Privacy Budgeting

https://arxiv.org/abs/2601.10866
1•7777777phil•35m ago•0 comments