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.

Suspected YouTube bug spikes RAM over 7gbs users report lag and frozen tabs

https://www.tomshardware.com/software/a-suspected-youtube-interface-bug-spikes-ram-usage-above-7-...
1•Zeidd•37s ago•0 comments

I left academia to sell Elephant Garlic online

https://demeterfamilyfarm.com/
1•WWIII_Historian•3m ago•0 comments

2026 Cocodona Livestream Day 1 [video]

https://www.youtube.com/watch?v=dWhF6tTn8zI
1•BiraIgnacio•8m ago•0 comments

VSCode Dark Islands – Safe Version

https://github.com/raaid3/vscode-dark-islands
1•raaid3•9m ago•1 comments

Metalenz Has Figured Out a Way to Make Face ID Invisible

https://www.wired.com/story/metalenz-has-figured-out-a-way-to-make-face-id-invisible/
1•0in•11m ago•0 comments

An unbiased benchmark for how well agents can read your docs

https://docsalot.dev/benchmarks/docs
1•fazkan•14m ago•0 comments

America's retail army came to rule the stock market

https://www.ft.com/content/ee8a0604-84cb-44da-bb33-f36818944581
2•petethomas•15m ago•0 comments

Started Exploring Payment Infrastructure for Online Businesses (Stripe, API)

https://chain2pay.cloud
1•fintraxx•16m ago•0 comments

The Open Social Web Needs Section 230 to Survive

https://www.techdirt.com/2026/05/04/the-open-social-web-needs-section-230-to-survive/
3•HotGarbage•22m ago•0 comments

When Decoded Isn't Verified: Closing a Trust-Boundary Gap in Envoy's JWT Filter

https://netguard24-7.com/blog/envoy-jwt-authn-confused-deputy-pr-43630
1•cybrdude•25m ago•0 comments

The Roomba Guy's Second Act: A Robot You'll Want to Snuggle

https://www.wsj.com/tech/ai/familiar-machines-and-magic-robot-c8711e45
1•aanet•25m ago•1 comments

April 2026 Links

https://nomagicpill.substack.com/p/april-2026-links
1•nomagicpill•27m ago•0 comments

Cerebras Leads Crop of IPOs Rushing to Tap Market Before SpaceX

https://techcrunch.com/2026/05/04/openais-cozy-partner-cerebras-is-on-track-for-a-blockbuster-ipo/
2•giwook•29m ago•0 comments

ARPA-H allocates $35M to osteoarthritis reversal therapy

https://www.colorado.edu/today/2026/04/06/simple-shot-shows-promise-reverse-osteoarthritis-within...
1•warbaker•30m ago•0 comments

Hantavirus crops up on a cruise ship – what scientists are watching

https://www.nature.com/articles/d41586-026-01450-7
1•warbaker•37m ago•0 comments

The Grand Theory of Everything (2007)

https://dl.acm.org/doi/pdf/10.1145/1281421.1281430
2•jruohonen•38m ago•0 comments

Ask HN: Cryptic refusals of credit cards with Firefox?

1•everybodyknows•39m ago•1 comments

KDE Plasma gesture handling and other input related news

https://blogs.kde.org/2026/05/03/gestures-in-graz-and-beyond/
2•f_r_d•39m ago•0 comments

Bringing WolfHSM to STM32H5 TrustZone: Production-Grade HSM on a Cortex-M33

https://www.wolfssl.com/bringing-wolfhsm-to-stm32h5-trustzone-production-grade-hsm-on-a-cortex-m33/
1•aidangarske•39m ago•0 comments

The A.I. Industry Is Booming. When Will It Make Money?

https://www.newyorker.com/news/the-financial-page/the-ai-industry-is-booming-when-will-it-actuall...
4•petethomas•41m ago•0 comments

Show HN: Continuum, a pedantic recreation of the OMNI font

https://github.com/ChristopherDrum/continuum/
2•ChristopherDrum•42m ago•0 comments

The First Firmware TPM with Post-Quantum Cryptography

https://www.wolfssl.com/the-first-firmware-tpm-with-post-quantum-cryptography/
1•aidangarske•43m ago•0 comments

SEC vs. Consent Motion for Entry of Final Judgement [pdf]

https://www.sec.gov/files/litigation/complaints/2026/judgment26548.pdf
1•ksherlock•45m ago•0 comments

The First COSE Implementation with ML-DSA

https://aidangarske.github.io/wolfCOSE/blog/wolfcose-pqc-cose/
1•aidangarske•48m ago•0 comments

The case against OpenAI is getting markedly stronger

https://twitter.com/garymarcus/status/2051347785761616101
4•abriosi•49m ago•0 comments

Why Waste Money?

https://rentry.co/it937bh4
2•gavmor•50m ago•1 comments

Show HN: 10K English words traced to 4 foundations(Space, Time, Energy, Pattern)

1•sauronsrv•52m ago•0 comments

Ask HN: Where are you getting your AI news from?

4•baetylus•53m ago•0 comments

SprintiQ – open-source sprint planning for Claude Code

https://github.com/SprintiQ-Incorporated/sprintiq
2•sprintiq•55m ago•0 comments

One Map Key, One Lookup

https://testing.googleblog.com/2026/04/one-map-key-one-lookup.html
2•birdculture•58m ago•0 comments