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

Skunk Works Rules [pdf]

https://www.lockheedmartin.com/content/dam/lockheed-martin/aero/photo/skunkworks/kellys-14-rules.pdf
1•dvrp•40s ago•0 comments

Mitt Romney: Tax the Rich, Like Me

https://www.nytimes.com/2025/12/19/opinion/romney-tax-the-rich.html
2•throw0101c•4m ago•1 comments

Tips for Writing a Technical Book

https://borischerny.com/writing/2019/05/26/Tips-For-Writing-A-Technical-Book.html
2•jxmorris12•9m ago•0 comments

I'm rejecting the next architecture PR that uses a Service Mesh for a team of 4

https://old.reddit.com/r/devops/comments/1pzkibf/im_rejecting_the_next_architecture_pr_that_uses_a/
2•ivewonyoung•9m ago•0 comments

Taking photos of PCBs and electronics [video]

https://www.youtube.com/watch?v=W-j-hvUjfJs
1•zdw•10m ago•0 comments

AI-powered skin analysis platform

https://skinadvisor.ai/en
1•nancynguyen98•11m ago•1 comments

We don't need more contributors who aren't programmers to contribute code

https://discourse.llvm.org/t/rfc-llvm-ai-tool-policy-human-in-the-loop/89159
4•pertymcpert•12m ago•0 comments

Ask HN: Looking for an Invite for Lobster.rs

1•willmorrison•13m ago•0 comments

Antibrittle Agents

https://www.southbridge.ai/blog/antibrittle-agents
1•hrishi•13m ago•0 comments

I built a free tool to explore app market data for indie developers and founders

https://appark.ai/
1•xuechen006•19m ago•1 comments

I curated 25GB of video assets so you don't have to use Stock sites

2•BeyondWalk•24m ago•0 comments

You can now submit fraud claims to the IRS online. Before you had to mail a form

https://twitter.com/shl/status/2005621582677622871
1•raybb•26m ago•1 comments

If childhood is half of life, how should that change how we live?

https://moultano.wordpress.com/2025/12/30/children-and-helical-time/
2•moultano•29m ago•1 comments

Play Free Online Games – No Download Needed – MiniTapFun

https://minitapfun.com
2•heihieih•32m ago•0 comments

MTTR-A: Measuring Cognitive Recovery Latency in Multi-Agent Systems

https://arxiv.org/abs/2511.20663
2•PaulHoule•40m ago•0 comments

OpenSSL Performance Still Under Scrutiny

https://www.feistyduck.com/newsletter/issue_132_openssl_performance_still_under_scrutiny
1•todsacerdoti•44m ago•0 comments

L1TF Reloaded

https://github.com/ThijsRay/l1tf_reloaded
4•Fnoord•44m ago•0 comments

I hope generative AI does away with SEO

https://www.pcloadletter.dev/blog/ai-and-seo/
1•ronbenton•44m ago•0 comments

Spectre in the real world: Leaking your private data from cloud with CPU vulns [video]

https://media.ccc.de/v/39c3-spectre-in-the-real-world-leaking-your-private-data-from-the-cloud-wi...
1•Fnoord•46m ago•0 comments

VL-JEPA: Joint Embedding Predictive Architecture for Vision-Language

https://arxiv.org/abs/2512.10942
2•hbarka•51m ago•0 comments

Using AI generated images to get refunds

https://www.wired.com/story/scammers-in-china-are-using-ai-generated-images-to-get-refunds/
1•MattSayar•54m ago•0 comments

Show HN: WizardFlow – Client-side watermarking for Reddit

https://chromewebstore.google.com/detail/wizardflow-image-assistan/hogehefggenldjhcopnpffpgnoepllii
1•jackking1•57m ago•1 comments

Users are required to log in to Bugzilla even to view existing bug reports

https://lists.gnucash.org/pipermail/gnucash-user/2025-September/117417
1•aendruk•57m ago•0 comments

SomaliScan – US Fraud aggregator sourced from public records

https://www.somaliscan.com/
13•sergiotapia•57m ago•3 comments

Show HN: Client-side encrypted AI detector using model ensembling

https://veredictlabs.com
1•oscarzdev•59m ago•0 comments

Effective Alruists Should Embrace Sortition

https://almostinfinite.substack.com/p/effective-altruists-should-embrace
1•maaaaxaxa•59m ago•1 comments

Show HN: Easy Habits

https://habits.easycyberprotection.com/
1•ToJans•1h ago•0 comments

Show HN: Marathon Cope 2025 – Your peak fitness, whether or not you ran it

https://getfast.ai/marathon-cope
3•steadyelk•1h ago•0 comments

The science of how (and when) we decide to speak out–or self-censor

https://arstechnica.com/science/2025/12/the-science-of-how-and-when-we-decide-to-speak-out-or-sel...
2•pseudolus•1h ago•0 comments

MCP to trade Robinhood through Claude Code

https://github.com/trayders/trayd-mcp
2•teamtrayd•1h ago•0 comments