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.

CIA Launches New Acquisition Framework to Turbocharge Work with Private Sector

https://www.cia.gov/stories/story/cia-launches-new-acquisition-framework-to-turbocharge-collabora...
1•keepamovin•2m ago•0 comments

Tell HN: GitHub Had 40 Service Incidents This Year (Jan 1 – Feb 10)

https://www.githubstatus.com/history
2•vintagedave•3m ago•0 comments

How Many Years of Pizza Do You Have?

https://parkscomputing.com/page/how-many-years-of-pizza
1•paulmooreparks•4m ago•0 comments

Please Don't Feed the Scattered Lapsus ShinyHunters

https://krebsonsecurity.com/2026/02/please-dont-feed-the-scattered-lapsus-shiny-hunters/
1•tatersolid•5m ago•0 comments

The Car Industry Is Racing to Replace Chinese Code

https://www.wsj.com/business/autos/the-car-industry-is-racing-to-replace-chinese-code-6b939e1f
1•JeanKage•6m ago•0 comments

ClickHouse AI Policy

https://github.com/ClickHouse/ClickHouse/blob/master/AI_POLICY.md
2•chuckhend•7m ago•0 comments

Why Shipping?

https://owain.bearblog.dev/why-shipping/
1•OwainBrennan•7m ago•0 comments

Brain Training Reduces Dementia Risk Across 10 Years

https://www.apa.org/news/press/releases/2016/08/brain-training-dementia
1•putzdown•11m ago•0 comments

Show HN: Scaapr – Making static VC market maps interactive and searchable

https://www.scaapr.com/68aadad8ab242768267a0e72
1•nissims•12m ago•0 comments

Man vs. AI – Building a Slack Bot

https://siivikko.fi/blog/man-vs-ai-building-a-slack-bot/
2•blockonomics_co•12m ago•1 comments

Seedance 2 AI Video – Generate Videos with Audio Sync

https://seedance2.app
1•builderhq_io•12m ago•0 comments

StrengthenTheRope [video]

https://www.youtube.com/watch?v=odEU3pPZQsQ
1•atzmzt•13m ago•1 comments

Corruption Perceptions Index 2025

https://www.transparency.org/en/cpi/2025
3•tosh•13m ago•0 comments

Show HN: Cross-platform RSS reader with user-defined prompt workflows

https://vinsonguo.github.io/introducing-smartrss
1•vinsonguo•16m ago•0 comments

Sarvam Arya: Orchestration stack for production-grade agents

https://www.sarvam.ai/blogs/introducing-sarvam-arya
1•todsacerdoti•17m ago•0 comments

Show HN: Currency Rates on GitHub Pages

https://currency-rates.github.io/
1•medv•17m ago•0 comments

Show HN: Echo, a new SSH client for iOS built on Ghostty

https://replay.software/updates/introducing-echo
1•sgottit•18m ago•0 comments

Welfare states help shaping financial markets

https://theloop.ecpr.eu/its-not-finance-its-your-pensions/
1•kome•20m ago•0 comments

Lines of Code Are Back (and It's Worse Than Before)

https://www.thepragmaticcto.com/p/lines-of-code-are-back-and-its-worse
2•allanmacgregor•20m ago•0 comments

More Social, Less Media

https://ente.io/blog/r/social-media/
1•vishnukvmd•21m ago•0 comments

Big oil is betting big on Toyota to win the solid-state battery race

https://electrek.co/2026/02/09/big-oil-is-betting-big-on-toyota-to-win-the-solid-state-battery-race/
1•breve•24m ago•0 comments

We Do What Nintendon't

1•qzxcvbn•24m ago•0 comments

BYD hits a milestone with solid-state EV batteries due out as soon as 2027

https://electrek.co/2026/02/09/byd-hits-solid-state-ev-battery-milestone-due-out-as-soon-as-2027/
3•breve•27m ago•0 comments

Ephemeral – Easily manage and host Webosockets on the edge

https://ephemeral.ws
1•ryzmdotdev•29m ago•2 comments

Show HN: Hire a 24/7 AI Employee for $5k/Year

https://www.hangryfeed.com/ai-employees
1•skevan2•30m ago•0 comments

Show HN: Kanban-md – File-based CLI Kanban built for local agents collaboration

https://github.com/antopolskiy/kanban-md
2•santopol•30m ago•0 comments

Code Storage by the Pierre Computer Company

https://code.storage/
1•admp•32m ago•0 comments

I Resigned from xAI Today

https://twitter.com/Yuhu_ai_/status/2021113745024614671
2•tosh•34m ago•0 comments

Why Jony Ive put buttons in the Ferrari Luce EV (full video)

https://www.youtube.com/watch?v=6Wv1btxCjVE
2•cromka•35m ago•0 comments

Oliver Evans

https://en.wikipedia.org/wiki/Oliver_Evans
1•walterbell•36m ago•0 comments