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

Ask HN: What are your plans for the AI future?

1•MisterTea•46s ago•0 comments

Show HN: RoBrain – Shared memory for AI agents, with rejected alternatives

https://github.com/adelinamart/robrain
1•mart1adelina•2m ago•1 comments

What Copy Fail looked like on a minimal OS

https://github.com/siderolabs/awesome-talos/wiki/Why-Kubernetes-nodes-inherit-problems-they-never...
2•hannle•2m ago•0 comments

Show HN: WiFi Heatmap – free, browser-based predictive WiFi planner

https://wifiheatmap.app/
1•kgergov•3m ago•0 comments

There's no such thing as "age verification"

https://pluralistic.net/2026/05/19/shes-dead-of-course/
1•Brajeshwar•3m ago•0 comments

Chart: How Tech Giants Make Their Billions (2017)

https://www.visualcapitalist.com/chart-5-tech-giants-make-billions/
1•chistev•4m ago•1 comments

Powertracker, 29 GW of announced AI capacity mapped to host counties

https://powertracker.io/
1•twistedwabbit•5m ago•0 comments

Forward-Looking Laziness: What Changes When AI Writes 95% of the Code

https://www.szia.ai/post/forward-looking-laziness-what-changes-when-ai-writes-95-of-the-code
1•mszel•5m ago•0 comments

What Bazel taught us about Terraform

https://stategraph.com/blog/what-bazel-taught-us-about-terraform
1•lawnchair•6m ago•0 comments

Parag Agrawal's AI startup wants to pay publishers when AI agents use their work

https://fortune.com/2026/05/19/parag-agrawal-parallel-startup-pay-publishers-when-ai-agents-use-t...
1•rahul003•6m ago•0 comments

.DJVU – Open, Highly Compressed .PDF Alternative

https://en.wikipedia.org/wiki/DjVu
1•evolve2k•6m ago•0 comments

Moving my backups to restic (2021)

https://blog.darkmere.gen.nz/2021/02/moving-my-backups-to-restic/
2•mooreds•8m ago•0 comments

Book on Truth in the Age of A.I. Contains Quotes Made Up by A.I

https://www.nytimes.com/2026/05/19/business/media/future-of-truth-ai-quotes.html
1•droidjj•8m ago•0 comments

My sci-fi novel recommendations (2023)

https://www.noahpinion.blog/p/my-sci-fi-novel-recommendations-888
1•mooreds•8m ago•0 comments

Mystery Math Whiz and Novelist Advance Permutation Problem (2018)

https://www.quantamagazine.org/sci-fi-writer-greg-egan-and-anonymous-math-whiz-advance-permutatio...
1•mooreds•9m ago•0 comments

AI's Missing Pricing Tier

https://medium.com/@sandeepjawaharp/ais-missing-pricing-tier-a0522ab083d4
1•SandeepJawahar•9m ago•0 comments

EJBCA – Open-source public key infrastructure (PKI) and CA software

https://github.com/Keyfactor/ejbca-ce
1•sigalor•10m ago•0 comments

Programming the Amiga and Atari ST in C: Counter Loops and Game Ticks

https://retrogamecoders.com/st-amiga-c-loops/
1•ibobev•10m ago•0 comments

Cheap cloud AI was never going to last. The off-ramp wasn't built for everyone

https://www.greatworkeveryone.com/writing/cheap-cloud-ai-was-never-going-to-last
2•connorrandazzo•10m ago•0 comments

EvmScript: Write EVM programs using TypeScript

https://github.com/KimlikDAO/EvmScript
1•szaglam•11m ago•0 comments

Show HN: Askbyemail.com – Send an email, get AI answer or summary (no signup)

https://www.askbyemail.com
1•ahallan•11m ago•0 comments

OCC Violated 4 Statutes, Allowing National Banks to Engage in Crypto Activities

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6789822
3•petethomas•12m ago•0 comments

AI Agents Reason over Enterprise Data

https://nexla.com/agentic-rag-guide/
1•Debanitrkl•16m ago•0 comments

Why so many tools getting hacked? Tanstack, Mistral, Grafana?

https://techcrunch.com/2026/05/18/open-source-tool-maker-grafana-labs-says-hackers-stole-its-code...
1•duriantaco•17m ago•0 comments

Something's Rotten in the State of macOS Icon Design

https://blog.jim-nielsen.com/2026/rotten-macos-icon-design/
2•Brajeshwar•18m ago•0 comments

Show HN: Orbit – delegate a backlog to your AI agent and trust what comes back

https://github.com/human-again/orbit
1•varmahaj•20m ago•0 comments

VS Code: different themes for different filetypes

https://github.com/microsoft/vscode/issues/20652
1•tosh•21m ago•0 comments

Researchers attack AMD's Infinity Fabric to bypass hardware security protections

https://www.tomshardware.com/pc-components/researchers-attack-amds-infinity-fabric-to-bypass-hard...
1•Timofeibu•21m ago•0 comments

Caltrans explores 140mph 'bullet buses' between L.A. and San Francisco

https://secretlosangeles.com/california-140-mph-bullet-buses-la-sf/
2•voxadam•22m ago•2 comments

Kubernetes' Default CoreDNS Configuration Is *Insecure

https://blog.kammel.dev/post/kubernetes_coredns_insecure/
3•datosh•22m ago•0 comments