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.

Ask HN: Why are some websites locking or using the audio device on Windows?

1•ezconnect•2m ago•0 comments

Leak confirms GrapheneOS and Motorola partnership

https://piunikaweb.com/2026/02/27/leak-confirms-grapheneos-motorola-partnership-for-non-pixel-har...
2•Cider9986•8m ago•0 comments

You might be falling behind without realizing it

1•hoangnnguyen•12m ago•1 comments

Show HN: AI Tutorial Series – Building Neural Networks with Python

https://peertube.cif.su/watari/videos/watch/123456
1•watari_ai_tools•14m ago•0 comments

Show HN: Agent Hand – Tmux session manager for AI coding agents (Rust)

https://weykon.github.io/agent-hand/
1•weykon•22m ago•0 comments

The proposal for generic methods for Go has been officially accepted

https://github.com/golang/go/issues/77273
2•birdculture•22m ago•0 comments

Startup idea validator – Get brutal verdict

https://dontbuild.it/
1•hackerbo•30m ago•0 comments

Students Are Skipping the Hardest Part of Growing Up

https://larrycuban.wordpress.com/2026/02/28/students-are-skipping-the-hardest-part-of-growing-up-...
2•Tomte•36m ago•0 comments

Packaging AI/ML Models as Conda Packages

https://prefix.dev/blog/packaging-ai-ml-models-as-conda-packages
1•droelf•37m ago•0 comments

OpenAI: Food First, Then Morals

1•goloroden•38m ago•0 comments

Show HN: News Pulse – Real-time global news feed, 475 sources, no algorithm

https://news-alert-eta.vercel.app
4•trevwebdev•42m ago•1 comments

Show HN: Standup.so – Paste your commits, get a standup report in seconds

https://standup-so.vercel.app
1•neoloong•47m ago•1 comments

Redirector Privacy Alternatives: forward links to privacy aware front ends

https://github.com/duyfken/RedirectorPrivacyAlternatives
2•Baljhin•52m ago•1 comments

NASA announces change to its Moon landing plans

https://www.bbc.co.uk/news/articles/c6270030neyo
2•iamflimflam1•54m ago•1 comments

Israel and the U.S. launch strikes against Iran

https://www.npr.org/2026/02/28/nx-s1-5730158/israel-iran-strikes
6•0in•54m ago•0 comments

Show HN: API checks show three suppression strategies on X

https://blog.karljtaylor.com/blog/2026-02-28-xai-search-api-suppression/
1•karljtaylor•55m ago•0 comments

When Do We Become Adults, Really?

https://www.newyorker.com/culture/annals-of-inquiry/when-do-we-become-adults-really
2•fortran77•56m ago•1 comments

Google quantum-proofs HTTPS by squeezing 2.5kB of data into 64-byte space

https://arstechnica.com/security/2026/02/google-is-using-clever-math-to-quantum-proof-https-certi...
2•maxloh•56m ago•0 comments

What Do the People Building AI Believe?

https://www.theatlantic.com/podcasts/2026/02/what-do-the-people-building-ai-believe/686173/
1•fortran77•59m ago•0 comments

Inferring Car Movement Patterns from Passive TPMS Measurements

https://dspace.networks.imdea.org/handle/20.500.12761/2011
6•wisdomseaker•59m ago•1 comments

Show HN: Mdc – Orchestrate multi-repo Docker environments with one command

https://github.com/tominaga-h/multi-docker-commander
1•tominaga-h•1h ago•0 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
2•urban_winter•1h ago•1 comments

Dario, come to Europe. Here you are allowed to do your job

3•Trickery5837•1h ago•0 comments

Show HN: Can we have Flutter-like portability without the bloated web binaries?

1•io_eric•1h ago•0 comments

Vinext: Vibe-Hacking Cloudflare's Vibe-Coded Next.js Replacement

https://www.hacktron.ai/blog/hacking-cloudflare-vinext
1•zeyu1337•1h ago•0 comments

The Day an AI Company Told The Pentagon to Go F*** Itself

https://defragzone.substack.com/p/the-day-an-ai-company-told-the-pentagon
5•frag•1h ago•0 comments

How to Cancel Claude Code

https://support.claude.com/en/articles/8325617-how-do-i-cancel-my-paid-claude-subscription
1•JasonHEIN•1h ago•1 comments

Alternative Privacy-respecting Web Front-ends to popular online platforms

https://github.com/duyfken/alternative-front-ends
1•Baljhin•1h ago•1 comments

Feature Flags: Power, Risk and Responsibility

http://emanueleminotto.github.io/blog/feature-flags-power-risk-responsabilities
1•EmanueleMinotto•1h ago•0 comments

Show HN: Open Vernacular AI Kit – preprocessing for Indian code-mixed text

https://github.com/SudhirGadhvi/open-vernacular-ai-kit
1•sudhirgadhvi•1h ago•0 comments