frontpage.
newsnewestaskshowjobs

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.

Midjourney acquired the astrology app Co-Star

https://techcrunch.com/2026/07/24/midjourney-acquired-the-astrology-app-co-star/
1•steventruong•14s ago•0 comments

Hope Talks – Leaking and Investigating the Epstein Files

https://schedule.hope.net/hope26/talks/#Leaking-and-Investigating-the-Epstein-Files
1•aestetix•50s ago•0 comments

US-India Satellite Delivers Data, Reveals 'Hummingbird' in Antarctica

https://www.jpl.nasa.gov/news/us-india-satellite-delivers-data-reveals-hummingbird-in-antarctica/
1•stoicanalyst•3m ago•1 comments

Show HN: Best JSON Formatter

https://bestjsonformatter.org
1•surajkrajan•4m ago•0 comments

AMD and Cerebras Launch AI Inference Solution

https://www.cerebras.ai/press-release/amd-and-cerebras-announce-industry-leading-ultra-low-latenc...
1•rbanffy•4m ago•0 comments

The Price of Knowing Where Everyone Is

https://cairn.com/articles/the-price-of-knowing-where-everyone-is
1•douglasgoodwin•6m ago•0 comments

Show HN: Open-weight OCR got so cheap I had to share it

https://www.openparser.dev/cheapest-ocr
2•TimurKramar•7m ago•0 comments

The Chocolate Crisis – The Food Programme [audio]

https://www.bbc.co.uk/programmes/m002yw72
1•zeristor•9m ago•1 comments

Dead Internet Theory was right: AI agents are eating Web, growing nearly 8k%

https://fortune.com/2026/07/23/dead-internet-theory-bots-agents-majority-web-traffic/
2•pseudolus•10m ago•0 comments

Voice-first AI recipe manager

https://saychef.online
2•jmkings•13m ago•0 comments

RTX 2080 Ti Memory Upgrade to 22 GB

https://gpusolutions.net/rbservices/graphics-card-upgrade/
1•wslh•13m ago•0 comments

Hackers hijack hotel Wi-Fi DNS to steal Microsoft 365 accounts

https://www.bleepingcomputer.com/news/security/hackers-hijack-hotel-wi-fi-dns-to-steal-microsoft-...
2•OptionOfT•16m ago•2 comments

Show HN: Shotomatic, turn Mac clicks into editable screenshot guides

https://www.shotomatic.com/action-capture
2•wooing•17m ago•0 comments

Serving the Drupal project, and evolving how we fund it

https://www.drupal.org/association/blog/serving-the-drupal-project-and-evolving-how-we-fund-it
2•gmays•19m ago•0 comments

Wrangling with Explosive AI Growth – Combatting Catastrophism

https://studentreview.hks.harvard.edu/wrangling-with-explosive-ai-growth/
2•djwide•22m ago•0 comments

The Littleman Programming Language

https://icfpcontest2026.com/textbook
2•fcjr•23m ago•0 comments

Should you upgrade to macOS and iOS public betas? (no)

https://a.wholelottanothing.org/should-you-upgrade-to-macos-and-ios-public-betas-no/
1•speckx•23m ago•0 comments

Wayland Protocols Support Table

https://absurdlysuspicious.github.io/wayland-protocols-table/
1•bjourne•23m ago•0 comments

How the Futuristic Hack by Rogue OpenAI Models Unfolded

https://www.wsj.com/tech/ai/how-the-futuristic-hack-by-rogue-openai-models-unfolded-1657bcea
1•Anon84•24m ago•0 comments

Angry neighbour complains about parents calling children in for their tea

https://metro.co.uk/2026/07/24/neighbour-complains-noise-children-called-tea-29212763/
1•austinallegro•24m ago•0 comments

Fly.io New CEO Turn and Face the Strange

https://twitter.com/flydotio/status/2080673882785341903
2•sergiotapia•25m ago•0 comments

Show HN: Impress – an ad-free daily word game

https://derekp.com/impress/
1•dualarte•26m ago•0 comments

2026 State of AI Agents: Enterprise Insights on Building AI

https://www.databricks.com/resources/ebook/state-of-ai-agents
1•Anon84•26m ago•0 comments

7Hope Alliance

http://site:7hopealliance.org
1•perriginelisha•28m ago•0 comments

Does a PhD Pay Off?

https://lemire.me/blog/2026/07/24/does-a-phd-pay-off/
1•usdogu•31m ago•0 comments

FrontierCode Leaderboard

https://cognition.com/frontiercode
1•Topfi•34m ago•0 comments

Demios – AI-native workspace for data capture, workflow automation and reporting

https://demios.io/
1•mahdishavandi•36m ago•0 comments

Zero Knowledge: Twenty Chapters In

https://feld.com/archives/2026/07/zero-knowledge-twenty-chapters-in/
1•rmason•36m ago•0 comments

What If We Made Advertising Illegal?

https://simone.org/advertising/
4•gurjeet•41m ago•4 comments

Show HN: The first self-improving context engineering platform

https://xysq.ai/
2•ximihoque•42m ago•0 comments