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.

Blender 5.2 LTS

https://www.blender.org/download/releases/5-2-lts/
1•makizar•33s ago•0 comments

Open Sourcing the Atuin AI Server

https://blog.atuin.sh/atuin-ai-oss/
1•johnbehnke•1m ago•0 comments

How I built my site with no frameworks and Claude Code (PHP, vanilla JavaScript)

https://ivanmisic.net/blog/ai-tools/how-i-built-this-site-with-claude-code
2•imisic•4m ago•0 comments

Show HN: Poseberry: create AI influencers that pose with your products

https://poseberry.com
1•itsdevdaniel•6m ago•0 comments

Chinese CXMT to Match Micron's DRAM Manufacturing Capacity This Year

https://www.techpowerup.com/350726/chinese-cxmt-to-match-microns-dram-manufacturing-capacity-this...
1•yogthos•7m ago•0 comments

Why not LLMs?

https://codeberg.org/ethical-foss/open-slopware/src/branch/main/why_not_llms.md
2•lr0•8m ago•0 comments

US fossil fuel power spending to beat China for the first time in decades

https://www.reuters.com/business/energy/iea-forecasts-us-fossil-fuel-power-spending-beat-china-fi...
1•ironyman•9m ago•0 comments

The US may be hitting a tipping point for heat pumps

https://grist.org/energy/the-us-may-be-hitting-a-tipping-point-for-heat-pumps/
1•toomuchtodo•10m ago•1 comments

One Model or Twenty-Six?

https://www.supcpu.com/research/one-model-or-twenty-six/
1•romellogoodman•11m ago•0 comments

Uber's robotaxi lobbying effort puts it on a collision course with Waymo

https://techcrunch.com/2026/07/13/ubers-robotaxi-lobbying-effort-has-put-it-on-a-collision-course...
1•nickvec•11m ago•0 comments

Skydreams

https://killedbyapixel.github.io/TinyCode/1K/Skydreams/
1•memalign•12m ago•0 comments

You matter more than you think

https://www.youmattermorethanyouthink.com/whatmatters/relationships-matter
1•hypertexthero•12m ago•0 comments

LLMs and Shaders

https://amitp.blogspot.com/2026/07/llms-and-shaders.html
2•ibobev•12m ago•0 comments

Two month calendar format for pocket notebooks

https://ratfactor.com/cards/pocket-notebook-calendar
1•ibobev•13m ago•0 comments

Consumer Aesthetics Research Institute – Index of Aesthetics

https://cari.institute/aesthetics
1•o4c•14m ago•0 comments

Jurassic Park computers in excruciating detail

https://fabiensanglard.net/jurrasic_park_computers/index.html
3•ibobev•14m ago•2 comments

We scored 1,018 real-world AI prompts. Robustness averaged 31/100

https://prompt-eval.com/state-of-prompt-quality/2026-q3
1•Franciscoferr•15m ago•0 comments

Finding Eliza – The First Chatbot

https://findingeliza.org
2•aanet•15m ago•0 comments

Llm.c ported to Mojo with Metal kernels, 1.72x faster than PyTorch MPs

https://github.com/ulmentflam/llm.mojo
1•ulmentflam•15m ago•0 comments

Inventing Eliza – How the First Chatbot Shaped AI

https://mitpress.mit.edu/9780262052481/inventing-eliza/
1•aanet•16m ago•1 comments

Kalshi Has Been Temporarily Banned in Nevada

https://www.wired.com/story/nevada-bans-kalshi-prediction-market/
3•1vuio0pswjnm7•17m ago•1 comments

Show HN: I built Habbo but for your website – 3D chat rooms, one script tag

https://floorsjs.com/
1•vynse•17m ago•0 comments

Exit time as a measure of ecological resilience

https://www.science.org/doi/10.1126/science.aay4895?ijkey=noPPVGqZpliKo&keytype=ref&siteid=sci
1•hypertexthero•18m ago•0 comments

Fifty Years After Xerox PARC, the Malleable Computer Exists

https://dave5.com/2026/07/13/right-today-i-want-to-be-able-to-fifty-years-after-xerox-parc-the-ma...
1•davetenhave•18m ago•1 comments

Musk promises purge after Grok Build caught sending repos to the cloud

https://www.theregister.com/ai-and-ml/2026/07/14/musk-promises-purge-after-grok-build-caught-send...
1•Bender•19m ago•3 comments

US Military sent explosive drone boats into combat for the first time

https://arstechnica.com/ai/2026/07/us-military-sent-explosive-drone-boats-into-combat-for-the-fir...
2•Bender•19m ago•0 comments

New York bans data center construction for a year, rattling AI industry

https://arstechnica.com/tech-policy/2026/07/new-york-is-the-first-state-to-impose-a-data-center-m...
1•Bender•19m ago•0 comments

What Is a Cognitive System? Software That Pursues Goals

https://medium.com/@alanscottencinas/what-is-a-cognitive-system-software-that-pursues-goals-not-i...
1•encinas88•20m ago•0 comments

'Unbelievable how accurate': How paid influencers hype Polymarket's odds

https://www.politico.com/news/2026/06/05/polymarket-paid-political-influencers-00932789
1•1vuio0pswjnm7•21m ago•0 comments

Reducing Nvidia reserved VRAM from 380 MiB to 31 MiB via kernel module patching

https://github.com/lmganon16/nvidia-vram-research
3•locallmfan•21m ago•1 comments