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.

Show HN: Filling PDF forms with AI using client-side tool calling

https://copilot.simplepdf.com/?share=a7d00ad073c75a75d493228e6ff7b11eb3f2d945b6175913e87898ec96ca...
2•nip•7m ago•0 comments

Brace for the patch tsunami: AI is unearthing decades of buried code debt

https://www.theregister.com/2026/05/02/ncsc_brace_for_patch_tsunami/
1•zeristor•7m ago•0 comments

Show HN: From Beats to Notes and Beyond

https://bookerapp.replit.app/book/fom/from-temporal-structure
1•ersinesen•11m ago•0 comments

Ask HN: Is it possible to upgrade the RAM of a MacBook Air M2?

1•julienreszka•11m ago•0 comments

CPanel CVE-2026-41940 Exploitation from a Honeypot Perspective

https://defusedcyber.com/cve-2026-41940-cpanel-exploitation-honeypot-perspective
1•waihtis•15m ago•0 comments

Ask HN: Is the AI running out of capacity?

1•roschdal•17m ago•0 comments

Show HN: Large Scale Article Extract of Newspapers 1730s-1960s

https://snewpapers.com/
2•brettnbutter•19m ago•0 comments

ScopeGuard 0.0.7: Your Go-to linter for scope and shadow issues, now with MCP

https://old.reddit.com/r/golang/comments/1t0nw27/scopeguard_007_your_goto_linter_for_scope_and/
1•eik•20m ago•0 comments

AI coding tools are silently disagreeing with each other

https://github.com/sampleXbro/agentsmesh
1•samplexBro•21m ago•0 comments

Dabbling in Erlang, part 2: A minimal introduction (2013)

https://agis.io/post/dabbling-in-erlang-a-minimal-introduction/
1•pasxizeis•24m ago•0 comments

Claude Code: Creating Kubernetes Debugging AI Agent for VictoriaMetrics

https://rtfm.co.ua/en/claude-code-creating-kubernetes-debugging-ai-agent-for-victoriametrics/
1•valyala•26m ago•0 comments

The Three Durable Function Forms

https://jack-vanlightly.com/blog/2025/12/10/the-three-durable-function-forms
1•birdculture•33m ago•0 comments

Why are there both TMP and TEMP environment variables, and which one is right?

https://devblogs.microsoft.com/oldnewthing/20150417-00/?p=44213
1•ankitg12•38m ago•0 comments

Shadcn/UI: A set of beautifully designed components that you can customize

https://github.com/shadcn-ui/ui
1•doener•40m ago•0 comments

Hanami, Dry and ROM are joining as Hanakai

https://hanakai.org/blog/2026/05/01/welcome-to-hanakai
1•makenosound•40m ago•0 comments

Lucide: Open-source icon library with 1600 vector (SVG) files for icons

https://github.com/lucide-icons/lucide
1•doener•40m ago•0 comments

A collection of Tailwind CSS v4.0 utilities for creating beautiful animations

https://github.com/Wombosvideo/tw-animate-css
1•doener•41m ago•0 comments

There is no Shopify for service businesses. Prove me wrong

https://www.indiehackers.com/post/there-is-no-shopify-for-service-businesses-i-keep-waiting-for-s...
1•stangineer•43m ago•0 comments

SKILL.make: Makefile Styled Skill File

https://github.com/Teaonly/SKILL.make
4•teaonly•43m ago•1 comments

Ask HN: What book have you given as a gift?

2•chistev•47m ago•6 comments

Inspiring Female Heavy Equipment Operators in Construction

https://heavydutyjournal.com/female-heavy-equipment-operators-mastering-construction-and-mining-m...
1•thunderbong•54m ago•0 comments

What is Apache Kafka and how does it work?

https://stanislavkozlovski.medium.com/what-is-apache-kafka-and-how-does-it-work-16023aa2efee
4•filipyonov•58m ago•0 comments

How Go Players Disempower Themselves to AI

https://www.lesswrong.com/posts/nR3DkyivzF4ve97oM/how-go-players-disempower-themselves-to-ai
1•cubefox•59m ago•0 comments

I clustered 3,847 public comments on the Santa Ynez offshore EIS

https://www.envirodocket.com/projects/santa-ynez-unit-resumption-eis
1•scarsam•1h ago•0 comments

Watch NASA test its new X-59 jet designed to go faster than the speed of sound

https://www.scientificamerican.com/video/watch-nasa-test-its-new-x-59-jet-designed-to-go-faster-t...
1•beardyw•1h ago•2 comments

SpaceX ISS Docking SIM

https://iss-sim.spacex.com/
2•CubicalOrange•1h ago•0 comments

Show HN: TurnZero – Persistent Expert for LLMs

1•dmilicev2•1h ago•0 comments

Wine 11.8 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://www.winehq.org/announce/11.8
2•neustradamus•1h ago•0 comments

Show HN: Formattery – on-device file converter for iPhone, iPad, and Mac

https://apps.apple.com/es/app/formattery-convertir-archivos/id6759955312
1•alEscarcha•1h ago•0 comments

Ask HN: Should AI agents have their own legal entities?

1•LRG-H•1h ago•4 comments