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•6mo 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.

Post-Quantum Cryptography on CHERIoT

https://cheriot.org/pqc/2025/12/12/pqc-on-cheriot.html
1•todsacerdoti•4m ago•0 comments

Arkansas becoming first state to sever ties with PBS, effective July 1

https://www.ctvnews.ca/world/article/arkansas-becoming-1st-state-to-sever-ties-with-pbs-effective...
1•kotaKat•5m ago•0 comments

Trump signs order to block states from enforcing own AI rules

https://www.bbc.com/news/articles/crmddnge9yro
2•deliass•6m ago•0 comments

Defrag.exfat Is Inefficient and Dangerous

https://github.com/exfatprogs/exfatprogs/issues/318
1•dxdxdt•6m ago•0 comments

The Beauty of Dissonance

https://www.plough.com/en/topics/culture/music/the-beauty-of-dissonance
1•tintinnabula•11m ago•0 comments

A LLM trained only on data from certain time periods to reduce modern bias

https://github.com/haykgrigo3/TimeCapsuleLLM
2•jpalomaki•11m ago•0 comments

Show HN: StudioArt, A photo sharing website for creatives

https://atstudioart.netlify.app/
1•telui•14m ago•0 comments

Measuring postMessage Delays with the Delayed Message Timing API

https://blogs.windows.com/msedgedev/2025/12/09/making-complex-web-apps-faster/
2•joonehur•14m ago•1 comments

Rebuilding Our Website for the Agent Era

https://www.prefect.io/blog/rebuilding-our-website-for-the-agent-era
4•cicdw•16m ago•1 comments

Engineering analysis of 3I/ATLAS as a sublimation-driven body

https://osf.io/w23nv
2•Alis_Muzar•17m ago•0 comments

Show HN: EdgeVec – Sub-millisecond vector search in the browser (Rust/WASM)

https://github.com/matte1782/edgevec
1•matteo1782•22m ago•1 comments

'Mamdani Effect' Is Seeing More People Moving to New York, Not Leaving It

https://www.newsweek.com/mamdani-effect-more-people-moving-new-york-city-not-leaving-11193747
1•saubeidl•22m ago•0 comments

Portals must bend gravity [video]

https://www.youtube.com/watch?v=DydIhwLrbMk
1•ahlCVA•23m ago•0 comments

Show HN: I needed to record mobile web demos with my face, so I built this

https://www.youtube.com/watch?v=c_fq0TzlsXI
1•admtal•24m ago•0 comments

Show HN: PharmVault – Secure Notes with Spring Boot and JWT

https://github.com/nifski/PharmVault
1•nifemi1234•24m ago•2 comments

GPT 5.2 on the Counter-Strike Benchmark

https://www.instantdb.com/essays/gpt_52_on_the_counterstrike_benchmark
2•stopachka•26m ago•0 comments

How does one analyse all states of a puzzle game like Stephen's Sausage Roll? [video]

https://www.youtube.com/watch?v=AK8OLuRBFTw
1•yellow_postit•26m ago•0 comments

Deletion is never guaranteed: How your computer lies to you

https://ulveon.net/p/2025-11-01-deletion-is-never-guaranteed-how-your-computer-lies-to-you/
1•kevin061•27m ago•0 comments

Can I use HTTPS RRs?

https://www.netmeister.org/blog/https-caniuse.html
2•zdw•27m ago•1 comments

Arizona city rejects data center after AI lobbying push

https://www.politico.com/news/2025/12/12/arizona-city-rejects-data-center-after-ai-lobbying-push-...
5•thunderbong•29m ago•0 comments

Fine-tuning Gemma 3 for mobile

https://opensource.googleblog.com/2025/12/empowering-app-developers-fine-tuning-gemma-3-for-mobil...
1•nkko•33m ago•0 comments

Working at Cold War Los Alamos

https://doomsdaymachines.net/p/working-at-cold-war-los-alamos
2•chmaynard•36m ago•0 comments

Shifting climate boundaries for European peatlands

https://iopscience.iop.org/article/10.1088/1748-9326/ae2142
1•PaulHoule•36m ago•0 comments

Don't Gobble Up Errors

https://programming.protips.wiki/dont-gobble-up-errors/
1•markl42•37m ago•0 comments

Cadbury Ruined Its Taste and Betrayed Britain [video]

https://www.youtube.com/watch?v=-dIAqAcEiDY
2•076ae80a-3c97-4•40m ago•1 comments

Every Meeting Should Start on Time (If You Want It to Be Productive)

https://www.inc.com/jeff-haden/science-says-every-meeting-should-always-start-on-time-if-you-want...
1•laurex•42m ago•1 comments

Sanity Check Documents with Riftur

https://5iprojects.com/mind-the-gap-part-ii-introducing-riftur-our-first-ai-gap-analysis-tool-for...
2•jcitsme•53m ago•0 comments

Wine 11.0 RC2 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.0-rc2
15•neustradamus•56m ago•0 comments

GCP Error Fixing Bot

https://medium.com/@paulmcdonald/we-built-a-bot-that-reads-our-production-errors-and-opens-prs-wi...
1•pmmucsd•59m ago•0 comments

Show HN: Tiny VM sandbox in C with apps in Rust, C and Zig

https://github.com/ringtailsoftware/uvm32
25•trj•59m ago•0 comments