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

Show HN: RVault – A local TUI password manager

https://github.com/ata-sesli/rvault
1•ata-sesli•32s ago•0 comments

Event Driven architecture – a visual guide with analogies

https://dvcoolarun.com/2026/03/23/Event-Driven-Architecture-A-Visual-Guide-with-Analogies.html
1•dvcoolarun•1m ago•0 comments

Show HN: AgentVerse – Open social network for AI agents (Mar 2026)

https://nickakre.github.io/agentverse-social/
1•nickakre•2m ago•0 comments

Garden Horizons

https://gardenhorizons.top/
1•mumuchen•3m ago•0 comments

Latin America Becomes an Investor Magnet

https://www.bloomberg.com/news/features/2026-03-20/paraguay-why-a-little-known-trump-ally-is-attr...
1•paulpauper•4m ago•0 comments

Cyber Resilience Act – open-source

https://digital-strategy.ec.europa.eu/en/policies/cra-open-source
1•doener•5m ago•1 comments

When will "the research paper" disappear in economics?

https://marginalrevolution.com/marginalrevolution/2026/03/when-will-the-research-paper-disappear-...
1•paulpauper•5m ago•0 comments

Caviar Diplomacy

https://goodperson.substack.com/p/caviar-diplomacy
2•paulpauper•8m ago•0 comments

Air Canada 8646 Reddit Megathread

https://old.reddit.com/r/aviation/comments/1s1bhva/air_canada_8646_megathread/
2•throwway262515•10m ago•1 comments

Non-Messing-Up++: Diagonal Sorting and Young Tableaux

https://winwang.blog/posts/non-messing-up++
1•winwang•10m ago•1 comments

Show HN: An AI predicts your personality and blind spots from just your LinkedIn

https://coached.com/deep-read
1•rohanm93•13m ago•0 comments

Show HN: Linkpeek – link preview for Node.js, Bun, and Deno (1 dependency)

https://github.com/thegruber/linkpeek
1•adrgru•13m ago•0 comments

Was sick scrolling multiple platforms to stay up to date, I made one to fix it

https://amygdala.eu/pulse?q=artificial+intelligence
1•JoranCornelisse•13m ago•0 comments

China battery trio gain $70B as Iran war sparks 'paradigm shift'

https://www.ft.com/content/b122ca1f-fc99-4749-9764-f1998b84dd07
2•akyuu•13m ago•0 comments

Box of Secrets: Discreetly modding an apartment intercom to work with Apple Home

https://www.jackhogan.me/blog/box-of-secrets/
1•jackhogan11•14m ago•0 comments

Show HN: Oo – compress output for coding agents (cargo test → "47 passed, 2.1s")

https://github.com/randomm/oo
1•jannniii•15m ago•0 comments

A new kind of distracted driving is on the rise

https://www.theguardian.com/technology/2026/mar/23/distracted-driving-smartphones-tiktok
1•n1b0m•16m ago•0 comments

Some US car buyers envy what they cannot have – affordable Chinese EVs

https://www.reuters.com/world/asia-pacific/some-us-car-buyers-envy-what-they-cannot-have-affordab...
3•doctorhandshake•17m ago•0 comments

Testing the Swift C compatibility with Raylib

https://carette.xyz/posts/swift_c_compatibility_with_raylib/
1•Brajeshwar•18m ago•0 comments

Broadcasters urge EU to tighten rules for Big Tech in smart TV standoff

https://www.reuters.com/sustainability/boards-policy-regulation/eu-digital-rules-should-apply-big...
1•gostsamo•18m ago•0 comments

Fyn: An uv fork with new features, bug fixes, stripped telemetry

https://github.com/duriantaco/fyn
16•BiteCode_dev•19m ago•2 comments

Prismo – Scrappy notes become a structured knowledge base you get quizzed on

https://prismo-app.com/
1•Elial•22m ago•0 comments

Get up to speed with partial clone and shallow clone (2020)

https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/
1•chmaynard•23m ago•0 comments

Yet Another UK HS2 Screw Up

https://www.bbc.co.uk/news/articles/czex3lj077xo
3•zabzonk•26m ago•0 comments

OpenChoreo: An open-source internal developer platform that does not hide K8s

https://openchoreo.dev/
1•hemapani•26m ago•1 comments

How I got a Dear ImGui App Approved on the Mac App Store

https://marchildmann.com/blog/imgui-mac-app-store/
1•hilti•27m ago•1 comments

LaGuardia Airport Closed After Runway Collision That Killed Two Pilots

https://www.wsj.com/us-news/faa-issues-ground-stop-at-laguardia-after-plane-collides-with-vehicle...
1•fortran77•28m ago•1 comments

Bypassing deep packet inspection with socat and HTTPS tunnels

https://blog.bofh.it/debian/id_472
1•speckx•29m ago•0 comments

The Truth About No-KYC Crypto Cards, from Someone Who Ran One

https://twitter.com/defyneric/status/2021116183898886201
2•gasull•30m ago•0 comments

Vertical Farms Tried to Compete with Open Field Farming. It Isn't Going Well

https://www.nytimes.com/2026/03/21/business/vertical-farms-tried-to-compete-with-open-field-farmi...
2•mistersquid•31m ago•1 comments