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.

You Don't Hate the American Healthcare System Enough [video]

https://www.youtube.com/watch?v=MCW67lcUEbk
1•zingerlio•48s ago•0 comments

Show HN: Gödel Task Router – Autonomous Quantum Task Orchestration on AWS Braket

https://epochcoreqcs.com/
1•epochcore•1m ago•0 comments

Axiom – Truth Functional Logic in the Browser

https://lagomor.ph/projects/axiom/
1•ChilledTonic•2m ago•0 comments

Ask HN: Is your thinking grammar same as speaking?

1•journal•3m ago•0 comments

Are Database Researchers Making Correct Assumptions about Transaction Workloads?

http://muratbuffalo.blogspot.com/2026/01/are-database-system-researchers-making.html
1•supriyo-biswas•5m ago•0 comments

How do you map runtime text back to source code without source maps?

1•ryan_rudd•9m ago•0 comments

Your Best Converting Page Has the Worst SEO Metrics

https://growtika.com/blog/best-converting-page-worst-seo
1•Growtika•9m ago•0 comments

Ask HN: 20 months post-Seed, no Series A, safe to assume <3 months runway?

1•jennalk•12m ago•0 comments

To Save a Keyboard

https://newsletter.shifthappens.site/archive/to-save-a-keyboard-pt-3/
1•admp•23m ago•0 comments

People Not People

https://robinrendle.com/notes/people-not-people/
2•tobr•25m ago•0 comments

Sylvester and Clifford on Curved Space

https://johncarlosbaez.wordpress.com/2026/01/10/sylvester-and-clifford-on-curved-space/
2•chmaynard•30m ago•0 comments

Extracting books from production language models

https://arxiv.org/abs/2601.02671
2•cleandreams•32m ago•2 comments

IRC Networks

https://netsplit.de/networks/
1•sans_souse•35m ago•0 comments

Gen Z, millennials more likely to cut down on screen time than older generations

https://nypost.com/2026/01/08/lifestyle/gen-z-millennials-are-more-likely-to-digitally-unplug-tha...
2•1vuio0pswjnm7•35m ago•0 comments

Ask HN: I built a local-first encrypted secrets manager – feedback?

1•shahnoor•37m ago•0 comments

PostgreSQL Recovery Internals

https://www.cybertec-postgresql.com/en/postgresql-recovery-internals/
1•0x54MUR41•37m ago•0 comments

Postgres Scan Types in Explain Plans

https://www.crunchydata.com/blog/postgres-scan-types-in-explain-plans
1•0x54MUR41•38m ago•0 comments

Agent-native Architectures – A Technical Guide

https://every.to/guides/agent-native
2•rocho•45m ago•0 comments

A red pixel in the snow: How AI solved the mystery of a missing mountaineer

https://www.bbc.com/future/article/20260108-how-ai-solved-the-mystery-of-a-missing-mountaineer
3•1659447091•47m ago•0 comments

Slowest Labor Market in Years Leaves Job Seekers Stuck

https://www.wsj.com/economy/jobs/job-market-cooling-labor-department-6d4204ed
2•JumpCrisscross•49m ago•0 comments

Sprites: Stateful Sandbox Environments (from fly.io)

https://sprites.dev/
2•jimmcslim•50m ago•1 comments

What's happening in the ocean's "dark zones" [video]

https://www.youtube.com/watch?v=2tuS1LLOcsI
2•dataflow•50m ago•0 comments

Show HN: Visual Email Builder – Mygs

https://mygs.int.yt/mail/
2•MopAmine•52m ago•0 comments

The Darkest Timeline of American Imperialism [video]

https://www.youtube.com/watch?v=QwnJx2g0Okw
3•WinDoctor•53m ago•1 comments

Show HN: SpeedyEDA – One-line exploratory data analysis

2•dawitworku•53m ago•0 comments

YC application page erroring out

1•h_samani•54m ago•0 comments

From GraphQL to Pydantic-Resolve: How I Improved Architecture of API Integration

https://github.com/allmonday/rapid-development-pattern/blob/master/why.en.md
1•tank-34•57m ago•0 comments

Nginx Visualizer

https://codercat.xyz/nginx-visualizer/
1•snayss•1h ago•1 comments

Digging into the LLM-as-a-Judge Results

https://www.gilesthomas.com/2026/01/llm-from-scratch-30-digging-into-llm-as-a-judge
1•ibobev•1h ago•0 comments

Type inference of all constructs in Elixir

https://elixir-lang.org/blog/2026/01/09/type-inference-of-all-and-next-15/
1•aeonfox•1h ago•0 comments