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

DIY Ion-Exchange Membranes from Hardware Store Items [video]

https://www.youtube.com/watch?v=luulTI1RKHE
1•ycnews•4m ago•0 comments

Show HN: AxKeyStore – Zero-trust CLI secrets manager using your own GitHub repo

https://github.com/basilgregory/axkeystore
1•robin_a_p•13m ago•0 comments

Trapped in MS Office

https://ia.net/topics/trapped-in-ms-office
1•DASD•15m ago•0 comments

Show HN: Meet Alfonso: My OpenClaw Put on Public Discord

https://www.openclawdiscord.ai/
3•saroyas•16m ago•1 comments

Show HN: Adversarial AI agents that debate and verify travel itineraries

1•hellomarshmall•17m ago•0 comments

CISA replaces acting director after a bumbling year on the job

https://techcrunch.com/2026/02/27/cisa-replaces-acting-director-gottumukkala-after-a-bumbling-yea...
2•jnord•18m ago•0 comments

Show HN: Yoagent – Build a coding agent CLI in 260 lines of Rust

https://github.com/yologdev/yoagent
1•liyuanhao•22m ago•1 comments

How I Built a 'Journalist' AI Agent in VS Code to Replace Me

https://visualstudiomagazine.com/articles/2026/02/27/how-i-built-a-journalist-agent-in-vs-code-to...
1•daram•24m ago•1 comments

Ollama 0.17 ships native OpenClaw integration – security implications

https://clawmoat.com/blog/ollama-openclaw-security.html
1•ildar•26m ago•0 comments

The Air Force's new ICBM is nearly ready to fly, but there's nowhere to put it

https://arstechnica.com/space/2026/02/the-air-forces-new-icbm-is-nearly-ready-to-fly-but-theres-n...
3•duxup•28m ago•0 comments

Why Tehran's Two-Tiered Internet Is So Dangerous

https://www.schneier.com/blog/archives/2026/02/why-tehrans-two-tiered-internet-is-so-dangerous.html
1•pabs3•34m ago•0 comments

Show HN: DiskFree – Find what's blocking your macOS disk and eject it

https://getdiskfree.github.io/diskfree/
1•ofc-tahaabbasi•39m ago•1 comments

Skip drip emails when recipient has replied in Gmail

1•nishiohiroshi•40m ago•0 comments

California vet clinic warns of AI scam targeting lost dogs

https://ktla.com/news/california/lost-dog-ai-scam-fresno/
2•Bender•42m ago•0 comments

Externalizing Developers' Intuition as Code

https://github.com/elbanic/dev-sentinel
2•elbanic•42m ago•1 comments

Synchronized MIMD Computing [pdf]

https://people.csail.mit.edu/bradley/papers/Kuszmaul94.pdf
1•luu•45m ago•0 comments

Ask HN: Which nickname will President Trump choose for Claude?

3•thomassmith65•45m ago•1 comments

LXD 6.7 Released with AMD GPU Passthrough Support

https://www.phoronix.com/news/LXD-6.7-Released
3•Bender•45m ago•0 comments

Edge Case Poisoning

https://buttondown.com/hillelwayne/archive/edge-case-poisoning/
1•azhenley•46m ago•0 comments

Gnome GitLab Redirecting Some Git Traffic to GitHub for Reducing Costs

https://www.phoronix.com/news/GNOME-GitHub-GitLab-Redirect
2•Bender•46m ago•0 comments

Federal panel behind cancer screening recommendations hasn't met in one year

https://www.nbcnews.com/health/health-news/federal-panel-cancer-screening-recommendations-hasnt-m...
5•brandonb•48m ago•0 comments

Programmers on the Verge of Extinction

https://stevedylan.dev/posts/programmers-on-the-verge-of-extinction/
2•stevedsimkins•54m ago•0 comments

$500K exit approved for Bay Area CEO days before harassment findings surface

https://www.sfgate.com/bayarea/article/exit-bay-area-ceo-harassment-21943048.php
6•randycupertino•54m ago•2 comments

Heart attack deaths are rising in young adults. Here's why

https://www.empirical.health/blog/heart-attacks-rising-young-people/
3•brandonb•56m ago•1 comments

Show HN: Lneto – IEEE802.3/IP/TCP/HTTP in 8kB of RAM in Go

https://github.com/soypat/lan8720
2•soypat•56m ago•0 comments

Ask HN: 2026, where is the best place in the world to create a startup?

2•wewewedxfgdf•56m ago•1 comments

A tool to launch your OpenClaw in just 1 minute

https://clawhost.chat
1•vadimen•59m ago•1 comments

OpenAI is negotiating a deal with The Pentagon

https://fortune.com/2026/02/27/openai-in-talks-with-pentagon-after-anthropic-blowup/
9•doener•59m ago•1 comments

Statement on the comments from Secretary of War Pete Hegseth

https://www.anthropic.com/news/statement-comments-secretary-war
222•surprisetalk•59m ago•40 comments

Super Editor – Atomic file editor with automatic backups (Python and Go)

4•larryste•1h ago•0 comments