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•11mo 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•11mo 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•11mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•11mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

The AI scaffolding layer is collapsing. LlamaIndex's CEO explains what survives

https://venturebeat.com/infrastructure/the-ai-scaffolding-layer-is-collapsing-llamaindexs-ceo-exp...
1•momentmaker•2m ago•0 comments

Running Doom on a Travel Router with Touch Screen

https://hackaday.com/2026/05/01/running-doom-on-a-travel-router-with-touch-screen/
1•momentmaker•3m ago•0 comments

The Case for Euthanizing Everyone at Age 65

https://marshallbrain.com/youve-had-your-turn-the-case-for-euthanizing-everyone-at-age-65
1•p2detar•4m ago•0 comments

Elegy for the Hereditary Peers

https://engelsbergideas.com/essays/elegy-for-the-hereditary-peers/
1•bookofjoe•5m ago•0 comments

GIMP 3.4 Will probably draw circles

https://fosstodon.org/@CmykStudent/116455148076446506
2•marcodiego•6m ago•0 comments

Claude Code completes the first level of several ARC AGI 3 games

https://arc-agi-runs.web.app/ls20-47471d22-3e73-4d9b-8ff7-972ef3ea5195/
1•dextersjab•6m ago•0 comments

Upcoming Blender Development Fund and AI Policies

https://www.blender.org/news/upcoming-blender-development-fund-and-ai-policies/
1•dagmx•8m ago•0 comments

Pentagon inks deals with AI giants, but not Anthropic

https://www.dw.com/en/pentagon-inks-deals-with-ai-giants-but-not-anthropic/a-77012715
2•herodoturtle•9m ago•0 comments

The anatomy of message execution after an API returns 200 OK

https://blog.bridgexapi.io/the-anatomy-of-message-execution-what-happens-after-your-api-returns-2...
1•Bridgexapi•10m ago•0 comments

Our poor sleeping habits are filling our brains with neurotoxins (2015)

https://qz.com/424120/our-poor-sleeping-habits-could-be-filling-our-brains-with-neurotoxins
1•downbad_•10m ago•1 comments

Show HN: Pixel-Perfect MaterialX in Blender and Three.js

https://ben3d.ca/blog/pixel-perfect-materialx-in-blender-and-threejs
1•bhouston•11m ago•0 comments

5x speedup of sqlglot (pure Python SQL parser) with mypyc

https://www.fivetran.com/blog/how-we-accelerated-transpilation-by-compiling-sqlglot-with-mypyc
1•captaintobs•14m ago•0 comments

Show HN: Arc Browser + Agents IDE

https://github.com/armantsaturian/ArcNext
1•ArmanTsaturian•15m ago•0 comments

Ubuntu servers taken offline by "sustained, cross-border attack"

https://arstechnica.com/security/2026/05/ubuntu-infrastructure-has-been-down-for-more-than-a-day/
8•RattlesnakeJake•16m ago•1 comments

The LLM Is Not a Junior Engineer

https://jacobharr.is/personal/llm-not-junior-engineer
2•birdculture•16m ago•0 comments

Majority of US Military sites in Middle East damaged by Iran

https://www.cnn.com/2026/05/01/world/video/us-military-bases-iran-strikes-images-invs-digvid
1•tcp_handshaker•16m ago•0 comments

AI Will Create Jobs

https://geohot.github.io//blog/jekyll/update/2026/05/01/ai-will-create-jobs.html
2•speckx•17m ago•0 comments

Switch to Codex

https://chatgpt.com/codex/switch-to-codex/
1•georgehill•17m ago•0 comments

Lib0xc: A set of C standard library-adjacent APIs for safer systems programming

https://github.com/microsoft/lib0xc
3•wooster•20m ago•1 comments

Aeon – an autonomous AI hedge fund research assistant

https://github.com/akshaylakkur/AEON
1•akshayl284•20m ago•0 comments

Show HN: Generate marketing material with your text and images in minutes

https://correctify.com.cy/
1•GiorgosGennaris•20m ago•0 comments

Auk Mini 2

https://www.auk.com/products/auk-mini-2
1•punnerud•21m ago•0 comments

LLMs Don't Understand BGP. Here's What It Takes to Change That

https://www.supertrace.ai/blog/llms-dont-understand-bgp
2•SamoyedFurFluff•22m ago•0 comments

The Rapid Evolution of Giant Daisies

https://nautil.us/the-rapid-evolution-of-giant-daisies-1280384
1•Brajeshwar•22m ago•0 comments

Doom port for the GL-iNet GL-BE10000 Slate 7 Pro travel router

https://github.com/atc1441/Slate7_pro_Doom
1•speckx•24m ago•0 comments

GDC Vibe Check – I Asked Nine Game Developers the Same Four Questions [video]

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

Show HN: An Agent First Slack CLI

https://github.com/tilework-tech/nori-slack-cli
1•theahura•25m ago•0 comments

AI predictions in the movie Electric Dreams (1984)

https://medium.com/@tk512/the-ai-predictions-in-the-movie-electric-dreams-1984-0c6a47a6326e
2•sgt•26m ago•0 comments

The College-Admissions Chess Game Is More Complicated

https://www.wsj.com/us-news/education/college-admissions-yield-rate-2fb30f42
2•apparent•27m ago•0 comments

Article explains a method to estimate parameter count of closed sourcemodels

https://www.lesswrong.com/posts/veFMEzDDyWaer2Sms/sanity-checking-incompressible-knowledge-probes
2•theanonymousone•29m ago•1 comments