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.

Japan Airlines begins humanoid robot trials at Tokyo's Haneda airport as labor s

https://www.cnbc.com/2026/05/01/japan-airlines-humanoid-robots-haneda-labor-shortage.html
1•bookmtn•1m ago•0 comments

Elon Musk Seemingly Admits xAI Has Used OpenAI's Models to Train Its Own

https://www.wired.com/story/elon-musk-distill-openai-models-partly-xai/
3•satai•8m ago•0 comments

LA-SF rail will cost about $126B, with service beginning around 2040

https://ktla.com/news/california/california-high-speed-rail-cost-increase/
2•swyx•12m ago•0 comments

Show HN: Git repositories hosted directly on Freenet

https://github.com/freenet/freenet-git
3•sanity•13m ago•0 comments

U.S. Aims to Penalize Disabled Adults Who Live with Their Families

https://www.propublica.org/article/trump-social-security-ssi-disability-benefits-cuts-parents-chi...
2•petethomas•13m ago•0 comments

AliothPress – self-hosted, cloud-native CMS with a wizard-based installation

https://aliothpress.com/
2•Strodt•20m ago•0 comments

One solar storm could trigger a catastrophic collision in orbit

https://spectrum.ieee.org/kessler-syndrome-crash-clock
2•thread_id•20m ago•0 comments

Show HN: A vdom-less framework that's local first

https://github.com/terajs/terajs
2•thecodergabe•22m ago•0 comments

AI Tips and Tricks

https://www.youtube.com/watch?v=w_m5RmVsmtE
2•frag•23m ago•0 comments

Show HN: ChatToMap – Scans your chats to find all your activity and trip ideas

https://chattomap.com
1•nathan_f77•26m ago•0 comments

Kolmogorov Complexity [video]

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

10x Faster Real-Time High-Quality AI Video Generation

https://tenstorrent.com/solutions/real-time-video
1•montyanderson•30m ago•0 comments

LLM Summaries Are Ruining Your Learning

https://arpitbhayani.me/blogs/do-not-rely-on-summaries/
1•menonNN•30m ago•0 comments

AI and the Future of News 2026

https://reutersinstitute.politics.ox.ac.uk/news/ai-and-future-news-2026-what-we-learnt-about-its-...
1•jruohonen•32m ago•0 comments

What do you think of people buying Mac mini's to run AI?

1•namegulf•40m ago•2 comments

Task-Specific LLM Evals That Do and Don't Work

https://eugeneyan.com/writing/evals/
1•eigenBasis•41m ago•0 comments

Mark Zuckerberg Says AI Costs Contributed to Layoffs of 8k Staffers

https://www.forbes.com/sites/antoniopequenoiv/2026/04/30/mark-zuckerberg-says-ai-costs-contribute...
2•ZeidJ•45m ago•0 comments

Workforce Transparency Act [pdf]

https://www.warner.senate.gov/wp-content/uploads/2026/04/Warner.-Budd-Workforce-Transparency-Act.pdf
1•petethomas•45m ago•0 comments

Call centres dismantled and ten arrested in EUR 50 million online fraud case

https://www.europol.europa.eu/media-press/newsroom/news/call-centres-dismantled-and-ten-arrested-...
1•jruohonen•45m ago•0 comments

C8s: A Confidential Kubernetes Architecture

https://arxiv.org/abs/2604.26974
2•badcryptobitch•47m ago•0 comments

Keep your agents updated with latest in your libraries

https://library-skills.io/
1•ankitg12•48m ago•0 comments

Ask HN: In the age of AI do we need to learn how to code?

1•JasonHEIN•52m ago•1 comments

OpenAtom Foundation

https://en.wikipedia.org/wiki/OpenAtom_Foundation
1•gfalcao•53m ago•0 comments

Product market fit isn't a stage, it's a gauntlet

https://jonno.nz/posts/product-market-fit-is-a-gauntlet/
1•halger•53m ago•0 comments

Dividing 1 by 998,001 Yields a Very Strange Decimal

https://brilliantlearning.in/dividing-1-by-998001-yields-a-very-strange-decimal/
4•thunderbong•56m ago•0 comments

AWS Will Be an OEM, Just Like Google and Maybe Microsoft

https://www.nextplatform.com/cloud/2026/04/30/aws-will-be-an-oem-just-like-google-and-maybe-micro...
1•rbanffy•58m ago•0 comments

PrivClaw – Open-source self-hostable AI plugin marketplace (FastAPI and Next.js)

https://github.com/geneleo537-afk/privclaw
1•GeneLeo•58m ago•0 comments

CLI based issue tracker TUI – distributed and backed by Git

https://github.com/ljtn/epiq
1•tjek•58m ago•0 comments

The Many Forms of Marcel Duchamp

https://www.newyorker.com/magazine/2026/05/04/marcel-duchamp-art-review-moma
1•petethomas•1h ago•0 comments

LLMs Don't Quite Beat Classical Hyperparameter Optimization Algorithms

https://github.com/ferreirafabio/autoresearch-automl
3•achierius•1h ago•2 comments