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.

Why Tech Bros Are Now Obsessed with Taste

https://www.newyorker.com/culture/infinite-scroll/why-tech-bros-are-now-obsessed-with-taste
1•rmason•44s ago•0 comments

Microbenchmarking Chipsets for Giggles

https://chipsandcheese.com/p/microbenchmarking-chipsets-for-giggles
1•zdw•9m ago•0 comments

AI Is Garbage and a Bubble

https://www.richardcarrier.info/archives/38652
3•mastabadtomm•10m ago•0 comments

Show HN: Inner Warden, self-defending server with eBPF and AI

https://www.innerwarden.com/
2•maiconburn•11m ago•0 comments

Describe an app in one sentence, get it built and shipped within minutes

https://bubbling.dev/
1•georgesmith9914•12m ago•2 comments

GrapheneOS will remain usable by anyone without requiring personal information

https://grapheneos.social/@GrapheneOS/116261301913660830
1•nothrowaways•13m ago•0 comments

Show HN: SYNX – a new config format with active mod. Built for AI and humans

https://synx.aperturesyndicate.com/
2•Kaiserrberg•14m ago•0 comments

Show HN: Discover Indie Version of Popular SaaS Products

https://indiehustles.com/
2•devarifhossain•15m ago•1 comments

Mutual Party Extremism

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6425039
2•neehao•15m ago•0 comments

The Slow Collapse of MkDocs

https://fpgmaas.com/blog/collapse-of-mkdocs/
1•zdw•17m ago•0 comments

Show HN: I built a paper-based vault with m-of-n keys

https://papervault.xyz
2•boazeb•17m ago•0 comments

Solod: Go can be a better C

https://antonz.org/solod/
3•ibobev•19m ago•0 comments

Show HN: EnvMaster – inject encrypted env variables from your terminal

https://www.envmaster.dev/
2•selixe_•20m ago•0 comments

Onefiling

https://bumbershootsoft.wordpress.com/2026/03/21/onefiling/
1•ibobev•20m ago•0 comments

Learning Rust

https://alexene.dev/2018/09/09/Learning-rust.html
1•ibobev•22m ago•0 comments

MFOS: Enforcing a commit boundary for AI-assisted decisions

https://github.com/justabriar/mfos-commit-boundary/blob/main/README.md
1•tcook462•23m ago•0 comments

Scientists discover AI can make humans more creative

https://www.sciencedaily.com/releases/2026/03/260315004355.htm
1•logicprog•24m ago•0 comments

The vocoder, the military tech that changed music

https://www.theverge.com/podcast/898697/vocoder-music-instrument-version-history
1•ianrahman•25m ago•0 comments

Learning Creative Learning

https://lcl.media.mit.edu/
2•ngmc•34m ago•1 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...
3•Kaibeezy•35m ago•1 comments

Science Has a Major Fraud Problem

https://www.thefp.com/p/science-has-a-major-fraud-problem
1•nextos•36m ago•0 comments

We Solved the Recording Problem. The Playback Problem Is Still Broken

https://medium.com/@jo.sagar/we-solved-the-recording-problem-the-playback-problem-is-still-broken...
1•sagardjoshi•38m ago•0 comments

A giant cloud of alcohol has been discovered in the universe (2022)

https://universemagazine.com/en/astronomers-felt-the-taste-and-smell-of-a-giant-cloud-of-alcohol/
1•thunderbong•38m ago•0 comments

Crawl4AI

https://docs.crawl4ai.com/
1•bjornroberg•41m ago•1 comments

Terence Tao – Kepler, Newton, and the true nature of mathematical discovery

https://www.dwarkesh.com/p/terence-tao
4•paulpauper•41m ago•0 comments

Ask HN: Is it feasible to build an ESP32 emulator in JavaScript?

https://github.com/mluis/qemu-esp32
3•dmonterocrespo•42m ago•4 comments

File exclusion reliability of AI coding tools

https://github.com/yjcho9317/aiignore-cli/blob/main/docs/test-report.md
1•amai•42m ago•0 comments

Economist David Woo: Why Markets Misread the Iran War [video]

https://www.youtube.com/watch?v=z7QAc99EDR0
2•thomassmith65•42m ago•0 comments

Disintegration Fingerprinting: A Low-Cost Tool to Identify Falsified Medicines

https://www.medrxiv.org/content/10.1101/2025.08.15.25333621v2
2•Luc•42m ago•0 comments

Reading Socrates in Silicon Valley

https://www.ft.com/content/f9e57ed6-ad07-491c-830a-88ba92d77add
1•thomasjudge•42m ago•1 comments