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

Google bans Gemini/Antigravity accounts used outside of Antigravity/Gemini-CLI

https://old.reddit.com/r/google_antigravity/comments/1qykskz/account_banned_for_using_open_claw/
1•behnamoh•1m ago•0 comments

Show HN: Talk things through to find your next step

https://www.heyecho.app/
1•samxkoh•4m ago•0 comments

The sham legacy of Richard Feynman (2024) [video]

https://www.youtube.com/watch?v=TwKpj2ISQAc
1•agnishom•5m ago•0 comments

Compute Manifesto

https://olix.com/blog/compute-manifesto
3•salkahfi•7m ago•0 comments

Fed Funds Rate, Import Prices and Nasdaq Market Performance

https://pardusai.org/view/9f9aa3b895db6345378693a554e847aa8de0afef47ca72b89872cdb815fa8475
1•jasonEinstien•7m ago•0 comments

AgentScript

https://anandchowdhary.com/blog/2026/agentscript
1•anandchowdhary•8m ago•0 comments

Show HN: Forrus – A Bridge for Forgejo and Cirrus CI

https://lchenghui.com/forrus-ci-bridge
1•chenghui•11m ago•0 comments

GitHub Agentic Workflows

https://github.com/github/gh-aw
1•onurkanbkrc•15m ago•0 comments

Why this is the coldest crypto winter yet

https://www.economist.com/finance-and-economics/2026/02/10/why-this-is-the-coldest-crypto-winter-yet
1•petethomas•19m ago•0 comments

Eternity in six hours: Intergalactic spreading of intelligent life

https://www.researchgate.net/publication/256935390_Eternity_in_six_hours_Intergalactic_spreading_...
1•andsoitis•20m ago•0 comments

Useful Python Scripts to Automate Boring File Tasks

https://www.kdnuggets.com/5-useful-python-scripts-to-automate-boring-file-tasks
1•eigenpatch•23m ago•0 comments

Glitches of Street Fighter II [video]

https://www.youtube.com/watch?v=HtYQqGPL_NM
1•CHB0403085482•25m ago•0 comments

There's Plenty of Room at the Bottom: Invitation to Enter a New Field of Physics [pdf]

https://www.cs.jhu.edu/~basu/Papers/Feynman59.pdf
1•helloplanets•26m ago•0 comments

Show HN: Idea Forge – Multi-model product validation(validated an OpenClaw idea)

https://ideas.sparkngine.com/
1•oliverchoy•27m ago•0 comments

Show HN: I taught GPT-OSS-120B to see using Google Lens and OpenCV

3•vkaufmann•30m ago•0 comments

What color are your bits? (2004)

https://ansuz.sooke.bc.ca/entry/23
1•tomodachi94•33m ago•0 comments

Simple email API for proton bridge

https://github.com/pgray/mayl
2•pgray•37m ago•0 comments

Stay Hungry, Stay Foolish (2005)

https://stevejobsarchive.com/stories/stay-hungry-stay-foolish
3•walterbell•38m ago•0 comments

High-deductible health plans associated with 46% worse mortality

https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2844474
4•brandonb•39m ago•1 comments

Logic That Patterns Find

https://udara.io/logic-and-noise/
1•udara•39m ago•1 comments

Show HN: I made myself a no-nonsense TODO app

https://todo-app-light.pages.dev/
1•anjandutta•40m ago•0 comments

Functional Programming in an LLM World

https://notes.druchan.com/fp-in-llm-world
1•druchan89•40m ago•0 comments

I completed the MV in one day. Below is a detailed breakdown of how it was done

https://www.youtube.com/watch?v=rxWNmzQpW2c
1•luokai•43m ago•1 comments

Show HN: "hard questions" as a shared language for cross-domain reasoning

https://github.com/onestardao/WFGY
2•wfgy-github•44m ago•0 comments

When people think about aliens, they make assumptions which are wrong

https://www.mindlessalgorithm.com/alien-assumptions/
2•helloplanets•45m ago•0 comments

Brandon Wint: How Do We Know When A Poem Is Finished?

https://www.youtube.com/watch?v=k9hPmp09ssc
1•marysminefnuf•49m ago•0 comments

GraphQLite, Graph Network Extension on Top of SQLite

https://github.com/colliery-io/graphqlite
2•ekianjo•52m ago•0 comments

Show HN: Clawhosting.io– Managed OpenClaw

https://clawhosting.io
1•rezaghp•54m ago•0 comments

Modular Buys BentoML

https://www.modular.com/blog/bentoml-joins-modular
1•carefree-bob•57m ago•0 comments

Show HN: Hosting dynamic webcal on GitHub pages

https://github.com/sfw185/BJJCal
1•faridw•57m ago•0 comments