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.

Kicking the Tires on Jev with 2048

https://gist.github.com/cablehead/bdf9ad946ceb26d9008976e49c9bfbbb
1•0l•21s ago•0 comments

Is Jev the general-purpose classifier we've been waiting for?

https://twitter.com/kris_cvetko/status/2101614168763695308
1•kncvetko•2m ago•1 comments

Dragonfly 2.0: more performance for Redis and Memcached replacement

https://www.phoronix.com/news/Dragonfly-2.0-Released
2•joshcsimmons•2m ago•0 comments

AI and the Destruction of the Creative Commons

https://www.chesterwisniewski.com/post/2026-09-13-ai-is-destroying-the-creative-commons/
1•rakel_rakel•4m ago•0 comments

Show HN: WTF > Auto-check what your coding agent changed

https://github.com/LinusInnovator/wtf
1•Linusinnovator•6m ago•0 comments

Joe Shipman proves marked ruler and compass solves the general quintic

2•jjgreen•14m ago•0 comments

PDF Forgeries Are Surprisingly Rare (2022)

https://gwern.net/blog/2022/pdf-forgery
2•1317•14m ago•0 comments

Hyperbolic Navigation

https://en.wikipedia.org/wiki/Hyperbolic_navigation
1•Eridanus2•18m ago•0 comments

Away Goals Rule

https://en.wikipedia.org/wiki/Away_goals_rule
1•chistev•19m ago•0 comments

Enterprise Cyber Risk Management

https://andersenlab.com/services/cybersecurity-risk-management
1•andersen_lab•25m ago•0 comments

Be Careful with Your Select * Queries

https://notesonsystems.com/articles/why-im-done-with-select-star
1•theanonymousone•30m ago•1 comments

TeaonherChecker

https://teaonher.org
1•thefirstname322•30m ago•0 comments

Leaping Sun Dogs (2016) [video]

https://www.youtube.com/watch?v=KPPaGmtuHCY
1•joebig•33m ago•0 comments

Jev is the fastest-adopted model in AI Gateway history

https://vercel.com/blog/ai-gateway-jev-model-launch
1•flashbrew•33m ago•1 comments

A font that reads what you wrote

https://rohanadwankar.github.io/posts/semfont.html
1•RohanAdwankar•34m ago•1 comments

A deep dive into Jev, TypeSafe's System One model

https://flaviocopes.com/jev/
1•sts153•34m ago•0 comments

CoyoPedal – Full-Size Neural Amp Modeler Captures on an ESP32-S3

https://github.com/dashersw/coyopedal
1•arbayi•34m ago•0 comments

I'm so bad at billiards that I ended up in the hyperbolic plane [video]

https://www.youtube.com/watch?v=kL9BTbIGxLg
1•vismit2000•34m ago•0 comments

MIT Just Proved LLMs Will Stop Getting Smarter, and Money Won't Fix It [video]

https://www.youtube.com/watch?v=6xQ8LQfkBg4
1•bArray•38m ago•0 comments

Show HN: Delightful Cells – reliable AI batch processing for spreadsheets

https://delightfulcells.com
1•sumtsui•40m ago•1 comments

Clawptcha: Reverse Captcha

https://clawptcha.com/
1•Kotlopou•45m ago•0 comments

Neutron Radiation, Emission and Scattering (Neutron Chemistry)

https://www.ossila.com/pages/neutron-radiation
1•peter_d_sherman•46m ago•0 comments

Drop-in Django app to serve a decent LLM-ready documentation site

https://mdjango.chesselink.com/
3•fluxmatix•53m ago•1 comments

I built an extension that hides your personal information from AI

https://github.com/arikchakma/opencloak
2•arikchakma•57m ago•0 comments

Show HN: I-server: Hide server using ICMP reflection/Destination Unreachable

https://github.com/hajoon22/i-server
2•hajoon22•1h ago•0 comments

Benchmarking Wild vs. Mold

https://davidlattimore.github.io/posts/2026/09/18/benchmarking-wild-vs-mold.html
6•birdculture•1h ago•0 comments

Microsoft agentically ports Copilot runtime to Rust for $120K

https://www.theregister.com/devops/2026/09/18/microsoft-agentically-ports-copilot-runtime-to-rust...
5•pjmlp•1h ago•0 comments

Why China is pushing back on US warnings over rapid AI development

https://www.theguardian.com/world/2026/sep/20/why-china-is-pushing-back-on-us-warnings-over-rapid...
5•chrisjj•1h ago•0 comments

Boston to Calcutta Ice Trade Began with One Shipment

https://curiowire.com/article/556
3•thunderbong•1h ago•0 comments

Show HN: Book recommendations with live library availability

https://leafle.nanosheep.net
3•kidnoodle•1h ago•4 comments