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.

WeSearch

https://wesearch.press/
1•EGCstudy•28s ago•1 comments

Making 10 apps in 30 Days

https://bendansby.com/posts/10-apps-30-days.html
1•webwielder2•43s ago•0 comments

Iceland's Pools and Hot Tubs Now UNESCO-Recognized. Some Locals Aren't Thrilled

https://www.nytimes.com/2026/04/30/world/europe/iceland-hot-tub-pools-tourism.html
1•bookofjoe•1m ago•1 comments

Show HN: Predicting the 2026 Kentucky Derby with 1T Monte Carlo Sims on Burla

https://burla-cloud.github.io/examples/kentucky-derby-demo/
1•Jack_at_Burla•3m ago•0 comments

AI talks draw backlash from Mass. state lawmakers

https://www.politico.com/news/2026/05/01/ai-backlash-massachusetts-lawmakers-00903440
1•1vuio0pswjnm7•4m ago•0 comments

Life update: Zig, AI, unemployment, and more [video]

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

How Oregon's Data Center Boom Is Supercharging a Water Crisis

https://waterwatch.org/how-oregons-data-center-boom-is-supercharging-a-water-crisis/
1•therobots927•6m ago•0 comments

Palantir Comes to Campus

https://nymag.com/intelligencer/article/palantir-yale-conference-ai.html
1•jbegley•7m ago•0 comments

Shitpostmodernism: Understanding the Slopgeneration

https://www.spikeartmagazine.com/articles/essay-shitpostmodernism
1•thinkingemote•7m ago•0 comments

AI Agents Are the Mass-Produced Cars of Software

https://telegraphic.substack.com/p/ai-agents-are-the-mass-produced-cars
1•telegrahi•7m ago•0 comments

Opioid maker Purdue Pharma shuts down as part of $7.4B deal

https://www.usatoday.com/story/news/nation/2026/05/01/purdue-pharma-shuts-down-opioid-crisis-oxyc...
1•geox•9m ago•0 comments

Disneyland Now Uses Face Recognition on Visitors

https://www.wired.com/story/security-news-this-week-disneyland-now-uses-face-recognition-on-visit...
2•Brajeshwar•13m ago•0 comments

Digital Ecosystems: Interactive Multi-Agent Neural Cellular Automata

https://pub.sakana.ai/digital-ecosystem/
1•jarmitage•15m ago•0 comments

How are Life-Size Figures Created at hololive production?

https://coveredge.cover-corp.com/en/list/4759
1•ai_slop_hater•16m ago•0 comments

Vibecoded my dream game, GeoGuesser for guns, now its helping with student bills

https://gunguesser.com
4•salad_vr•16m ago•5 comments

The Railway and the Balloon

https://netwars.pelicancrossing.net/2026/05/01/the-railway-and-the-balloon/
1•ColinWright•20m ago•0 comments

Floating Armoury

https://en.wikipedia.org/wiki/Floating_armoury
1•jjmarr•22m ago•0 comments

Customizing Claude Code spinner verbs

https://www.augmentedswe.com/p/customizing-claude-code-spinner-verbs
1•wordsaboutcode•22m ago•0 comments

Back end-for-Front end: The most secure architecture for browser-based apps

https://fusionauth.io/blog/backend-for-frontend-security-architecture
2•mooreds•27m ago•0 comments

Voyager and the Art of Graceful Degradation

https://www.flyingbarron.com/2026/04/voyager-and-art-of-graceful-degradation.html
1•mooreds•27m ago•0 comments

Did I photograph the Aurora or was it something else? (2016)

https://wp.lancs.ac.uk/aurorawatchuk/2016/03/16/did-i-photgraph-the-aurora-or-was-it-something-else/
1•susam•29m ago•0 comments

Upcoming Blender Development Fund and AI Policies

https://www.blender.org/news/upcoming-blender-development-fund-and-ai-policies/
2•sensanaty•30m ago•0 comments

The Annoying Usefulness of Emacs [video]

https://www.youtube.com/watch?v=DMbrNhx2zWQ
2•susam•30m ago•0 comments

The Sky Tonight

https://theskylive.com/guide
2•susam•32m ago•0 comments

New US phone network for Christians to block porn and gender-related content

https://www.technologyreview.com/2026/05/01/1136739/a-new-t-mobile-network-for-christians-aims-to...
6•thinkingemote•35m ago•2 comments

Making Your Writing Work Harder for You

https://training.kalzumeus.com/newsletters/archive/content-marketing-strategy
2•eigenBasis•37m ago•0 comments

Show HN: TradingAgents without the API bill – run multi agents in Claude Code

https://github.com/lucemia/trading-agents-plugin
1•lucemia51•42m ago•0 comments

Stop Supplying. Start Owning

https://allensthoughts.com/2026/05/01/stop-supplying-start-owning/
2•herbertl•42m ago•0 comments

Uber wants to turn its drivers into a sensor grid for AV companies

https://techcrunch.com/2026/05/01/uber-wants-to-turn-its-millions-of-drivers-into-a-sensor-grid-f...
6•nickvec•43m ago•1 comments

Zugzwang

https://en.wikipedia.org/wiki/Zugzwang
25•Qem•47m ago•7 comments