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.

Bell's X-76 Fold-Away Rotor Aircraft Is DARPA's Newest X-Plane

https://www.twz.com/air/bells-x-76-fold-away-rotor-aircraft-is-darpas-newest-x-plane
1•throwawayffffas•51s ago•0 comments

Claude helped me get a traffic light reprogrammed in my town

https://www.reddit.com/r/ClaudeAI/s/yqe7NEFI6b
1•merlindru•3m ago•0 comments

Show HN: SoloDB 1.1 – embedded .NET document DB with real referential integrity

https://unconcurrent.com/articles/SoloDB110.html
1•falsename•3m ago•0 comments

Stop using chat history as your agent's state store

https://blog.raed.dev/posts/agentic-workflows-are-not-conversations/
1•Raed667•5m ago•0 comments

MPs reject ban on social media for under-16s

https://www.theguardian.com/uk-news/2026/mar/09/proposed-ban-on-social-media-for-under-16s-reject...
1•chrisjj•10m ago•0 comments

Making your JITted Code known: Let me count the ways

https://wakelift.de/2026/03/09/making-your-jitted-code-known-let-me-count-the-ways/
1•lizmat•10m ago•0 comments

Ask HN: Are there any alternatives to LocalStack?

1•sceptic123•11m ago•1 comments

Increased risk of bullying in open-plan offices

https://www.eurekalert.org/news-releases/1118481
1•robtherobber•12m ago•0 comments

We got tired of ChatGPT confidently giving wrong answers about our SDK

https://blog.leanmcp.com/blog/llms-getting-leanmcp-wrong
1•jialu1•15m ago•0 comments

RISC-V Integrated Matrix Extension Release for Internal Review

https://github.com/riscv/integrated-matrix-extension/releases
1•camel-cdr•17m ago•0 comments

Jai in 2026: The State of Jonathan Blow's Programming Language

https://www.mrphilgames.com/blog/jai-in-2026
1•roflcopter69•20m ago•0 comments

Dependency Tracking Is Hard

https://daniel.haxx.se/blog/2026/03/10/dependency-tracking-is-hard/
2•riffraff•21m ago•0 comments

WikiFlix – freely licened/public domain movies uploaded to Wikipedia

https://wikiflix.toolforge.org/#/
2•bawolff•24m ago•1 comments

Tachyum Open Sources 281GB/S TDIMM for the Future of AI and Computing (2025)

https://www.tachyum.com/media/press-releases/2025/11/25/tachyum-open-sources-281gb/s-tdimm-for-th...
1•peter_d_sherman•25m ago•0 comments

Free file-sharing app for macOS for all small teams out there

https://apps.apple.com/us/app/filenotch-transfer-files/id6758035666?mt=12
1•lillyAnne•26m ago•0 comments

The 3-Company Cartel That Controls Every Gadget on Earth [video]

https://www.youtube.com/watch?v=Tqq4qKDzX6o
1•mgh2•27m ago•0 comments

Show HN: Draft2final – CLI converts Markdown into manuscript and screenplay PDFs

https://www.draft2final.app/
1•cosmiciron•28m ago•0 comments

Ask HN: Do you still run Redis and workers just for background jobs?

1•sergF•32m ago•0 comments

Looking for a technical co-founder to build a group travel platform

https://www.booqall.com/
1•Gedtech•33m ago•1 comments

Proxima Fusion, the first commercial fusion power plant in Europe

https://www.proximafusion.com/press-news/proxima-fusion-rwe-the-free-state-of-bavaria-and-max-pla...
2•taubek•34m ago•0 comments

1,300-pound NASA satellite will crash to Earth on March 10

https://www.space.com/space-exploration/satellites/incoming-1-300-pound-nasa-satellite-will-crash...
3•Brajeshwar•35m ago•0 comments

SETI admits its search for alien life may be too narrowly focussed

https://www.theregister.com/2026/03/10/seti_admits_its_search_for/
1•samizdis•39m ago•0 comments

Billionaires are a danger to themselves and (especially) us

https://pluralistic.net/2026/03/09/autocrats-of-trade-2/
2•only_in_america•41m ago•0 comments

Spider-Man and Hydra

https://medium.com/luminasticity/spider-man-and-hydra-680a9306f599
1•bryanrasmussen•41m ago•0 comments

Meteorite Crashes Through Roof in Germany After Fiery Light Show

https://www.nytimes.com/2026/03/09/science/meteorite-europe-crash-germany-roof.html
1•Brajeshwar•42m ago•0 comments

Predbat Documentation

https://springfall2008.github.io/batpred/
1•DamonHD•43m ago•0 comments

What the EU's new industry and 'Made in Europe' rules mean for climate action

https://www.carbonbrief.org/qa-what-the-eus-new-industry-and-made-in-europe-rules-mean-for-climat...
2•doener•45m ago•0 comments

CSMWrap: Legacy BIOS booting on UEFI-only systems via SeaBIOS

https://github.com/CSMWrap/CSMWrap
1•_joel•46m ago•0 comments

The end of geo-blocking within the EU

https://www.europe-consommateurs.eu/en/shopping-internet/end-of-geoblocking.html
3•b13n1u•46m ago•0 comments

Redox OS has adopted a Certificate of Origin policy and a strict no-LLM policy

https://gitlab.redox-os.org/redox-os/redox/-/blob/master/CONTRIBUTING.md
56•pjmlp•47m ago•34 comments