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.

How Containers Work: Building Container Networking from Scratch

https://amalchandran.xyz/journals/building-container-networking-from-scratch-part-1/
1•amalChandru•2m ago•0 comments

Show HN: Markshift – because every app decided to invent its own Markdown

https://www.markshift.net/
1•vrennat•2m ago•0 comments

AI bot gives customer 80% discount, supplier can't deliver

https://old.reddit.com/r/LegalAdviceUK/comments/1qxc7x9/an_ai_chatassist_created_and_offered_a_cu...
1•shaman1•3m ago•0 comments

Quiet – Private messaging. No servers

https://tryquiet.org/
1•MzHN•3m ago•0 comments

Litres of untreated sewage flow into the sea in New Zealand

https://www.theguardian.com/world/2026/feb/06/wellington-sewage-leak-sea-new-zealand
1•tosh•3m ago•0 comments

Exasol Virtual Schemas: The Key to Flexible Deployments

https://www.exasol.com/blog/exasol-virtual-schemas/
1•exagolo•4m ago•0 comments

LFortran Compiles Lapack

https://lfortran.org/blog/2026/02/lfortran-compiles-lapack/
2•zaikunzhang•8m ago•1 comments

I'm tired of trying to make vibe coding work for me

https://www.youtube.com/watch?v=ly-GM3aYgfQ
1•birdculture•12m ago•1 comments

Ace-Step 1.5: Pushing the Boundaries of Open-Source Music Generation

https://ace-step.github.io/ace-step-v1.5.github.io/
2•tomduncalf•13m ago•0 comments

14 Minutes → 4 Seconds: A Tale of Switching from RSpec to Minitest

https://twitter.com/ryanrhughes/status/2019258699001294911
2•Andugal•15m ago•0 comments

The Marvel Cinematic Multiverse and How It Works

https://medium.com/luminasticity/the-marvel-cinematic-multiverse-and-how-it-works-db2f7e327abe
1•bryanrasmussen•15m ago•0 comments

Nextcloud Recognized as a Digital Public Good

https://nextcloud.com/blog/nextcloud-recognized-as-a-digital-public-good/
2•kieto•16m ago•0 comments

Statin pills much safer than advertised, major review finds

https://www.bbc.com/news/articles/c80142p2g00o
1•tchalla•17m ago•0 comments

A new bill in New York would require disclaimers on AI-generated news content

https://www.niemanlab.org/2026/02/a-new-bill-in-new-york-would-require-disclaimers-on-ai-generate...
1•giuliomagnifico•26m ago•0 comments

How defensible is Gmail's position today?

2•p_zuckerman•31m ago•2 comments

What "Premium Tarot Readers" Means (and Why the Term Is Often Misused)

https://medium.com/@enrique_15267/what-premium-tarot-readers-actually-means-and-why-the-term-is-o...
1•astroideal•31m ago•1 comments

Most statin side-effects not caused by the drugs, study finds

https://www.theguardian.com/society/2026/feb/05/majority-statins-side-effects-not-caused-by-drug
2•6LLvveMx2koXfwn•32m ago•0 comments

Show HN: Emotion as cognitive infrastructure in AI, not just output

https://twitter.com/NexAIOS/status/2019352896840851834
2•NexAIOS•33m ago•2 comments

A/B test yourself vs. code agent

https://arturkesik.com/blog/ab-test-you-vs-llm/
1•arturkesik•33m ago•0 comments

When there is No Internet, there is Kiwix

https://kiwix.org/en/
2•doener•34m ago•0 comments

The world’s first sodium-ion battery EV is here and it could be a game changer

https://electrek.co/2026/02/05/first-sodium-ion-battery-ev-debuts-game-changer/
1•breve•36m ago•0 comments

The Wendelstein 7-X fusion stellarator proves its efficiency

https://www.ipp.mpg.de/5125328/05_21
3•fanf2•41m ago•0 comments

Show HN: Axiom – C++ tensor library with NumPys API, optimized for Apple Silicon

https://github.com/Frikallo/axiom
1•noahkay13•42m ago•0 comments

Agentic Memory Bottlenecks

https://jcarlosroldan.com/post/370
4•manbitesdog•44m ago•1 comments

Show HN: ThumbNew – A fast AI thumbnail generator for creators

https://thumbnew.netlify.app
1•Timexo•44m ago•1 comments

China's space aircraft carrier: superweapon or propaganda?

https://www.dw.com/en/china-taiwan-space-aircraft-luanniao-carrier-weapon-military-technology/a-7...
1•giuliomagnifico•45m ago•0 comments

No, Really, Bash Is Not Enough: Why Large-Scale CI Needs an Orchestrator

https://iankduncan.com/engineering/2026-02-06-bash-is-not-enough
2•iand675•46m ago•0 comments

Turn mental noise into clear, actionable next steps

https://www.heyecho.app/
2•samxkoh•54m ago•1 comments

Cop Transforms into Frog, According to AI-Generated Police Report

https://www.forbes.com/sites/larsdaniel/2026/01/04/cop-transforms-into-frog-according-to-ai-gener...
1•shakna•55m ago•0 comments

Show HN: Purple Word – A new word puzzle game

https://purpleword.com
6•gentlyenvy•56m ago•1 comments