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.

Show HN: S3ui – Lightweight UI for Browsing Amazon S3

https://github.com/justinGrosvenor/s3ui
1•justingrosvenor•1m ago•0 comments

ReKindle

https://rekindle.ink/
1•todsacerdoti•1m ago•0 comments

Firefox Getting New Controls to Turn Off AI Features

https://www.macrumors.com/2026/02/02/firefox-ai-toggle/
5•stalfosknight•2m ago•0 comments

Glossopetrae: Procedural Xenolinguistic Engine for Al

https://github.com/elder-plinius/GLOSSOPETRAE
1•SeriousM•3m ago•1 comments

Show HN: TPA – A Zero-Trust Protocol for Sovereign Governance

1•CuriousP•3m ago•0 comments

EasyClaw – lightweight GUI installer for OpenClaw

https://easyclaw.com
1•svemyh•6m ago•2 comments

Does AI have human-level intelligence? (Nature Comment)

https://www.nature.com/articles/d41586-026-00285-6
1•dryarzeg•6m ago•0 comments

Ask HN: What weird or scrappy things did you do to get your first users?

3•preston-kwei•7m ago•0 comments

DuckDB Developer Meeting 1

https://duckdb.org/events/2026/01/30/duckdb-developer-meeting-1/
1•kermatt•8m ago•0 comments

The Local Weather

https://joeyh.name/blog/entry/the_local_weather/
1•pabs3•9m ago•0 comments

List of Fallacies

https://en.wikipedia.org/wiki/List_of_fallacies
1•basilikum•11m ago•1 comments

NNSA conducts aerial radiation surveys over San Francisco ahead of Super Bowl

https://www.energy.gov/nnsa/articles/nnsa-conduct-aerial-radiation-assessment-surveys-over-san-fr...
2•wilson090•12m ago•1 comments

Nvidia and Oracle are sending similar warning signs about the AI trade

https://www.morningstar.com/news/marketwatch/2026020291/nvidia-and-oracle-are-sending-similar-war...
1•zerosizedweasle•12m ago•0 comments

Show HN: Nono – Kernel-enforced sandboxing for AI agents

https://github.com/lukehinds/nono
1•decodebytes•13m ago•0 comments

How to Measure Social Media Marketing Performance

https://www.scoopanalytics.com/blog/how-to-measure-social-media-marketing-performance
1•nathansmithsco•16m ago•1 comments

Now anyone can tap Ring doorbells to search for lost dogs

https://www.theverge.com/tech/871916/search-party-non-ring-owners-neighbors-app
1•cdrnsf•17m ago•0 comments

French IT group Capgemini to sell US subsidiary linked to ICE after outcry

https://www.france24.com/en/france/20260201-french-it-group-capgemini-to-sell-us-subsidiary-linke...
2•ohjeez•17m ago•0 comments

Notepad++ hijacking blamed on Chinese Lotus Blossom

https://www.theregister.com/2026/02/02/notepad_hijacking_lotus_blossom/
1•maguszin•17m ago•0 comments

Grounding LLMs with Recursive Code Execution

https://yogthos.net/posts/2026-01-12-recursive-language-model.html
1•PaulHoule•18m ago•0 comments

Show HN: I'm writing a scalable alternative to gource with diff animation modes

https://github.com/navid-m/rush
1•death_eternal•19m ago•0 comments

Step 3.5 Flash LLM model, agentic coding ~18x faster than GLM 4.7 / Kimi K2.5

https://huggingface.co/stepfun-ai/Step-3.5-Flash
1•skhameneh•20m ago•1 comments

Newsgrouper

https://newsgrouper.org/tops
2•DyslexicAtheist•20m ago•0 comments

How to Measure Content Performance

https://www.scoopanalytics.com/blog/how-to-measure-content-performance
1•andrewsimone•20m ago•1 comments

Safeclaw the safe OpenClaw alternative with no language model and no APIs

https://github.com/princezuda/safeclaw
2•safeclaw•20m ago•1 comments

Open Sourced US Tax Calculation Library

https://github.com/tax-logic-core/tax-logic-core
3•tax-logic•21m ago•1 comments

Why Track Business Metrics

https://www.scoopanalytics.com/blog/why-track-business-metrics
1•emilyrhodes•22m ago•0 comments

Show HN: aTerm – a terminal workspace built for AI coding workflows

https://github.com/saadnvd1/aTerm
1•saadn92•25m ago•0 comments

Ask HN: Why are customer feedback boards so static? Building a live alternative

1•develotor•27m ago•0 comments

Ever been left wondering where that one random item is?

https://apps.apple.com/us/app/shelver-home-organization/id6756636954
1•shelverapp•28m ago•1 comments

LLMs sabotage existing programming practices by privatizing a public good

https://michiel.buddingh.eu/enclosure-feedback-loop
1•pabs3•29m ago•0 comments