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.

Linux PTP mainline development war story and new features

https://bootlin.com/blog/linux-ptp-mainline-development-war-story-and-new-features/
1•ahlCVA•3m ago•0 comments

Bizarre Viruses Indeed

https://www.science.org/content/blog-post/bizarre-viruses-indeed
1•etiam•6m ago•0 comments

New Uber Sexual Assault Trial Underway in North Carolina Federal Court

https://www.law.com/therecorder/2026/04/20/new-uber-sexual-assault-trial-underway-in-north-caroli...
1•1vuio0pswjnm7•11m ago•0 comments

Fedizen.eu Delivers All Relevant Fediverse News

https://fedizen.eu/#Fedizen
1•doener•11m ago•0 comments

Linux 7.1 will have an optional new NTFS driver

https://www.theregister.com/2026/04/20/linux_71_new_ntfs/
2•blackcoffeerain•11m ago•1 comments

Tools of Statecraft

https://www.fpri.org/article/2008/01/tools-of-statecraft-diplomacy-and-war/
1•_doctor_love•13m ago•0 comments

Microsoft helped write data centre emissions secrecy into EU law

https://www.impactloop.com/artikel/microsoft-helped-write-data-centre-emissions-secrecy-into-eu-l...
3•doener•14m ago•0 comments

Show HN: Trees Hate You Guide – play the demo

https://treehateyou.net/
2•jokera•14m ago•1 comments

Tell HN: Gemini CLI and codex are broken

1•garyfirestorm•16m ago•0 comments

Getting back into photography, ditching the phone camera in 2026?

1•eigenhombre•19m ago•1 comments

Watch Twitch Streams on the Amiga

https://amigabench.itch.io/amistreamraider
2•doener•21m ago•0 comments

Linux 7.1 update includes new in-kernel NTFS driver

https://www.tomshardware.com/software/linux/linux-7-1-update-includes-new-in-kernel-ntfs-driver-d...
3•ValentineC•21m ago•0 comments

Forgejo v15.0 Is Available

https://forgejo.org/2026-04-release-v15-0/
1•birdculture•22m ago•0 comments

Mayhem's Legacy: Why MetaBrainz Matters More Than Ever

https://compassmapandkey.com/2026/04/18/mayhems-legacy-why-metabrainz-matters-more-than-ever-and-...
1•JadedBlueEyes•22m ago•0 comments

Stalwart v0.16: A New Foundation

https://stalw.art/blog/stalwart-0-16/
1•currysausage•26m ago•0 comments

Show HN: Sprag – full-stack Python framework with no JavaScript Required

https://github.com/BleedingXiko/SPRAG
1•BleedingXiko•30m ago•0 comments

Ads on Apple Maps

https://ads.apple.com/maps
2•latexr•36m ago•0 comments

Show HN: Auto-generated titles and colors for parallel Claude Code sessions

https://github.com/jbarbier/which-claude-code
1•julien421•36m ago•0 comments

Cyber Use Case

https://claude.com/form/cyber-use-case
2•petethomas•38m ago•0 comments

Deleteduser.com –A $15 PII Magnet

https://mike-sheward.medium.com/deleteduser-com-a-15-pii-magnet-c4396eb21061
2•cdrnsf•38m ago•0 comments

Denver Water draining, closing Antero Reservoir for drought savings

https://coloradosun.com/2026/04/20/antero-reservoir-closure-denver-water-2026-drought/
3•mooreds•39m ago•0 comments

Even 'uncensored' models can't say what they want

https://morgin.ai/articles/even-uncensored-models-cant-say-what-they-want.html
13•llmmadness•46m ago•5 comments

News

https://mag.openrockets.com/p/developmental-integrity-di-and-the-cognitive-environments-why-minor...
2•tyeuw•47m ago•0 comments

Second Jury Finds Uber Responsible for Sexual Assault by a Driver

https://www.nytimes.com/2026/04/20/business/uber-sexual-assault-verdict-bellwether.html
1•golfer•50m ago•0 comments

Wyszukiwarka Przetargów

https://znajdzprzetargi.pl
2•blady209•52m ago•0 comments

Announcement: Changes to GitHub Copilot Individual Plans

https://github.com/orgs/community/discussions/192963
3•andromaton•53m ago•2 comments

Show HN: CLI – A Go command-line library shaped like net/HTTP

https://github.com/mzattahri/cli
2•mohamedattahri•53m ago•1 comments

Show HN: Dynamic Hybrid Search That Beats Pure Dense and Fixed Hybrid

https://github.com/nickswami/dasein-python-sdk/blob/master/README.md
1•nickswami•55m ago•1 comments

Earthset Video

https://www.nytimes.com/2026/04/20/science/reid-wiseman-earthset-photo-artemis-2.html
1•fghorow•55m ago•0 comments

Agent Cost You $54,540

https://kyanfeat.com/blog/how-your-agent-cost-you-54540/
3•kyanfeat•56m ago•1 comments