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.

Climate misinformation is threatening Canada's national security

https://thenarwhal.ca/climate-misinformation-national-security/
1•Teever•2m ago•0 comments

Workflow Description Language (WDL) 1.3

https://openwdl.org/wdl/bioinformatics/workflows/announcing-wdl-1-3-0/
1•azhenley•4m ago•0 comments

What's on HTTP?

https://whatsonhttp.com/
1•elixx•6m ago•0 comments

Seniority Is Clarity Not Cleverness

https://dontbreakprod.com/posts/seniority-is-clarity-not-cleverness
2•dorkrawk•8m ago•0 comments

I Taught Myself to Code on a Cracked Android Phone. Now I Can't Get Hired

https://www.rly0nheart.com/posts/life/i-taught-myself-to-code-on-a-cracked-android-phone-now-i-ca...
6•boyter•15m ago•1 comments

Abuse report review pending for a month now

https://community.cloudflare.com/t/abuse-report-review-pending-for-a-month-now/876217
1•mritzmann•16m ago•0 comments

First open-source UCP merchant sandbox – test your AI shopping agents

https://github.com/steven2030/ucp-merchant
2•Stevenochs•17m ago•1 comments

Nvidia: Using Context as Training Data Unlocks Models That Learn at Test-Time

https://developer.nvidia.com/blog/reimagining-llm-memory-using-context-as-training-data-unlocks-m...
1•ashvardanian•17m ago•0 comments

A Hidden Blob of Water Has Abruptly Reappeared in the Atlantic

https://www.popularmechanics.com/science/environment/a69975772/atlantic-equitorial-water-found/
1•kayo_20211030•17m ago•0 comments

Productivity

https://en.wiktionary.org/wiki/productivity
1•downboots•19m ago•1 comments

Aligning Games and Sets in Determining Tennis Matches

https://www.nyu.edu/about/news-publications/news/2026/january/aligning-games-and-sets-in-determin...
1•geox•19m ago•0 comments

The Next Dust Bowl Is Becoming More Likely

https://www.bloomberg.com/opinion/articles/2026-01-12/the-next-dust-bowl-is-becoming-more-likely
5•cwwc•21m ago•1 comments

Powell says Trump administration has threatened him with a criminal indictment

https://www.reuters.com/business/finance/feds-powell-says-administration-has-threatened-criminal-...
4•platevoltage•22m ago•1 comments

Trump announces 25% tariff on countries 'doing business' with Iran

https://www.ft.com/content/c266f78d-1b53-4aa5-99ff-1726a5126a23
7•alephnerd•24m ago•0 comments

An FAQ on Reinforcement Learning Environments

https://epoch.ai/gradient-updates/state-of-rl-envs
1•dcre•25m ago•0 comments

Mastering Memory Management and Garbage Collection in .NET

https://nemorize.com/roadmaps/mastering-memory-management-and-garbage-collection-in-net
1•reverseblade2•27m ago•0 comments

Deciphering Academic Slop [video]

https://www.youtube.com/watch?v=Gu_L8MPvGJM
1•bobajeff•27m ago•0 comments

StyleX: A Styling Library for CSS at Scale

https://engineering.fb.com/2025/11/11/web/stylex-a-styling-library-for-css-at-scale/
1•mostdefinite1•27m ago•0 comments

YC Cofounder Matching inbox stuck in infinite loading loop – anyone else?

2•founder_mode•29m ago•0 comments

Show HN: I vibe coded a site to virtually crate dig for new music

https://crate-digging.vercel.app/
1•durutti•29m ago•0 comments

Free Developer and Designer Tools

https://toolvault.co
2•Aaevro•30m ago•1 comments

Staging is a wasteful lie: the case for the mono-environment

https://www.tomwphillips.co.uk/2026/01/staging-is-a-wasteful-lie-the-case-for-the-mono-environment/
2•gpi•30m ago•0 comments

Stewart Cheifet, Host of TV's 'Computer Chronicles,' Dies at 87

https://www.nytimes.com/2026/01/10/technology/stewart-cheifet-dead.html
2•reaperducer•33m ago•1 comments

Ask HN: How do you find well-moderated communities

3•pllbnk•38m ago•0 comments

Is it better to rent or buy?

https://www.economist.com/finance-and-economics/2026/01/07/is-it-better-to-rent-or-buy
1•andsoitis•40m ago•0 comments

Prompting as Design

https://substack.com/inbox/post/184360602
1•JTan2231•40m ago•0 comments

Apple and Google's Minimalist AI Announcement Is a Flex

https://www.siliconsnark.com/apple-and-googles-minimalist-ai-announcement-is-a-flex/
3•SaaSasaurus•43m ago•1 comments

Complex life on planets orbiting the galaxy's most common stars may be unlikely

https://phys.org/news/2026-01-complex-life-planets-orbiting-galaxy.html
2•bikenaga•45m ago•1 comments

Schismogenesis

https://en.wikipedia.org/wiki/Schismogenesis
1•foster_nyman•48m ago•0 comments

I built an SDK to make M-pesa integration easy

https://payments-js.singularity.co.ke/
1•wambuakelvin_•50m ago•0 comments