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.

In Search of True Community

https://shado-mag.com/articles/opinion/in-search-of-true-community/
1•robtherobber•3m ago•0 comments

BioKnot – A biological tangle no AI can solve

https://github.com/bio-knot/bio-knot
1•bioknot•4m ago•1 comments

Italian Mafias Ranking [video, interviews]

https://www.youtube.com/watch?v=BN6Zl0zP108
1•danielfalbo•5m ago•0 comments

Why S7 Scheme?

https://iainctduncan.github.io/scheme-for-max-docs/s7.html
1•bmacho•8m ago•0 comments

Show HN: Destructive_command_guard (Dcg)

https://github.com/Dicklesworthstone/destructive_command_guard
2•eigenvalue•8m ago•0 comments

Singing the Gospel of Collective Efficacy

https://interconnected.org/home/2026/01/30/efficacy
2•jimmcslim•14m ago•0 comments

Guix System First Impressions as a Nix User

https://nemin.hu/guix.html
2•todsacerdoti•21m ago•0 comments

My homelab without public internet exposure

https://giuliomagnifico.blog/post/2026-01-02-homelab-stack-lan/
3•giuliomagnifico•26m ago•0 comments

Feed of Videos with Zero Context [videos]

https://wwwinfinijest.com
5•hnthrowawaste•29m ago•1 comments

Show HN: I made a one-click Chrome extension to export bookmarks as JSON

https://chromewebstore.google.com/detail/bookmark-cleaner-find-rem/nikggaojcpnfiagmdpfcdefcdghdedpd
1•dwasil•30m ago•0 comments

Show HN: Video Listen and Learn – Practice listening with movie clips

https://64k.net/video-listen
1•UtopiaRC•33m ago•0 comments

What's wrong with my digital products?

https://malvik.de
1•svenmalvik•38m ago•1 comments

AppleUnsold – The Apple products they won't sell you

https://appleunsold.com
1•reaperducer•39m ago•0 comments

The ADHD founder's survival guide

https://www.skunkworks.build/p/the-adhd-founders-survival-guide
2•stared•40m ago•0 comments

Bill Burr on Why Men Will Choose Robots over Women [video]

https://www.youtube.com/watch?v=XU9Ymeovx1U
1•keepamovin•43m ago•0 comments

Are We Claudemaxxing?

https://claudemaxxing.org/
5•namdao2000•45m ago•0 comments

Nvidia's plan to invest up to $100B in OpenAI has stalled

https://www.reuters.com/business/nvidias-plan-invest-up-100-billion-openai-has-stalled-wsj-report...
3•carlos-menezes•45m ago•0 comments

The (AI) Nature of the Firm

https://camerongordon0.substack.com/p/the-ai-nature-of-the-firm
2•iciac•48m ago•0 comments

"Giving up upstream-ing my patches & feel free to pick them up"

https://mail.openjdk.org/pipermail/hotspot-dev/2026-January/118080.html
2•csmantle•50m ago•0 comments

Ancient Greek statues were painted

https://bigthink.com/high-culture/greek-statues-painted/
2•wolfi1•52m ago•0 comments

How to improve your productivity by 200% in just 9 months

https://www.jorgegalindo.me/en/blog/posts/how-to-improve-your-productivity-by-200-in-just-9-months
1•jorgegalindo•55m ago•2 comments

Melania PG, Now Playing, 1h 44M, Documentary

https://www.rottentomatoes.com/m/melania
6•GreenSalem•57m ago•5 comments

Show HN: Afelyon – open-source AI agent that turns Jira tickets into GitHub PRs

https://afelyon.com/
1•AbduNebu•1h ago•0 comments

How Upc Barcodes Work

https://craigball.net/2021/01/25/understanding-the-upc-because-you-can/
1•asaiacai•1h ago•0 comments

Paper Notes – NanoLog – A Nanosecond Scale Logging System

1•carzzyDev•1h ago•0 comments

Show HN: Thought to tweet in 30sec – learns your voice (founder pricing forever)

https://trumpet.house
1•chrislxy•1h ago•0 comments

Euro firms must ditch Uncle Sam's clouds and go EU-native

https://www.theregister.com/2026/01/30/euro_firms_must_ditch_us/
40•jamesblonde•1h ago•4 comments

Show HN: Wanderlust-Rust daemon nukes Windows PATH bloat every 30 min

https://github.com/Michael-A-Kuykendall/wanderlust
1•MKuykendall•1h ago•0 comments

Show HN: LibreBlog – privacy-first, in-browser SSG with citation/RIS import

https://github.com/LibreBlogOrg/LibreBlog
1•libreblog•1h ago•0 comments

htmx: Server Sent Event (SSE) Extension

https://htmx.org/extensions/sse/
16•tosh•1h ago•2 comments