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

Ask HN: How do I contribute to OSS without giving training data to AI companies?

1•cosiiine•26s ago•0 comments

"﷽" U+fdfd: Arabic Ligature Bismillah AR-Rahman AR-Raheem (Unicode Character)

https://unicodeplus.com/U+FDFD
1•birdculture•41s ago•0 comments

Apple adds Bosch, Cirrus Logic, others to US manufacturing program, invest $400M

https://www.reuters.com/business/apple-adds-bosch-cirrus-logic-others-us-manufacturing-program-in...
1•onemoresoop•48s ago•0 comments

Why Linguistic Context Outperforms Raw Data for LLM Decision-Making

https://www.prereason.com/evidence/research
1•KalskiTheDan•55s ago•0 comments

The JuliaMono Typeface

https://juliamono.netlify.app/
1•tosh•1m ago•0 comments

France confirms oil crisis, says 30-40% of Gulf energy infrastructure destroyed

https://www.france24.com/en/france-confirms-oil-crisis-says-30-40-gulf-energy-infrastructure-dest...
1•toomuchtodo•2m ago•0 comments

IRGC recruiting 12 year olds to fight US "in support roles"

https://www.iranintl.com/en/202603261604
1•spwa4•3m ago•0 comments

Training Driving AI at 50k× Real Time

https://spectrum.ieee.org/gm-scalable-driving-ai
1•Brajeshwar•3m ago•0 comments

Meta AI Research – An AI Model of the Human Brain

https://aidemos.atmeta.com/tribev2/
1•dmarcos•3m ago•1 comments

Helium shortage has started impacting tech supply chains, execs say

https://www.reuters.com/world/asia-pacific/helium-shortage-has-started-impacting-tech-supply-chai...
1•onemoresoop•4m ago•0 comments

Show HN: Pytest tests catching Python supply chain attacks (litellm .pth vector)

https://github.com/Quality-Max/supply-chain-scanner
1•qualitymax•5m ago•0 comments

Nobody Is Defaulting. That's the Problem

https://kyletsai123.substack.com/p/nobody-is-defaulting-thats-the-problem
2•Kyle0939•5m ago•0 comments

Casio|the Special One – S100X Japanese Lacquer Edition [video]

https://www.youtube.com/watch?v=YTwESBcgoyQ
1•xavaki•5m ago•0 comments

Gov. Newsom's Office Claims Grindr Provides to Them Opponent's Usage Data

https://twitter.com/GovPressOffice/status/2036864339722875380
1•fortran77•6m ago•0 comments

JetBrains kills X11 in WebStorm 2026.1

https://www.neowin.net/news/jetbrains-releases-webstorm-20261-with-typescript-6-support-and-wayla...
1•bundie•10m ago•0 comments

Nemotron-Cascade 2: Post-Training LLMs with Cascade RL, On-Policy Distillation

https://arxiv.org/abs/2603.19220
1•gmays•10m ago•0 comments

Grove: Distributed LLM Training over AirDrop

https://github.com/swarnim-j/grove
2•oldfuture•10m ago•0 comments

Google sets a timeline for post-quantum cryptography migration to 2029

https://blog.google/innovation-and-ai/technology/safety-security/cryptography-migration-timeline/
1•giuliomagnifico•11m ago•0 comments

Can I Buy a Butler Yet?

https://philc.io/butler-bet/
2•breakpointalpha•12m ago•1 comments

Show HN: Paseo – Open-source coding agent interface (desktop, mobile, CLI)

https://github.com/getpaseo/paseo
4•boudra•12m ago•0 comments

OpenBSD on SGI, 1/6: A missed opportunity

http://miod.online.fr/software/openbsd/stories/sgi1.html
1•jruohonen•13m ago•0 comments

A one-line Kubernetes fix that saved 600 hours a year

https://blog.cloudflare.com/one-line-kubernetes-fix-saved-600-hours-a-year/
1•buendiapino•13m ago•0 comments

Show HN: Slashr – live validator incident feed [SOL, ETH, SUI, ATOM]

https://slashr.dev
1•simonmorley•15m ago•1 comments

Show HN: Version 1.0 of agent-of-empires CLI agent orchestration tool

https://www.agent-of-empires.com/
1•river_otter•16m ago•0 comments

Show HN: Is this headline a big deal everywhere, or just here? Crosswire.online

https://crosswire.online/country/us
2•davidpelayo•17m ago•0 comments

The future of work is world models

https://www.strangeloopcanon.com/p/the-future-of-work-is-world-models
1•gmays•17m ago•0 comments

Show HN: Paseo – Open-source coding agent interface (desktop, mobile, CLI)

3•boudra•18m ago•1 comments

PolicyGen – free privacy policy generator, no account needed

https://policygen.app/
2•jhunters•18m ago•1 comments

The average phone now has a bigger battery than the S26 Ultra

https://www.androidauthority.com/smartphones-average-battery-capacity-increase-3652111/
1•thunderbong•18m ago•0 comments

Data Science Weekly – Issue 644

https://datascienceweekly.substack.com/p/data-science-weekly-issue-644
1•sebg•20m ago•0 comments