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.

Tesla to wind down Cybertruck production as Elon Musk focuses on robotics and AI

https://www.theguardian.com/technology/2026/nov/06/tesla-to-wind-down-cybertruck-production-as-el...
1•beardyw•17s ago•0 comments

A high school science teacher stumbled upon the first known T. Rex trackway

https://www.cbc.ca/radio/asithappens/t-rex-trackway-9.7406432?cmp=rss
1•speckx•42s ago•0 comments

Pushing the Limits with Getaddrinfo

https://acid.vegas/blog/pushing-the-limits-with-getaddrinfo/
1•n_plus_1_acc•56s ago•0 comments

Show HN: Antidraw – Open-source AI prototyping canvas for any React library

https://github.com/AntidrawHQ/antidraw
1•buriedstupidity•1m ago•0 comments

EmbeddingGemma 2: Unified and Efficient Multimodal Representations

https://arxiv.org/abs/2610.37364
1•namanbnsl•2m ago•0 comments

Elon Musk appears to signal the end of the road for Cybertruck

https://www.bbc.co.uk/news/articles/cq1j33w7d232o
2•edward•2m ago•0 comments

Building bladeless thruster for silent flight [video]

https://www.youtube.com/watch?v=RlgKgpLNVc8
1•asilis•3m ago•0 comments

Eitr – an Arch-based Linux desktop built on Hyprland and Quickshell

https://eitr.info/
1•batistaerick•3m ago•0 comments

SoftBank is defaulting on their turbine orders

https://twitter.com/elonmusk/status/2118590598324318415
1•muxamilian•4m ago•0 comments

OpenAI Finds 948 Local Privilege Escalation Bugs in the Linux Kernel

https://www.phoronix.com/news/OpenAI-948-Linux-LPE-Bugs
5•Bender•8m ago•0 comments

Zlib 1.4 Released with More Than One Dozen Security Fixes

https://www.phoronix.com/news/Zlib-1.4-Released
2•Bender•9m ago•0 comments

Show HN: CLI for Cybersecurity Triage

https://ceplang.org/start.html
1•ceplin•10m ago•0 comments

Agility Robotics lists on Nasdaq as first pure-play humanoid robot company

https://techcrunch.com/2026/11/05/agility-is-the-first-pure-humanoid-robot-company-on-the-stock-m...
1•dvaplima•10m ago•0 comments

Rejection led Sylvester Stallone to create film's ultimate underdog Rocky

https://www.bbc.com/culture/article/20261104-how-sylvester-stallone-created-underdog-icon-rocky
3•tosh•10m ago•0 comments

Verifying a satellite image with temporal evidence

1•avijeetsingh16•11m ago•0 comments

Executive (C-Level) Decision Making Under Uncertainty with Large Language Models

1•northlondoner•11m ago•0 comments

Billions of IDs per second, no coordinator needed

https://infino.ai/blog/id-generation/
1•tatvamasi•11m ago•0 comments

Hospital gave sick doctor a special PC for his personal, erm, pleasure

https://www.theregister.com/security/2026/11/06/hospital-gave-very-sick-doctor-a-special-pc-for-h...
2•Bender•13m ago•0 comments

Computer Power and Human Treason

https://erikjohannes.no/posts/20261106-computer-power-and-human-treason/index.html
1•meetpateltech•14m ago•0 comments

Practical guide on out of tree mitigations on Linux

https://clehaxze.tw/gemlog/2026/11-04-practical-guide-on-out-of-tree-mitigations-on-linux.gmi
2•frostbyte7•16m ago•0 comments

Mash: An agentic workspace based on herdr, fresh and pi

https://letsma.sh/
1•luisalejandro•20m ago•0 comments

Nvidia Crashed 9.3%. Is the AI Data-Center Boom Starting to Crack?

https://oplexa.com/blogs/nvidia-stock-crash-ai-chip-selloff-november-2026/
2•oplexa07•20m ago•0 comments

Cross-platform frameworks are dead. AI killed them

https://www.werkbook.app/articles/cross-platform-frameworks-are-dead-ai-killed-them?locale=en
1•jtreitz•21m ago•1 comments

Genlayers – Generate High CTR YouTube Thumbnail from Your Vidoe Title

https://app.genlayers.com/
1•mustafiz8260•23m ago•1 comments

Cheap Oracles

https://wersdoerfer.de/blogs/ephes_blog/cheap-oracles/
1•speckx•24m ago•0 comments

Agents are trying to contact authors distributed by Project Gutenberg

https://tilde.zone/@gluejar/117559748979718063
3•paulnpace•24m ago•0 comments

Show HN: The 100 prisoners, German tank and 61 more puzzles, with simulations

https://mathparadoxes.com/en/
2•dmitrykudrenko•25m ago•0 comments

Show HN: Weeny.Cloud – A Linux server for your coding agent's apps

https://weeny.cloud/
2•isaacrolandson•25m ago•0 comments

Frontier quality at 1% of the cost: a production benchmark of LLM classifiers

https://airbnb.tech/ai-ml/frontier-quality-at-1-of-the-cost-a-production-benchmark-of-llm-classif...
1•eivarv•26m ago•0 comments

Ask HN: Is anyone running multi/always-on agents that don't cost a fortune?

1•abejora•28m ago•2 comments