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.

Internet Graveyard

https://internetgraveyard.vercel.app/
1•thebigship•1m ago•0 comments

A better Kubernetes, from the ground up (2020)

https://blog.dave.tf/post/new-kubernetes/
1•Wingy•3m ago•0 comments

Blog Is a Radio Station

https://blog.jimgrey.net/2026/04/23/your-blog-is-a-radio-station/
1•foxfired•10m ago•0 comments

Show HN: The Unix Magic poster, annotated (updated)

https://github.com/drio/unixmagic
1•drio•11m ago•0 comments

SpaceX warns probes into abusive AI imagery could cause headaches for IPO

https://nypost.com/2026/04/24/business/elon-musks-spacex-warns-probes-into-sexually-abusive-ai-im...
1•1vuio0pswjnm7•15m ago•0 comments

From super powder to super power

https://www.scmp.com/news/china/science/article/3350906/super-powder-super-power-can-china-plasma...
1•xnhbx•20m ago•0 comments

Protein-templated synthesis of dinucleotide repeat DNA by antiphage RT

https://www.science.org/doi/10.1126/science.aed1656
2•xnhbx•25m ago•0 comments

Sama: Feels like a good time to seriously rethink OS

https://twitter.com/sama/status/2048428561481265539
2•tmzt•29m ago•0 comments

The Fourth Beta of Android 17

https://android-developers.googleblog.com/2026/04/the-fourth-beta-of-android-17.html
1•flykespice•31m ago•0 comments

Aether – A GCP-Native Framework to Terminate LLM Agent Drift

https://github.com/poinsettiaclg-gif/AETHER-core
1•Painsettia•33m ago•1 comments

What I Did In The Hedonium Shockwave, by Emma, aged 6 and a half

https://ozybrennan.substack.com/p/what-i-did-in-the-hedonium-shockwave
1•barry-cotter•38m ago•0 comments

Parental Controls

https://www.tumblr.com/luminousalicorn/814990078758830080/parental-controls
1•dado3212•41m ago•0 comments

The biggest insect ever was a "dragonfly"

https://eartharchives.org/index.html
2•anjel•42m ago•0 comments

Coding agents ignore their own budgets

https://twitter.com/RampLabs/status/2046624992956146158
1•gmays•42m ago•0 comments

Software engineering may no longer be a lifetime career

https://www.seangoedecke.com/software-engineering-may-no-longer-be-a-lifetime-career/
3•milkglass•48m ago•0 comments

After three months on Linux, I don't miss Windows at all

https://www.theverge.com/tech/918797/switched-to-linux-dont-miss-windows
4•Brajeshwar•50m ago•0 comments

The reporters at this news site are AI bots. OpenAI appears to be funding it

https://modelrepublic.substack.com/p/the-reporters-at-this-news-site-are
4•Teever•53m ago•0 comments

Liebherr delivers electric excavator to Bulgarian copper mine

https://electrek.co/2026/04/26/liebherr-delivers-330-ton-electric-excavator-to-bulgarian-copper-m...
2•y1n0•57m ago•0 comments

ChatGPT solves Erdos Problem 1176 in 80 minutes

https://chatgpt.com/share/69dd1c83-b164-8385-bf2e-8533e9baba9c
3•voisin•1h ago•0 comments

Blood vessels found in T. rex bones are rewriting dinosaur science

https://www.sciencedaily.com/releases/2026/04/260426012259.htm
4•y1n0•1h ago•0 comments

RTX 4090 sent for repair is a sophisticated fake with laser-etched VRAM and core

https://www.tomshardware.com/pc-components/gpus/rtx-4090-sent-for-repair-is-a-sophisticated-fake-...
1•y1n0•1h ago•0 comments

$292M Lost, Zero Bugs Found: Lessons from the RsETH Bridge Exploit

https://www.openzeppelin.com/news/lessons-from-kelpdao-hack
2•wslh•1h ago•0 comments

Google banks on AI edge to catch up to cloud rivals Amazon and Microsoft

https://www.ft.com/content/2429f0f0-b685-4747-b425-bf8001a2e94c
50•donsupreme•1h ago•13 comments

The Hottest Phone for Kids Right Now Is a $100 Landline

https://www.bloomberg.com/news/articles/2026-04-24/viral-tin-can-phone-brings-landline-nostalgia-...
12•Amorymeltzer•1h ago•3 comments

Claude Feature Request: Persona Profiles – switchable bundles

https://github.com/anthropics/claude-code/issues/53458
1•xpe•1h ago•0 comments

OGMA – persistent memory and dual-brain AI, newcomer seeks pro feedback

https://github.com/kidshadow79/Ogma
1•Kidshadow79•1h ago•0 comments

Inside Job – Supermicro

https://www.thewirechina.com/2026/04/26/inside-job/
1•latchkey•1h ago•0 comments

Hello, World (2006)

https://berndhopfengaertner.net/projects/hello-world/index.html
1•roggenbuck•1h ago•0 comments

Oil jumps, stock futures slip as US-Iran talks stall

https://www.reuters.com/business/energy/global-markets-global-markets-2026-04-26/
2•onemoresoop•1h ago•0 comments

Show HN: Run coding agents in a sandbox locally

https://github.com/CelestoAI/SmolVM
2•theaniketmaurya•1h ago•1 comments