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

What I Did to Earn a Chrome Web Store Featured Badge

1•backrun•46s ago•0 comments

Is Sanae "Making Money"?

1•jocelyner•1m ago•0 comments

Amazon's Alexa+ Now Free for All U.S. Prime Members

https://www.macrumors.com/2026/02/04/amazon-alexa-plus-prime/
1•tosh•3m ago•0 comments

Latest XProtect update hunts for malware in AppleScript scripts

https://eclecticlight.co/2026/02/05/how-xprotect-is-hunting-scripts/
1•chmaynard•5m ago•0 comments

Nvidia CEO says AI-replacement fears tanking software stocks is 'illogical''

https://www.businessinsider.com/ai-software-tech-stocks-sell-off-nvidia-jensen-huang-illogical-20...
1•Rzor•5m ago•0 comments

I turned my Anki side project into $15K raised on Kickstarter

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
2•romes•8m ago•0 comments

Why do I still use a notebook to track my lifts?

1•jwizzed•8m ago•0 comments

Texas Instruments to Acquire Silicon Labs

https://www.ti.com/about-ti/newsroom/news-releases/2026/2026-02-04-texas-instruments-to-acquire-s...
1•5d41402abc4b•12m ago•0 comments

Agentic AI for PHP Developers

https://codewithphp.com/series/agentic-ai-php-developers/
2•dalemhurley•13m ago•1 comments

Rise of AI means companies could pass on SaaS

https://www.msn.com/en-us/news/technology/rise-of-ai-means-companies-could-pass-on-saas/ar-AA1VFsIx
2•galaxyLogic•13m ago•1 comments

Why are Shopify app reviews so hard to evaluate?

1•sosojustdo•14m ago•0 comments

Test-Driven Context Engineering

https://www.spara.co/blog/test-driven-context-engineering
1•hammerhead72•18m ago•0 comments

Lessons from banking and finance: Why we need zero trust secrets management

https://www.hashicorp.com/en/blog/5-lessons-from-banking-finance-why-we-need-zero-trust-secrets-m...
2•romes•18m ago•0 comments

CVE-2026-22039: How Kyverno's AuthZ Bypass Breaks Kubernetes Namespace Isolation

https://www.minimus.io/post/cve-2026-22039-how-kyvernos-critical-authorization-bypass-breaks-kube...
1•dimastopel•18m ago•0 comments

SSL,HTTPS, HTTP/3, and security header checker made by AI

https://httpsornot.com/
2•dragonman•24m ago•1 comments

Sam Altman and the day Nvidia's meteoric rise came to an end

https://garymarcus.substack.com/p/sam-altman-and-the-day-nvidias-meteoric
2•onurkanbkrc•24m ago•1 comments

Show HN: LinguaMaster – Turn YouTube into an AI-powered language immersion lab

https://www.linguamaster.top/
1•haanc•25m ago•1 comments

.Beat Swatch Internet Time

https://beats.wiki/
1•Deprogrammer9•26m ago•1 comments

DAiFi Raises $20M Seed Round to Build the First Verifiable Intelligence Network

https://www.daifi.ai/blog/daifi-raises-20m-seed-round-to-build-the-world-s-first-verifiable-intel...
1•whatsupdog•26m ago•0 comments

The broadcasting tricks behind Nintendo Direct

https://ravi64.com/secret-tricks-of-nintendo-direct/
1•merlioncity•27m ago•0 comments

Show HN: I built an AI tool to help technical founders improve their pitch

https://pitchmode.org
1•kate_orlova•29m ago•2 comments

Peak Human

https://www.cato.org/books/peak-human-0
1•andsoitis•31m ago•0 comments

A plea for lean software [pdf]

https://cr.yp.to/bib/1995/wirth.pdf
1•andsoitis•33m ago•0 comments

Show HN: YouTube Skills for AI Agents and OpenClaw

https://github.com/ZeroPointRepo/youtube-skills
1•nikhonit•35m ago•0 comments

Do you need email replies to be visible inside your outreach tool?

1•hiesenbrg•40m ago•0 comments

Relax for the Same Result (2015)

https://sive.rs/relax
1•birdculture•41m ago•0 comments

Show HN: Imagens.app – Free AI image generator and enhancer for creators

https://imagens.app/
1•zifeng•43m ago•0 comments

Goodbye Smartwatches, Hello Health AI on Your Wrist

1•accofrisk•44m ago•0 comments

Kling V3 Video Generator

https://loraai.io/kling-v3
2•xbaicai•45m ago•0 comments

ICE Begins Buying 'Mega' Warehouse Detention Centers Across US

https://www.bloomberg.com/news/features/2026-01-29/us-spends-hundreds-of-millions-on-warehouses-f...
4•saubeidl•46m ago•3 comments