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.

Ask HN: Is there a "mouse" for parallel work?

1•ckmar•4m ago•0 comments

The Actual Reason Why Google "Fell Out" of the AI Race Changes Everything

https://www.thealgorithmicbridge.com/p/the-actual-reason-why-google-fell
1•ai2027•4m ago•0 comments

Mark Zuckerberg Blasts Centralization of A.I. Power

https://www.nytimes.com/2026/07/28/technology/mark-zuckerberg-meta-ai.html
1•defrost•5m ago•0 comments

By billboards for over 100 years, holdout building by Macy's is back

https://ephemeralnewyork.wordpress.com/2026/07/27/hidden-by-billboards-for-over-100-years-the-tin...
1•donohoe•6m ago•0 comments

OpenAI's agents hacked second account during model testing

https://www.axios.com/2026/07/28/openai-hugging-face-modal-labs-hack
1•rguiscard•7m ago•0 comments

Told to Train AI Models, Indian Workers Fought Back

https://thewire.in/labour/told-to-train-ai-models-indian-workers-fought-back
1•ripe•8m ago•1 comments

Apple plans to lease iPhones for $17.99 a month through partnership with Klarna

https://www.cnbc.com/2026/07/28/apple-plans-to-lease-iphones-for-17point99-a-month-through-klarna...
1•petethomas•12m ago•1 comments

OpenAI open-sources Codex Security CLI for repository scans and CI

https://runtimewire.com/article/openai-open-sources-codex-security-cli-typescript-sdk
1•ryanmerket•15m ago•0 comments

Knitting the Web: We Need Interlinkers

https://brennan.day/knitting-the-web-we-need-interlinkers/
1•cosmicgadget•15m ago•0 comments

Hedge funds face demands to stump up collateral as AI stocks tumble

https://www.ft.com/content/5c8a2816-8f28-4257-8707-b22ebaa6089c
1•mapping365•16m ago•0 comments

Show HN: Cloudflarebase – open-source Firebase alternative on Cloudflare

https://github.com/cloudflarebase/cloudflarebase
1•alex_equimake•19m ago•0 comments

Stop Building Spas for Internal Tools: The Modern PHP Alternative

https://www.gridphp.com/blog/stop-building-spas-for-internal-tools-the-modern-php-alternative/
1•gridphp•20m ago•0 comments

Apple becomes second $5T company as investors flee AI stocks

https://www.theguardian.com/technology/2026/jul/28/apple-second-ever-5tn-company-as-investors-fle...
3•devonnull•21m ago•0 comments

Timing of When Ingredients Are Added to Recipes

https://old.reddit.com/r/dataisbeautiful/comments/1v9bq7i/oc_timing_of_when_ingredients_are_added...
1•embedding-shape•22m ago•0 comments

From Cracker Barrel to Boeing, Companies Are Turning to Retired CEOs

https://www.wsj.com/business/from-cracker-barrel-to-boeing-companies-are-turning-to-retired-ceos-...
2•petethomas•24m ago•0 comments

Async-Profiler and OpenTelemetry Spans

https://krzysztofslusarski.github.io/2026/07/27/spans.html
1•mfiguiere•29m ago•0 comments

TSMC is accelerating Arizona factory build-out to capitalize on AI 'megatrend'

https://www.cnbc.com/2026/07/20/tsmc-arizona-fab-capacity-ai-chip-demand.html
2•gmays•31m ago•0 comments

Cursor and Together AI deliver real-time, low-latency inference at scale

https://www.together.ai/customers/cursor
1•inferhaven•33m ago•0 comments

There's Hope in Hard Truths

https://shannadige.com/blog/hard-truths/
1•shannadige•33m ago•1 comments

Epic diarrhea outbreak has 40% of Americans avoiding fruits and veggies

https://arstechnica.com/health/2026/07/epic-diarrhea-outbreak-has-40-of-americans-avoiding-fruits...
4•ValentineC•34m ago•0 comments

Watch out for missed warnings on vendor C++ toolchains

https://blog.poly.nomial.co.uk/2026-03-31-watch-out-for-missed-warnings-on-vendor-cpp-toolchains....
1•luu•34m ago•0 comments

ReFrame – The EPaper Camera

https://reframe.camera/
1•phil294•36m ago•0 comments

Show HN: Resultant Engineering Website

https://resultant.tools/
1•will2092347•37m ago•0 comments

What Happened to Ashton-Tate and DBase

https://dfarq.homeip.net/what-happened-to-ashton-tate-and-dbase/
1•symisc_devel•38m ago•0 comments

Shiftall mutalk 2 Wireless Soundproof Microphone

https://haruyama365.com/products/shiftall-mutalk-2-wireless-soundproof-microphone
1•gregsadetsky•40m ago•0 comments

Agenthound – Offensive security framework for AI agent infrastructure

https://github.com/adithyan-ak/agenthound
1•akoffsec•41m ago•0 comments

Tyler Cowen on reading fast, reading well, and reading widely (2020)

https://www.driverlesscrocodile.com/books-and-recommendations/tyler-cowen-on-reading-fast-reading...
2•downbad_•41m ago•1 comments

How to pay your rent with your open source project (2020)

https://plausible.io/blog/open-source-funding
1•downbad_•41m ago•1 comments

eBay reaches $56M settlement with e-commerce newsletter writers

https://techcrunch.com/2026/07/28/ebay-reaches-56m-settlement-with-e-commerce-newsletter-writers-...
1•rndsignals•41m ago•0 comments

WhistlinDiesel Cybertruck Durability Test #3 [video]

https://www.youtube.com/watch?v=ey0ZAaF2L4E
2•Bender•41m ago•0 comments