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

Hacking group says it's extorting Pornhub after stealing users' viewing data

https://techcrunch.com/2025/12/16/hacking-group-says-its-extorting-pornhub-after-stealing-users-v...
1•SilverElfin•3m ago•0 comments

Codex Is Down

https://status.openai.com/incidents/01KCM7PAMQMCM8KAB6ZCWPKNK1
1•bartkappenburg•4m ago•0 comments

Using GitLab CI/CD with a GitHub Repository

https://docs.gitlab.com/ci/ci_cd_for_external_repos/github_integration/
1•ahmgeek•4m ago•0 comments

Letta Code: a memory-first coding agent

https://github.com/letta-ai/letta-code
4•pacjam•5m ago•1 comments

Neural Networks XD in JavaScript

https://chuwon.github.io/nn/
1•bicepjai•6m ago•0 comments

Feeding the Machine

https://www.theverge.com/cs/features/831818/ai-mercor-handshake-scale-surge-staffing-companies
1•paulpauper•6m ago•0 comments

We built an internal project management system – it became Dyversal AI

1•nivafy•7m ago•1 comments

The Order Is Backwards

https://granot.io/the-order-is-backwards/
1•tomgs•7m ago•0 comments

iRobot files for bankruptcy; Bought by its Chinese Manufacturer

https://apnews.com/article/irobot-roomba-bankruptcy-picea-amazon-7ef311c0b3848af2b30ba3921496efe1
1•Zaheer•7m ago•0 comments

How to Reclaim Aesthetic Vision from the Lean Startup?

https://medium.com/@gp2030/the-lean-startup-zen-the-art-of-failing-fast-and-reclaiming-aesthetic-...
1•light_triad•9m ago•0 comments

Lessons from building a content scanner for multiple social platforms

https://keywordspal.com/blog/building-multi-platform-content-aggregator
1•binsquare•12m ago•0 comments

Audio Plugin UI Components

https://www.audio-ui.com/
1•gregsadetsky•13m ago•0 comments

Ask HN: Tech Interview Coaches Worth the Money?

1•idontwantthis•14m ago•2 comments

The Arctic Is in Dire Straits, 20 Years of Reporting Show

https://www.scientificamerican.com/article/the-arctic-is-in-dire-straits-20-years-of-reporting-show/
4•quapster•15m ago•0 comments

Bitwarden / KeePass Diff

https://codeberg.org/cicko/bwkp-diff
2•cicko•16m ago•1 comments

From Experiment to Backbone: Adopting Rust in Production

https://blog.kraken.com/product/engineering/rust-part-2-from-bet-to-backbone
2•simag•16m ago•1 comments

How to Detect Browser-as-a-Service Scrapers in 2025

https://webdecoy.com/blog/browser-as-a-service-detection-baas-ai-agents-2025/
1•cport1•16m ago•0 comments

Will Creative Work Survive A.I.?

https://www.nytimes.com/2025/12/16/opinion/artists-creative-work-ai.html
2•thm•18m ago•0 comments

The Engine Is Not the Car

https://thinking.relica.io/the-engine-is-not-the-car/
1•m-xtof•22m ago•1 comments

Why Does Everyone Want to Be a Bank Now?

https://www.bloomberg.com/news/articles/2025-10-28/why-fintech-companies-want-to-become-banks-rig...
1•petethomas•23m ago•1 comments

Bot invasion increases with Google scraping the way, Cloudflare says

https://www.theregister.com/2025/12/15/cloudflare_report_bot_traffic/
2•Bender•23m ago•1 comments

Show HN: Community Site for WebGL / WebGPU

2•FarhadG•24m ago•0 comments

Show HN: Dev Tools – 24 browser-based utilities with no signup or tracking

https://dev-tools.online
2•ghdj•25m ago•0 comments

Age-Gating the Web

https://manuelmoreale.com/thoughts/age-gating-the-web
1•kevin061•25m ago•0 comments

AI-Triggered Delusional Ideation as Folie a Deux Technologique

https://arxiv.org/abs/2512.11818
4•kelseyfrog•26m ago•0 comments

Vic: Trim Videos in the Terminal

https://github.com/wong-justin/vic
1•thunderbong•26m ago•0 comments

No Graphics API

https://www.sebastianaaltonen.com/blog/no-graphics-api
27•ryandrake•26m ago•2 comments

Layers of security for protocols building with TEEs

https://docs.bluethroatlabs.com/layers-of-security-for-protocols-building-with-tees
1•transpute•27m ago•0 comments

'It's surreal': How US sanctions lock ICC judges out of daily life

https://www.irishtimes.com/world/us/2025/12/12/its-surreal-us-sanctions-lock-international-crimin...
5•rendx•27m ago•0 comments

Show HN: N8n-Style Actions and AI Agents in TypeScript

https://github.com/VoltAgent/voltagent/blob/main/README.md
3•omersays•27m ago•0 comments