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•8mo 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•8mo 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•8mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•8mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

BMW Commits to Subscriptions Even After Heated Seat Debacle

https://www.thedrive.com/news/bmw-commits-to-subscriptions-even-after-heated-seat-debacle
1•geox•4m ago•0 comments

Show HN: Similar Repos – AI Recommender for GitHub Repository (Chrome Extension)

https://github.com/SimilarRepos/similar-repos
1•robbyzhao•12m ago•0 comments

1M token context: The good, the bad and the ugly (2025)

https://www.micron.com/about/blog/company/insights/1-million-token-context-the-good-the-bad-and-t...
1•teleforce•14m ago•0 comments

Making AI models leaner and faster without sacrificing accuracy

https://research.google/blog/sequential-attention-making-ai-models-leaner-and-faster-without-sacr...
1•Anon84•15m ago•0 comments

The Software Rout Is Spreading Pain to the Debt Markets

https://www.wsj.com/finance/investing/the-software-rout-is-spreading-pain-to-the-debt-markets-d6d...
1•petethomas•17m ago•0 comments

Entwinings: Literature and History, Fathers and Sons, Writers and Readers

https://hedgehogreview.com/issues/place-and-revolution/articles/entwinings
1•Caiero•18m ago•0 comments

CISA gives federal agencies one year to rip out end-of-life devices

https://therecord.media/cisa-gives-federal-agencies-one-year-end-of-life-devices
1•WaitWaitWha•19m ago•0 comments

Bitcoin gets a zero price target in wake of Burry warning

https://seekingalpha.com/news/4547997-bitcoin-s-price-target-at-zero
2•hn_acker•19m ago•0 comments

YARN: Efficient Context Window Extension of Large Language Models (2024) [PDF]

https://proceedings.iclr.cc/paper_files/paper/2024/file/874a4d89f2d04b4bcf9a2c19545cf040-Paper-Co...
1•teleforce•21m ago•0 comments

Bios over SSH: Turning KVM Video into Live Text (No Serial Needed)

https://www.youtube.com/watch?v=lhBzCPXqWAA
2•thunderbong•21m ago•0 comments

'Depths of Wikipedia' Creator Annie Rauwerda on 'Fragile' Internet Citations

https://blog.archive.org/2026/02/05/depths-of-wikipedia-creator-annie-rauwerda-on-fragile-interne...
1•abetusk•22m ago•0 comments

Integration Labs: Transforming Traumatizing into Trauma-Integrating Cultures

https://pocketproject.org/integration-labs-2026/
1•rendx•23m ago•0 comments

I Hacked My Feed to Find Undervalued Content

https://xrayfeed.deepwalker.xyz/blog/strategies
1•m00dy•25m ago•0 comments

What are tokens and how to count them?

https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
1•teleforce•27m ago•0 comments

Web of Knowledge

https://dave.autonoma.ca/blog/2019/06/06/web-of-knowledge/
1•andsoitis•29m ago•0 comments

Alpine Linux is a security-oriented, lightweight Linux based on musl Libc

https://www.alpinelinux.org/
1•doener•30m ago•0 comments

Collapse OS on the ZX Spectrum

https://www.youtube.com/watch?v=q4Ra4NwMHBM
1•doener•32m ago•0 comments

RubyShell New Release

https://github.com/albertalef/rubyshell/releases/tag/v1.5.0
1•albertalef•33m ago•0 comments

Collapse OS – Why Forth?

https://collapseos.org/forth.html
5•doener•35m ago•0 comments

Horizons – OSS Agent Execution Engine

https://github.com/synth-laboratories/Horizons
5•JoshPurtell•40m ago•4 comments

A Very Small SAT Solver (From Haskell) Now in Dafny, Proved Correct with LLMs

https://github.com/namin/dafny-sandbox/blob/master/Sat.dfy
1•namin•42m ago•0 comments

Ask HN: Anyone Seeing YT ads related to chats on ChatGPT?

1•guhsnamih•42m ago•1 comments

Y Combinator Reverses Decision to Stop Investing in Canada Firms

https://www.bloomberg.com/news/articles/2026-02-05/y-combinator-reverses-decision-to-stop-investi...
3•toomuchtodo•49m ago•1 comments

Datacenter capex gravy train is over

2•zerosizedweasle•53m ago•4 comments

The limits of interview questions

https://orchidfiles.com/the-limits-of-interview-questions/
1•theorchid•56m ago•0 comments

Show HN: ImportKit – Embeddable CSV import widget for SaaS apps

1•gissurthor•56m ago•0 comments

Incarcerated activists from Oscar-nominated documentary sent to solitary

https://www.theguardian.com/us-news/2026/jan/30/alabama-solution-activist-solitary-confinement
6•konaraddi•59m ago•0 comments

What Happens When You Delete a File

https://www.youtube.com/watch?v=up9DoD2hs_E
1•artisandip7•1h ago•0 comments

Counter-Strike Bench: GPT 5.3 Codex vs. Claude Opus 4.6

https://www.instantdb.com/essays/codex_53_opus_46_cs_bench
2•stopachka•1h ago•0 comments

We Reverse-Engineered Docker Sandbox's Undocumented MicroVM API

https://www.rivet.dev/blog/2026-02-04-we-reverse-engineered-docker-sandbox-undocumented-microvm-api/
1•pploug•1h ago•0 comments