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.

Utah lawmakers decided to tax large tech companies

https://www.sltrib.com/news/2026/08/04/utahs-new-targeted-advertising-tax/
1•toomuchtodo•39s ago•0 comments

Memoirs of a Long-Time Luddite

https://angadh.com/luddite-1
1•surprisetalk•1m ago•0 comments

Show HN: Real-time bus tracker for every stop in Great Britain, built on BODS

https://stopboard.uk/
1•josephmjustin•2m ago•0 comments

Interactive, 3D disassembly of an ETA watch movement

https://eta6497-disassembly.netlify.app/
1•JamilD•2m ago•0 comments

FFmpeg 9.0 Released

https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/release/9.0:/Changelog
2•LaSombra•3m ago•0 comments

Lossless Inference

https://runinfra.ai/news/lossless-inference
3•OsamaJaber•4m ago•0 comments

Does Anyone Know a Real, Live, Human Being WHO Works at Facebook?* (2023)

https://robinmckinleysblog.com/does-anyone-know-a-real-live-human-being-who-works-at-facebook/
1•bariumbitmap•4m ago•0 comments

SSH-over-IROH: connect to any machine without IP, behind a NAT/firewall

https://github.com/rustonbsd/iroh-ssh
1•janandonly•4m ago•0 comments

Every way to dereference a pointer in C (personal-blog)

https://blog-rosy-mu-6g08eh3dr6.vercel.app/blog/pointers
1•SyntaxError2505•4m ago•0 comments

Personal Software Journey: Self-Hosting Agent-Built Apps on a Mac Mini

https://metedata.substack.com/p/016-my-personal-software-journey
1•young_mete•6m ago•0 comments

WebGPU Glass Material

https://github.com/ektogamat/webgpu-mesh-transmission-material
1•wildpeaks•6m ago•0 comments

SpaceX's satellite ambitions squeeze out rivals reliant on its rockets

https://www.reuters.com/business/aerospace-defense/spacexs-satellite-ambitions-squeeze-out-rivals...
1•sleepyguy•6m ago•0 comments

Smart wound dressing speeds up healing by triggering body's own repair signals

https://www.eurekalert.org/news-releases/1137465
1•gmays•6m ago•0 comments

Scientific American's Easter

https://leancrew.com/all-this/2026/04/scientific-americans-easter/
1•speckx•7m ago•0 comments

Pi, Minimal and Performant

https://earendil.com/posts/pi-autoresearch-and-databricks/
1•tosh•8m ago•0 comments

Fossil Preserves Ichthyosaur That Ate Pterosaur Before Becoming Food Itself

https://www.discovermagazine.com/100-million-year-old-fossil-preserves-an-ichthyosaur-that-ate-a-...
1•anyonecancode•9m ago•0 comments

Skip-Level One-on-Ones

https://mgrebler.substack.com/p/the-secret-to-skip-level-one-on-ones
1•fagnerbrack•11m ago•0 comments

Gmail will end send-as support from third-party email addresses

https://support.google.com/mail/answer/17101213?hl=en
3•ritzaco•11m ago•1 comments

Show HN: Free SEO checker that finds redirect chains and www issues

https://redirectiq.com/tools/seo-checker
1•joshkurz•12m ago•0 comments

I Don't Have a Manager Readme

https://emdiary.substack.com/p/why-i-dont-have-a-manager-readme
2•fagnerbrack•12m ago•0 comments

Melissa M. Mikus: A simple solution to fix workplace miscommunication [video]

https://www.ted.com/talks/melissa_m_mikus_a_simple_solution_to_fix_workplace_miscommunication
2•fagnerbrack•12m ago•0 comments

Show HN: Gigacode – the model writes its own multi-agent workflow, then runs it

https://github.com/kolega-ai/kolega-code
1•dempseye•12m ago•1 comments

Show HN: Bitfinex lending automation that runs on your PC, not a server

https://rexchenhong.github.io/phoenix-funding/en/
1•rex61713•13m ago•0 comments

Show HN: I built a scored, enriched lead feed from public SEC Form D filings

https://fundingsignals.net/
1•labombas•13m ago•0 comments

The Orchestrator's Tax

https://martinfowler.com/articles/orchestrator-tax.html
1•sss111•14m ago•0 comments

You Don't Need a Blowtorch to Light a Birthday Candle

https://twitter.com/BritneyMuller/status/2084636285847711792
1•mulle188•15m ago•0 comments

FediAdhan: The Islamic Call to Prayer, in Your Fediverse Timeline

https://fediadhan.org/
2•sohkamyung•16m ago•0 comments

I measured defect rates across 2,307 AI-generated 3D models

https://github.com/alza123123/3dqa-benchmark
1•soalza116•16m ago•0 comments

A computer can never be held accountable

https://jola.dev/posts/a-computer-can-never-be-held-accountable
1•shintoist•17m ago•0 comments

I Phish My AI Agent, and You Should Too

https://sveder.com/blog/i-phish-my-ai-agent-and-you-should-too/
1•mikle•17m ago•0 comments