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

Letter complaining about delay in postal delivery in Victorian London-8 May 1881

https://www.victorianlondon.org/communications/frequency.htm
1•thunderbong•1m ago•0 comments

When Trump Jawbones the Market, Bet Against Him at Your Peril

https://www.wsj.com/economy/when-trump-jawbones-the-market-bet-against-him-at-your-peril-92825a3e
1•petethomas•5m ago•0 comments

Show HN: TeardownHQ, teardowns/playbooks of how indie startups grew

https://teardownhq.io
2•arogers17•7m ago•1 comments

Barcelona's Sagrada Família Nears Completion–and Inflames a Tourism Backlash

https://www.wsj.com/world/europe/barcelonas-sagrada-familia-nears-completionand-inflames-a-touris...
1•petethomas•8m ago•0 comments

Jeff Bezos Is Funding a Wild Hunt for the Brain's 'Core Algorithm'

https://www.wired.com/story/jeff-bezos-is-funding-a-wild-hunt-for-the-brains-core-algorithm/
2•uxhacker•15m ago•0 comments

Cremona Art Week

https://0100101110101101.org/show-cremona-art-week/
1•jruohonen•15m ago•0 comments

Israel says it has struck Iran after taking missile fire

https://apnews.com/article/iran-us-ceasefire-hezbollah-israel-c16dc4917512f7436a3921a4b044b98b
2•JumpCrisscross•19m ago•0 comments

Sunset of the Consumer Version of Gemini Code Assist on GitHub

https://developers.google.com/gemini-code-assist/docs/deprecations/consumer-code-review
1•tvvocold•26m ago•0 comments

The coming rise of anti-AI populism

https://www.ft.com/content/b4429ea0-4a0a-4a28-96f5-debf4f3eb339
1•1vuio0pswjnm7•26m ago•1 comments

A New Ad Campaign Tries to Make A.I. A Little Less Scary

https://www.nytimes.com/2026/06/04/style/chatgpt-advertising-campaign-artificial-intelligence.html
1•1vuio0pswjnm7•29m ago•1 comments

Painting the Internet: A Different Kind of Warhol Worm [pdf]

https://cspages.ucalgary.ca/~aycock/papers/artworm.pdf
1•jruohonen•33m ago•0 comments

Texas grid flags risks as data centers, crypto sites fail voltage tests

https://www.reuters.com/business/energy/texas-grid-flags-risks-data-centers-crypto-sites-fail-vol...
10•1vuio0pswjnm7•34m ago•0 comments

April in Servo: new Android UI, focus, forms, security fixes, and more

https://servo.org/blog/2026/05/31/april-in-servo/
1•maxloh•34m ago•0 comments

The source of economic shocks matters for their political outcomes

https://journals.sagepub.com/doi/10.1177/20531680251379914
4•PaulHoule•37m ago•0 comments

Tech sell-off widens as South Korea index plunges

https://www.ft.com/content/2f0f727b-5315-445c-b8f1-6aa65bd7474c
5•JumpCrisscross•38m ago•0 comments

Yoti denies reporting GrapheneOS user, says screenshots may be fake

https://discuss.grapheneos.org/d/36134-grapheneos-user-reported-to-authorities-for-using-graphene...
3•Cider9986•38m ago•1 comments

Earthquake of magnitude 7.8 strikes off southern Philippines

https://www.reuters.com/business/environment/earthquake-magnitude-73-strikes-mindanao-philippines...
1•JumpCrisscross•39m ago•1 comments

Algorithmic Monocultures in Hiring

https://algorithmichiring.github.io/
7•drchiu•44m ago•0 comments

NPM-Scan: Detecting Six Major NPM Supply Chain Campaigns (June 2026)

https://www.npmjs.com/package/@lateos/npm-scan
2•lateos-ai•47m ago•0 comments

Show HN: ARouter – drop-in OpenAI/Anthropic proxy that cuts cost and fails over

https://github.com/sricola/arouter
1•sricola•50m ago•1 comments

What it costs to run a one-Rails-app SaaS per month

https://www.railsreviews.com/articles/what-it-costs-to-run-a-rails-saas
2•doppp•55m ago•0 comments

President says Netanyahu will have 'no choice' but to accept a deal with Iran

https://www.ft.com/content/a0ce59f9-fbde-49e8-9158-fba3d4079859
2•Jimmc414•57m ago•1 comments

Force-sensing mobile microrobotic grippers for gentle and precise bioassembly

https://pubs.aip.org/aip/apb/article/10/2/026103/3388070/Force-sensing-mobile-microrobotic-grippe...
2•PaulHoule•57m ago•0 comments

New drug 'functionally cures' many hepatitis B virus infections

https://www.science.org/content/article/new-drug-functionally-cures-many-hepatitis-b-virus-infect...
12•gmays•57m ago•0 comments

Show HN: Preseason.ai – Open-source benchmark of devtool choices, ranked by LLM

https://www.preseason.ai
2•widenrun•59m ago•0 comments

DeepSeek V4 Pro beats GPT-5.5 Pro on precision

https://runtimewire.com/article/deepseek-v4-pro-beats-gpt-5-5-pro-on-precision
53•yogthos•1h ago•4 comments

Phonestheme

https://en.wikipedia.org/wiki/Phonestheme
3•davidbarker•1h ago•0 comments

Newborns' cry melody is shaped by their native language

https://pubmed.ncbi.nlm.nih.gov/19896378/
1•davidbarker•1h ago•0 comments

Dev log:Made an app blocker unlocks by verifying real App HealthKit data

https://disciplinelock.com/
1•zichengwang•1h ago•0 comments

1worldflag: A blue dot on a transparent background

https://1worldflag.com/
3•davidbarker•1h ago•0 comments