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•6mo 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•6mo 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•6mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•6mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

New digital wallet to restrict social media access in Ireland for under-16s

https://www.irishtimes.com/politics/2025/12/06/new-digital-wallet-to-be-tested-within-months-to-r...
1•austinallegro•1m ago•1 comments

"I" Ported Karpath

1•jonromero•1m ago•0 comments

Tandy Advent Calendar

https://advent.pcotandy.org/
1•gregsadetsky•1m ago•0 comments

Agentica TypeScript SDK

https://github.com/symbolica-ai/agentica-typescript-sdk
1•handfuloflight•4m ago•0 comments

Zig asserts are not C asserts

https://cryptocode.github.io/blog/docs/assert/
1•birdculture•6m ago•0 comments

GitHub UI Unresponsive

2•polyrand•10m ago•0 comments

Manchester United's seat licence plan threatened by ticket tout clampdown

https://www.theguardian.com/football/2025/nov/19/manchester-united-seat-licence-plan-threatened-b...
1•PaulHoule•11m ago•0 comments

The (re)-prioritization of open-source AI – Pinterest

https://medium.com/pinterest-engineering/on-the-re-prioritization-of-open-source-ai-86f7279481e3
1•yellow_postit•11m ago•0 comments

Adopters of 'zone zero' fared better in L.A. County fires, investigation finds

https://www.latimes.com/environment/story/2025-12-10/zone-zero-early-adopters-fared-better-in-la-...
1•dangle1•14m ago•0 comments

Show HN: A cloud hardware workspace for open-source CAD/EDA tools

https://foundry.siameseai.com/
1•mister_jmm•14m ago•1 comments

A Fentanyl Vaccine Is About to Get Its First Major Test

https://www.wired.com/story/a-fentanyl-vaccine-is-about-to-get-its-first-major-test/
1•bookofjoe•15m ago•1 comments

A new test for if your LLM is subtly manipulating you

https://rosmine.ai/2025/12/10/a-new-test-for-if-your-llm-is-subtly-manipulating-you/
1•rosmine•16m ago•0 comments

Rubio orders return to Times New Roman font over 'wasteful' Calibri

https://www.bbc.com/news/articles/cgkez3367xmo
26•jnord•16m ago•4 comments

US taking 25% cut of Nvidia chip sales "makes no sense," experts say

https://arstechnica.com/tech-policy/2025/12/us-taking-25-cut-of-nvidia-chip-sales-makes-no-sense-...
5•gametorch•17m ago•1 comments

Omniclip – universal clipboard free from the Apple ecosystem

https://github.com/quantbagel/omniclip
1•quantbagel•17m ago•1 comments

Systemization of Knowledge: Security and Safety Challenges in MCP

https://arxiv.org/abs/2512.08290
2•sambhu•17m ago•0 comments

Green Spaces Tied to Fewer Mental Health Hospitalizations

https://www.medscape.com/viewarticle/green-spaces-tied-fewer-mental-health-hospitalizations-2025a...
2•wjb3•18m ago•1 comments

Echomine – Search and export your ChatGPT and Claude conversations

https://github.com/aucontraire/echomine
1•ohcontraire•18m ago•1 comments

Best Japanese Learning Tools: 2025 Award Show

https://skerritt.blog/best-japanese-learning-tools-2025-award-show/
1•wahnfrieden•19m ago•0 comments

Rails Updates: Schema-Enforced JSON Access, Postgres Type Decoding and More

https://rubyonrails.org/2025/12/5/this-week-in-rails
3•andrewstetsenko•20m ago•0 comments

Nonlinear Quantum Mechanics and Artificial Intelligence

https://arxiv.org/abs/2512.07809
1•measurablefunc•20m ago•0 comments

What is eBPF?

https://oneuptime.com/blog/post/2025-12-10-what-is-ebpf-and-how-does-it-work/view
2•ndhandala•22m ago•0 comments

Libretro

https://www.libretro.com/
2•apitman•24m ago•0 comments

Ask HN: Anyone Else Noticed This?

2•piratesAndSons•26m ago•1 comments

What's needed for AI agents to work

https://substack.com/home/post/p-181262619
1•thejash•27m ago•0 comments

Show HN: See what your Reddit history reveals about you

https://think-pol.com/
1•r00m101•27m ago•0 comments

AI mania to swell datacenter capex to $1.6T by 2030 – if bubble doesnt pop first

https://www.theregister.com/2025/12/09/omdia_datacenter_capex/
1•Bender•28m ago•0 comments

Intel, AMD Processors Affected by PCIe Vulnerabilities

https://www.securityweek.com/intel-amd-processors-affected-by-pcie-vulnerabilities/
3•Bender•30m ago•0 comments

Glibc Now Enabling 2MB THP On AArch64 By Default For Better Performance

https://www.phoronix.com/news/Glibc-malloc-2MB-THP-AArch64
1•Bender•30m ago•0 comments

NVAP Reference Guide: Animal Identification

https://www.aphis.usda.gov/nvap/reference-guide/animal-identification
1•hyperific•30m ago•0 comments