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.

In Search of the Leisure Class

https://libertiesjournal.com/articles/insearch-of-the-leisure-class/
2•fferen•3m ago•0 comments

Fast starting Clojure runtime built with GraalVM native-image and Crema

https://github.com/borkdude/cream
3•yogthos•7m ago•0 comments

The JavaScript Oxidation Compiler

https://oxc.rs/
3•modinfo•7m ago•0 comments

SpaceX gets federal approval for Starship launches, AI satellites from Florida's

https://www.usatoday.com/
2•bookmtn•8m ago•1 comments

Show HN: OpenClaw alternative written in Golang and talk with you in voice

http://coolwulfai.com
2•coolwulf•11m ago•0 comments

Show HN: Lyra Kids – I built an AI bedtime storyteller for my daughters

https://lyra.kids/
4•Kael1•12m ago•0 comments

Log into 28 vintage computer systems in the browser / Interim Computer Museum

https://www.tomshardware.com/video-games/retro-gaming/you-can-log-into-28-vintage-computer-system...
2•russfink•14m ago•1 comments

Agentic Software Engineering Book

https://agenticse-book.github.io/
4•bananaflag•15m ago•0 comments

Ask HN: Freelance full-stack dev in between contracts

2•downbad_•17m ago•0 comments

We Have Pgvector at Home

https://theconsensus.dev/p/2026/02/22/we-have-pgvector-at-home.html
2•zdw•19m ago•0 comments

Leibniz on Binary: The Invention of Computer Arithmetic (2022)

https://direct.mit.edu/books/monograph/5492/Leibniz-on-BinaryThe-Invention-of-Computer
2•measurablefunc•19m ago•0 comments

Wrapping Code Comments

https://matklad.github.io/2026/02/21/wrapping-code-comments.html
2•tenpa0000•21m ago•0 comments

Code Review Is Not About Catching Bugs

https://www.davidpoll.com/2026/02/code-review-is-not-about-catching-bugs/
2•depoll•21m ago•0 comments

Leveraging Attributes with Respect\Validation and Laravel

https://alganet.github.io/blog/2026-02-22-23-Leveraging-Attributes-With-Respect-Validation-and-La...
2•gaigalas•23m ago•0 comments

Official specification and reference code for Fast Lightweight Online Encryptio

https://github.com/Snowflake-Labs/floe-specification
1•todsacerdoti•24m ago•1 comments

"Pinky Promise Diplomacy" Once Stopped a War in the Middle East

https://www.lesswrong.com/posts/unxyt8EsCNkMCRbsw/how-pinky-promise-diplomacy-once-stopped-a-war-...
1•positivesum•28m ago•0 comments

Show HN: InferShield – A Lightweight Orchestration-Layer Attack Detector (POC)

https://github.com/InferShield/infershield
1•Alex-Hosein•33m ago•0 comments

Show HN: MSI GPU Mux Switcher for Linux via UEFI Vars and EC Trigger

https://github.com/ElXreno/msi-gpu-switcher
2•elxreno•35m ago•0 comments

Search Console MCP – Unified CLI for Google Search Console, Bing and GA4

2•svss_me•35m ago•0 comments

AI's [Other] Existential Threat

https://twitter.com/nick_alexander/status/2025757123033104562
2•nick007•38m ago•0 comments

Duan et al. 2026 algorithm beats Duan et al. 2025 for the SSSP Problem

https://arxiv.org/abs/2602.07868
1•samyadn12•38m ago•0 comments

Blue Owl Anxiety Rattles the $1.8T Private Credit Market

https://www.bloomberg.com/news/features/2026-02-22/blue-owl-redemptions-halt-intensifies-private-...
4•zerosizedweasle•40m ago•0 comments

No one has defined the "AI Strategist" role – so I wrote an OSS book to do it

https://github.com/Leading-AI-IO/the-ai-strategist
2•leading-AI•46m ago•0 comments

Aqua: A CLI message tool for AI agents

https://github.com/quailyquaily/aqua
2•lyricat•49m ago•0 comments

Cheers to the NetJets captain that made the call

https://twitter.com/BOCOjetSales/status/2025724280923910425
2•hnburnsy•52m ago•0 comments

2008 "Peak Oil" = 2026 "Peak Memory"

https://twitter.com/benkizemchuk/status/2025570398495015100
2•walterbell•52m ago•0 comments

Your Thirst Is Mine, My Water Is Yours

https://www.stopcar.ing/your-thirst-is-mine-my-water-is-yours/
2•cwal37•55m ago•0 comments

Jujutsu Version Control Explained – Video by Brian Will

https://www.youtube.com/watch?v=mM4nrhDenC8
3•Lanedo•57m ago•0 comments

Tesla Begins Production of Cybercab

https://www.barrons.com/articles/tesla-stock-price-cybercab-9e8a08ed
2•lateforwork•1h ago•3 comments

The lack of reliable financial infrastructure

https://www.tumblr.com/archive-is/809233317252710400/on-growth-limits-finances-and-why-osinters-f...
1•cnst•1h ago•0 comments