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•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.

Show HN: The Fast Track to Korean OEM and ODM Manufacturers

https://oemkorea.com
1•umitakcn•1m ago•0 comments

A Quiet Revolution: Drug Decriminalisation Across the Globe (2016) [pdf]

https://www.citywide.ie/assets/files/pdf/a_quiet_revolution_decriminalisation_across_the_globe.pdf
1•robtherobber•2m ago•0 comments

OMB's Proposed Federal Rules That May Destroy American Science

https://elizabethginexi.substack.com/p/summary-of-key-changes-in-ombs-proposed
1•SubiculumCode•3m ago•0 comments

The Dead Economy Theory

https://www.owenmcgrann.com/p/the-dead-economy-theory
1•WillDaSilva•3m ago•0 comments

Why AI Transport

https://ably.com/docs/ai-transport/why
1•zknill•4m ago•0 comments

AI token streaming isn't about SSE vs. WebSockets

https://zknill.io/posts/ai-token-streaming-isnt-about-sse-vs-websockets/
1•zknill•5m ago•0 comments

Africa Is Embracing Renewable Energy

https://e360.yale.edu/digest/africa-embraces
3•YaleE360•5m ago•0 comments

Nondeterminism's Not the Problem

https://isaacvando.com/nondeterminisms-not-the-problem
1•isaacvando•6m ago•0 comments

CVE-2026-48710: A Maintainer's Perspective

https://marcelotryle.com/blog/2026/05/28/cve-2026-48710-a-maintainers-perspective/
2•kludex•7m ago•0 comments

National Prompt Registry

https://www.nationalprompt.com/
2•outime•10m ago•0 comments

Zero Operators: Humans Write the Plan, Agents Run the Workflow

https://github.com/SamPlvs/zero-operators
1•delduca•12m ago•0 comments

Ronny Chieng Tells Harvard to 'Destroy AI' as Graduates Cheer

https://www.harvardmagazine.com/commencement/class-day-ronny-chieng-harvard
4•cdrnsf•12m ago•0 comments

The Coffee Ride Shop Visit: Do Good (With Coffee)

https://theradavist.com/the-coffee-ride-shop-visit-do-good-with-coffee
1•ohjeez•13m ago•0 comments

HTTP Streaming and AI

https://ably.com/docs/ai-transport/why/http-streaming-and-ai
1•zknill•15m ago•0 comments

Show HN: Agent Memory Guard – OWASP defense for AI agent memory poisoning

https://github.com/OWASP/www-project-agent-memory-guard
1•vgudur297•16m ago•0 comments

GTA 6 Developers Unionize

https://rockstarintel.com/gta-6-developers-announce-rockstar-games-union/
5•AndrewKemendo•16m ago•1 comments

The Vatican's Man Inside Anthropic

https://www.wired.com/story/the-vaticans-man-inside-anthropic/
2•Brajeshwar•17m ago•0 comments

Sonic boom rattles South Carolina

https://www.wltx.com/video/news/local/sonic-boom-rattles-south-carolina/101-c40c9d3b-633d-4442-ab...
1•thunderbong•18m ago•0 comments

I tracked down the thief who stole $200k of Lego [YouTube] [video]

https://www.youtube.com/watch?v=wscQpkcwgNU
2•rob•21m ago•0 comments

When AI starts writing systems code

https://www.coreauto.com/blog/when-ai-starts-writing-systems-code
3•walz•22m ago•0 comments

Show HN: Elemental – simple front ends in plain JavaScript

https://github.com/fynyky/elemental
5•fynyky•22m ago•1 comments

Brilliant launches AI tutor to get kids to think

https://twitter.com/suekhim/status/2060378988606878147
11•stochastician•24m ago•0 comments

Does AI Make Totalitarianism More Likely?

https://demonstrandom.com/essays/posts/ai_totalitarianism/
3•demonstrandom•26m ago•3 comments

Panix – Universal NixOS Deployment Tool

https://github.com/mihakrumpestar/panix
1•miha_k•27m ago•1 comments

Does Being Bored Make Us More Creative? (2014)

https://fermatslibrary.com/s/does-being-bored-make-us-more-creative
1•downbad_•27m ago•0 comments

Unix in East Germany (GDR) (1990)

https://groups.google.com/g/comp.unix.wizards/c/QX_dxElrVNs
2•downbad_•27m ago•0 comments

The literary world is sleepwalking into an AI disaster

https://www.theargumentmag.com/p/the-literary-world-is-sleepwalking
5•Michelangelo11•28m ago•1 comments

Replacing Employees with AI

https://twitter.com/EscanorReloaded/status/2059637607403831732
3•redbell•31m ago•0 comments

The Biggest Tell That Something Was Written by AI

https://www.theatlantic.com/technology/2026/05/how-to-tell-ai-writing/687345/
3•Jtsummers•36m ago•0 comments

Jeff Geerling: The Framework 12 is dead. Apple killed it [video]

https://www.youtube.com/watch?v=aPVAnwuSjfk
4•throwaway2037•36m ago•2 comments