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•11mo 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•11mo 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•11mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•11mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Kitum Cave

https://en.wikipedia.org/wiki/Kitum_Cave
1•Jimmc414•44s ago•0 comments

Toward Autonomous Long-Horizon Engineering for ML Research

https://arxiv.org/abs/2604.13018
1•gmays•2m ago•0 comments

Healthchecks.io Now Uses Self-Hosted Object Storage

https://blog.healthchecks.io/2026/04/healthchecks-io-now-uses-self-hosted-object-storage/
1•zdw•2m ago•0 comments

Things AI Shouldn't Do

https://jsrn.net/weeknotes/2026/04/15/things-ai-shouldnt-do.html
1•speckx•3m ago•0 comments

It Is Time to Ban the Sale of Precise Geolocation

https://www.lawfaremedia.org/article/it-is-time-to-ban-the-sale-of-precise-geolocation
5•hn_acker•5m ago•0 comments

We need a physical digital music experience

https://olly.world/we-need-a-physical-digital-music-experience
1•cyanbane•7m ago•0 comments

iPhone Loyalty Hits 96.4% as Android Users Four Times More Likely to Switch

https://www.macrumors.com/2026/04/16/iphone-loyalty-survey/
2•MBCook•7m ago•1 comments

Tiktokification shall set us free

https://pluralistic.net/2026/04/17/for-youze/
1•hn_acker•8m ago•0 comments

Eliza a Play by Tom Holloway

https://www.mtc.com.au/plays-and-tickets/whats-on/season-2026/eliza
1•abrax3141•9m ago•1 comments

So many HN topics blocked by paywall. I'll pass

1•vektoralian•9m ago•0 comments

Chicken Nuget

https://daniel.haxx.se/blog/2026/03/12/chicken-nuget/
2•latexr•11m ago•1 comments

Microsoft closes book on rogue Windows Server 2025 upgrades

https://www.theregister.com/2026/04/17/microsoft_windows_server_2025/
1•Brajeshwar•11m ago•0 comments

Show HN: React Email 6.0 – An open-source email editor you can embed in your app

https://github.com/resend/react-email
6•code-in-public•11m ago•0 comments

Why nobody outside of GIS use Postgres for large datasets analytics

https://dekart.xyz/docs/knowledge-base/gis-analytics-cost-comparison/
1•delfrrr•11m ago•0 comments

AI agents hire meatbags as the perils of chaos thrive in Silicon Valley

https://www.sdxcentral.com/control-plane/ai-agents-hire-meatbags-as-the-perils-of-chaos-thrive-in...
4•oavioklein•13m ago•1 comments

Built a full-stack charitable giving SaaS as a solo developer with agentic AI

https://www.pifster.org/
2•conleec•14m ago•0 comments

How Push Notifications Can Betray Your Privacy (and What to Do About It)

https://www.eff.org/deeplinks/2026/04/how-push-notifications-can-betray-your-privacy-and-what-do-...
3•hn_acker•16m ago•0 comments

Crystal 1.20.0 Is Released

https://crystal-lang.org/2026/04/16/1.20.0-released/
5•sdogruyol•17m ago•1 comments

Tracing the social half-life of a zombie citation

https://codeactsineducation.wordpress.com/2026/01/30/tracing-the-social-half-life-of-a-zombie-cit...
2•jruohonen•20m ago•0 comments

Show HN: simple_ans – Asymmetric Numeral Systems Compression in Python/C++

https://github.com/flatironinstitute/simple_ans
2•jmagland•21m ago•1 comments

We Reproduced Anthropic's Mythos Findings with Public Models

https://blog.vidocsecurity.com/blog/we-reproduced-anthropics-mythos-findings-with-public-models
8•__natty__•22m ago•0 comments

Taguar – Desktop app for audio tagging

https://github.com/ad-si/Taguar
3•adius•22m ago•1 comments

Archive of Byte magazine, starting with issue #1 in 1975

https://archive.org/details/byte-magazine-1975-09
2•DamnInteresting•24m ago•0 comments

The creative software industry has declared war on Adobe

https://www.theverge.com/tech/913765/adobe-rivals-free-creative-software-app-updates
4•bookofjoe•24m ago•0 comments

Older Women Are in Demand by Younger Men

https://www.nytimes.com/2026/04/16/opinion/younger-men-dating-older-women.html
3•metadat•26m ago•0 comments

Mystery Cpuid Bit

https://www.os2museum.com/wp/mystery-cpuid-bit/
2•ingve•26m ago•0 comments

Attention Decay

https://dzoba.com/blog/attention-decay/
3•speckx•28m ago•1 comments

Ask HN: Agents Craving Context

1•AnthonyR•31m ago•0 comments

Why robots can't replace guide dogs (yet)

https://www.popsci.com/technology/robots-replace-guide-dogs/
3•Vaslo•31m ago•0 comments

Internet Content Regulation Is Coming to Canada

https://axisofeasy.com/aoe/internet-content-regulation-is-coming-to-canada/
6•StuntPope•32m ago•0 comments