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.

SoK: Security of Autonomous LLM Agents in Agentic Commerce

https://arxiv.org/abs/2604.15367
1•omer_k•3m ago•0 comments

Avoiding a Culture of Emergencies

https://blog.staysaasy.com/p/avoiding-a-culture-of-emergencies
1•walterbell•4m ago•0 comments

Debate grows over memory semiconductor bonuses

https://koreajoongangdaily.joins.com/news/2026-04-20/opinion/columns/Debate-grows-over-semiconduc...
1•walterbell•15m ago•0 comments

Brussels pushes remote working to ease energy crisis

https://www.ft.com/content/bbc9c31e-cc43-41a6-8fb7-057d44b25a21
1•petethomas•16m ago•0 comments

Anthropic installs spyware when you install Claude Desktop

https://blog.alexewerlof.com/p/local-browser-ai
3•hanifbbz•23m ago•0 comments

They Went Abroad to Save Money. Moving Back Seems Unaffordable

https://www.nytimes.com/2026/04/19/business/americans-abroad-cheaper-living-costs.html
2•toomanyrichies•33m ago•0 comments

Tinkerer transforms a filthy 1990s PlayStation into the 'ultimate PS1'

https://www.popsci.com/technology/transform-1990s-playstation/
1•Brajeshwar•37m ago•0 comments

The Infinite Machine Olto is part motorcycle, part bike, part Cybertruck

https://www.theverge.com/transportation/913008/infinite-machine-olto-ebike-review
1•walterbell•48m ago•0 comments

Show HN: OpenRegistry – MCP for global company registry search

https://github.com/sophymarine/openregistry
1•richardwong1•49m ago•0 comments

A cache-friendly IPv6 LPM with AVX-512 (linearized B+-tree, real BGP benchmarks)

https://github.com/esutcu/planb-lpm
2•debugga•49m ago•0 comments

Introductory Biology: Evolutionary and Ecological Perspectives

https://pressbooks.umn.edu/introbio/
2•rolph•54m ago•0 comments

Is AI pressure making developer burnout worse? (anonymous survey inside)

1•rechargedaily•1h ago•1 comments

WebUSB Extension for Firefox

https://github.com/ArcaneNibble/awawausb
3•luu•1h ago•0 comments

Autonomous Testing and AI‑Driven Tooling Are Redefining Developer Productivity

https://semanticed.online/editorial-why-autonomous-testing-and-ai-driven-tooling-are-redefining
2•alihassaanmug•1h ago•0 comments

Qwen releases Qwen3-Embedding-0.6B

https://huggingface.co/Qwen/Qwen3-Embedding-0.6B
3•arabicalories•1h ago•1 comments

Box-shadow is no alternative to outline

https://www.matuzo.at/blog/2026/box-shadow-no-alternative-to-outline
2•salkahfi•1h ago•0 comments

Show HN: Ribbon, a Native iOS Linkding Client

https://apps.apple.com/us/app/ribbon-a-linkding-client/id6762416055
1•cdrnsf•1h ago•0 comments

Wonderful Life: The Burgess Shale and the Nature of History[pdf]

https://ia601309.us.archive.org/20/items/historyDEEPWEB/Wonderful%20Life_%20The%20Burgess%20Shale...
1•rolph•1h ago•0 comments

Detecting Gunshots with a Watch Accelerometer

https://humanparadox.org/garmin-fenix-shot-timer-app/
2•colingauvin•1h ago•0 comments

Unfortunate day for companies named Context

https://www.context.dev/blog/we-are-context-dev-not-context-ai
3•ICodeSometimes•1h ago•2 comments

Mac Mini and Mac Studio Supply Shortages

https://www.wsj.com/tech/personal-tech/apple-mac-mini-supply-3e7a7509
5•Brajeshwar•1h ago•2 comments

Henry David Thoreau 2026 film

https://www.pbs.org/show/henry-david-thoreau/
3•rasengan0•1h ago•0 comments

Scalable Fluxonium Quantum Processors via Tunable-Coupler Architecture

https://arxiv.org/abs/2604.13363
2•jonbaer•1h ago•0 comments

Anthropic installed a spyware bridge on my machine?

https://www.thatprivacyguy.com/blog/anthropic-spyware/
45•twapi•1h ago•11 comments

The Khan Ted Institute [video]

https://www.youtube.com/watch?v=kEhRi1tFlhs
1•apparent•1h ago•1 comments

Contra Benn Jordan, data center (and all) sub-audible infrasound issues are fake

https://blog.andymasley.com/p/contra-benn-jordan-data-center-and
2•logicprog•1h ago•1 comments

Where Did FIFA Seat Lottery Winners?

https://seat-transparency.com/
4•hnburnsy•1h ago•1 comments

Deception is strongly amplified in the job market (a statistical model)

https://bosoncutter.substack.com/p/deception-is-amplified-by-default
4•the_tyger•1h ago•1 comments

Why every developer needs their own agent-skills

https://olshansky.substack.com/p/why-every-developer-needs-their-own
1•Olshansky•1h ago•0 comments

Vercel Incident Response Playbook

https://github.com/OpenSourceMalware/vercel-april2026-incident-response
6•6mile•1h ago•4 comments