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.

Software Bonkers

https://craigmod.com/essays/software_bonkers/
1•razin•50s ago•0 comments

Microsoft Fire IdTech Team at Id Software

https://gamefromscratch.com/microsoft-fire-idtech-team-at-id-software/
2•bauc•1m ago•0 comments

Show HN: Atrophy – measure whether AI is eroding your unaided coding skill

https://github.com/ashutosh-rath02/atrophy
1•ashurath•1m ago•0 comments

Midtown Manhattan blocks evacuated after beams buckling at construction site

https://abcnews.com/US/midtown-manhattan-blocks-evacuated-after-beams-found-buckling/story?id=134...
1•danso•1m ago•0 comments

The mask that compiles to nothing:how HotSpot's JIT learned to reason about bits

https://questdb.com/blog/jvm-jit-known-bits/
1•thunderbong•2m ago•0 comments

No LLM Involved: What If Your Arrays Could Schedule Themselves?

https://ilnumerics.net/ilnumerics-accelerator-compiler.html
1•hokb•3m ago•0 comments

Show HN: Action-locker: pin, verify, and vendor GHAs

https://github.com/steph-owl/action-locker
1•sudosteph•3m ago•1 comments

When Albert Einstein and Charlie Chaplin Met and Became Fast Famous Friends (1930)

https://www.openculture.com/2026/07/when-albert-einstein-charlie-chaplin-met.html
1•bookofjoe•4m ago•0 comments

Fat Toads Farm Pantry

https://ediblebozeman.com/features/fat-toads-farm-pantry/
1•mooreds•5m ago•0 comments

Show HN: SOCBench – an open benchmark for AI on SoC tasks

https://github.com/DeepTempo/socbench
2•krmayankb•8m ago•0 comments

How Nashville Became Home to a Full-Scale Replica of the Parthenon

https://www.openculture.com/2026/07/how-nashville-became-home-to-a-full-scale-replica-of-the-part...
2•Brajeshwar•9m ago•0 comments

Dr Richard Hipp still maintains 40% of the lines contributed to SQLite

https://www.reddit.com/r/PrincipalAi/s/PbfYg15IAK
1•fernando-ram•9m ago•0 comments

How to Throw a GPU at a Problem

https://www.youtube.com/watch?v=1-5wkzdP1Jc
1•eigenBasis•11m ago•0 comments

Make invalid states unrepresentable (for your agents)

https://debugti.me/posts/agents-and-invalid-states/
1•andy_xor_andrew•11m ago•0 comments

EdgeSpeech: Local voice processing for React Native

https://github.com/switchboard-sdk/EdgeSpeech
3•trolleycrash•12m ago•0 comments

Show HN: Equalizer – a real-time terminal equalizer for raw PCM pipes

https://github.com/tsirysndr/equalizer
1•tsiry•12m ago•0 comments

Secret Tracker in Claude Code Uncovered, Anthropic Directly Deletes Code

https://voi.id/en/technology/583552
3•mpfect•13m ago•1 comments

Kurrent–500 years of German handwriting

https://typography.guru/journal/kurrent%E2%80%94500-years-of-german-handwriting-r38/
1•theanonymousone•13m ago•0 comments

Show HN: TraceGen – realistic OpenTelemetry traces, incl. AI-agent, one binary

https://github.com/ImmersiveFusion/if-opentelemetry-tracegen
1•dkowalski•14m ago•0 comments

Avro Canada VZ-9 Avrocar

https://en.wikipedia.org/wiki/Avro_Canada_VZ-9_Avrocar
1•ziofill•14m ago•0 comments

Show HN: Context Warp Drive – Deterministic context folding for AI agents

https://github.com/dogtorjonah/context-warp-drive
3•Dr_Jonah•15m ago•0 comments

New Antenna for Upper Am Band Nears Readiness

https://www.radioworld.com/tech-and-gear/products/new-antenna-for-upper-am-band-nears-readiness
1•RF_Enthusiast•16m ago•1 comments

Daily Berlin Subway Puzzle

https://umsteigen.app
1•_tk_•16m ago•0 comments

NAD Memory: A Hybrid Memory Device Combined with NAND Flash Memory and DRAM

https://ieeexplore.ieee.org/document/11595663
1•rbanffy•16m ago•0 comments

Incomplete Open Dodecahedra

https://chriskw.xyz/2026/07/07/Dodecahedra/
1•chriskw•16m ago•0 comments

Robots, Soft Power, and Summer Davos 2026

https://twmrg.substack.com/p/robots-soft-power-and-summer-davos
1•alfino•17m ago•0 comments

Show HN: Action-Locker – A Lockfile and Locker For

1•sudosteph•17m ago•0 comments

Report on 40 Malicious Chrome Extensions, 22M Users

https://github.com/detrin/extensions_report/blob/main/FINDINGS.md
6•kekqqq•18m ago•0 comments

Chat Control passed first round in EU Parliament

https://www.heise.de/en/news/Showdown-in-Strasbourg-The-unexpected-return-of-Chat-Control-1-0-113...
31•miroljub•18m ago•2 comments

Show HN: Telemetry Tracker – An open-source telemetry platform for web apps

https://telemetry-tracker.com
1•unjica•20m ago•0 comments