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

Learn LLM Internals

https://github.com/amitshekhariitbhu/llm-internals
1•pallavishekhar•31s ago•0 comments

Ask HN: Are you negatively affected by the recent economic stagnation?

1•adinhitlore•2m ago•0 comments

Mythos, Muse, and the Opportunity Cost of Compute

https://stratechery.com/2026/mythos-muse-and-the-opportunity-cost-of-compute/
1•swolpers•2m ago•0 comments

Python Package Compiler:Package Matlab Programs for Deployment as Python Package

https://www.mathworks.com/help/compiler_sdk/ml_code/pythonpackagecompiler-app.html
1•teleforce•4m ago•0 comments

Claude Code Prompt Patcher

https://gist.github.com/roman01la/483d1db15043018096ac3babf5688881
1•sscaryterry•6m ago•1 comments

Ask HN: What is the most essential feature you expect from a home automation?

1•dr_inf•7m ago•0 comments

Build a Sovereign Local AI Stack: Ollama and Open WebUI and Pgvector 2026

1•anju-kushwaha•10m ago•0 comments

Donald Trump's America Is Deeply Unwell, and It's Time to Say So

https://newrepublic.com/article/208971/donald-trump-america-deeply-unwell-it-time-say
2•hkhn•12m ago•0 comments

I hacked a way to check my CV score before submitting on linkedin

https://cvrepair.guru/ats-checker
1•ahmedgmurtaza•13m ago•1 comments

After a Dark Week, Americans Should Turn to Jimmy Carter's Malaise Speech

https://www.liberalcurrents.com/after-a-dark-week-americans-should-turn-to-jimmy-carters-malaise-...
1•hkhn•14m ago•0 comments

Sentinel-Based Code Tracing via Runtime Code Section Patching

https://revers.engineering/
1•swq115•19m ago•0 comments

Show HN: MacBook Neo Review 2026

1•anju-kushwaha•20m ago•0 comments

Show HN: I built a benchmark platform for WordPress backup plugins

1•ibrahimwithi•27m ago•0 comments

We Raised $15M and Had 61% Uptime. Here's Every Mistake That Got Us There

https://medium.com/@me_24829/we-had-61-uptime-heres-every-mistake-that-got-us-there-cdcee1731a26
1•guigaribaldi•27m ago•0 comments

Claude Code – Disabling telemetry also disables 1-hour prompt cache TTL

https://github.com/anthropics/claude-code/issues/45381
4•dsr12•32m ago•0 comments

Show HN: Kyomu - 13 puzzles from math and physics that map your cognitive style

https://mostlykiguess.github.io/Kyomu/
2•mostlyk•33m ago•0 comments

Show HN: SkillCompass – open-source quality evaluator for your AI skills

https://github.com/Evol-ai/SkillCompass
1•yo103jg•36m ago•0 comments

Turbo Pascal on Your iPhone

https://pascal.kulman.sk
2•ig0r0•40m ago•0 comments

Cursortab.nvim: Edit-Completions for Neovim

https://github.com/cursortab/cursortab.nvim
1•leonardcser•40m ago•0 comments

The Command Line that never died

https://ajitem.com/blog/iron-core-part-3-the-command-line-that-never-died/
2•Airplanepasta•41m ago•0 comments

Show HN: I built a social media management tool in 3 weeks with Claude and Codex

https://github.com/brightbeanxyz/brightbean-studio
2•JanSchu•44m ago•0 comments

Go-overlay: Nix overlay for complete go development environment

https://github.com/purpleclay/go-overlay
2•hambes•46m ago•0 comments

Six Characters

https://ajitem.com/blog/iron-core-part-2-six-characters/
1•Airplanepasta•46m ago•0 comments

AI conditionally allowed in the Linux kernel. "Linux lays down the law on AI.."

https://www.tomshardware.com/software/linux/linux-lays-down-the-law-on-ai-generated-code-yes-to-c...
1•aleksjess•48m ago•0 comments

Universal surface-growth law confirmed in two dimensions after 40 years

https://phys.org/news/2026-04-universal-surface-growth-law-dimensions.html
1•thunderbong•52m ago•0 comments

How to Reproduce Container Images

https://dangerzone.rocks/news/2026-03-02-repro-build/
1•almet•57m ago•0 comments

Defender – Local prompt injection detection for AI agents (no API calls)

https://www.npmjs.com/package/@stackone/defender
1•Hiskias•57m ago•0 comments

Abundant Ways to Address Scarcity

https://thelivingfossils.substack.com/p/abundant-ways-to-address-scarcity
1•paulpauper•59m ago•0 comments

Introduction to Spherical Harmonics for Graphics Programmers

https://gpfault.net/posts/sph.html
1•luu•1h ago•0 comments

They're Rich but Not Famous–and They're Suddenly Everywhere

https://www.wsj.com/economy/wealthy-americans-us-economy-dba0d26a
1•paulpauper•1h ago•0 comments