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•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.

Lexica: A word-of-the-day SMS service

https://lexica.io
1•sestarkman•1m ago•0 comments

OpenAI invests in Sam Altman's brain computer interface startup Merge Labs

https://techcrunch.com/2026/01/15/openai-invests-in-sam-altmans-brain-computer-interface-startup-...
1•tobarpal•1m ago•0 comments

Digg launches its new Reddit rival to the public

https://techcrunch.com/2026/01/14/digg-launches-its-new-reddit-rival-to-the-public/
1•madihaa•2m ago•0 comments

Visualize OpenUSD in Rerun

https://github.com/art-e-fact/usd-rerun-logger
1•Tycho87•2m ago•0 comments

The seam through the center of things – on addiction, God, and grace

https://usefulfictions.substack.com/p/the-seam-through-the-center-of-things
1•sebg•3m ago•0 comments

Are There Accumulating Microplastics in Human Tissue or Not?

https://www.science.org/content/blog-post/are-there-accumulating-microplastics-human-tissue-or-not
1•Tomte•5m ago•0 comments

Show HN: 1Code – open-source Cursor-like UI for Claude Code

https://github.com/21st-dev/1code
4•Bunas•6m ago•1 comments

Apple lost the AI race – now the real challenge starts

https://www.theverge.com/tech/861957/google-apple-ai-deal-iphone-gemini
1•speckx•9m ago•0 comments

Scientists Put Teeth into Water-Driven Gears

https://www.nyu.edu/about/news-publications/news/2026/january/scientists-put-teeth-into-water-dri...
1•wjSgoWPm5bWAhXB•11m ago•0 comments

Show HN: BlogHunter – Generate and host SEO blog posts with AI

https://bloghunter.se/
1•the_plug•12m ago•0 comments

In Memoriam: Remembering Mike Flynn

https://www.computer.org/publications/tech-news/insider-membership-news/in-memoriam-mike-flynn
2•jecel•12m ago•2 comments

Are people avoiding iOS 26 because of Liquid Glass? It's complicated

https://arstechnica.com/gadgets/2026/01/are-people-avoiding-ios-26-because-of-liquid-glass-its-co...
1•speckx•13m ago•0 comments

Southern California has an unlikely AI mecca: the industrial Vernon

https://www.latimes.com/business/story/2025-12-30/southern-california-has-unlikely-ai-mecca-very-...
1•PaulHoule•14m ago•0 comments

Fibonacci in the NYT Pips

https://benkettle.xyz/posts/fibonacci-pips/
2•bkettle•14m ago•0 comments

Reflections on TA-ing Harvard's first AI safety course

https://www.lesswrong.com/posts/gcFB2RT5vpKHbH4ic/reflections-on-ta-ing-harvard-s-first-ai-safety...
1•sebg•15m ago•0 comments

The production and autonomy gap shaping modern drone warfare

https://tots.nerdrums.com/p/affordable-mass
1•Justin_N•15m ago•1 comments

Why Can't I Focus Anymore? The Science of Attention Decline

https://www.focusfit.app/blog/why-cant-i-focus-anymore
2•shenli3514•18m ago•0 comments

"Civil Disobedience" – Henry David Thoreau (1849) [pdf]

https://blogs.law.columbia.edu/uprising1313/files/2017/10/Civil-Disobedience-by-Henry-David-Thore...
2•dataviz1000•19m ago•0 comments

Open source MySQL repository has no commits in more than three months

https://devclass.com/2026/01/13/open-source-mysql-repository-has-no-commits-in-more-than-three-mo...
4•firesteelrain•19m ago•1 comments

Thumby, a Tiny Playable Keychain

https://thumby.us/
1•tosh•21m ago•0 comments

Decreasing human body temperature in United States since Industrial Revolution

https://elifesciences.org/articles/49555
2•paulpauper•23m ago•1 comments

Astronauts splash down to Earth after medical evacuation from space station

https://www.bbc.com/news/articles/c205r8n0276o
2•reconnecting•23m ago•1 comments

OpenAI Codex Zoom Event – 10xing Eng Velocity

https://bvp.zoom.us/webinar/register/WN_bul7bYg6RcCXBuxl30KwRA#/registration
1•bnagda•23m ago•2 comments

Show HN: Skillthis.ai – Generate AI skills using Claude's best practices

https://skillthis.ai
1•barefootsanders•24m ago•1 comments

Burn 0.20.0: Unifying CPU and GPU Kernels with CubeCL

https://burn.dev/blog/release-0.20.0/
2•dabinat•25m ago•0 comments

Visualizing and managing Pipewire audio graphs from Emacs

https://sachachua.com/blog/2026/01/visualizing-and-managing-pipewire-audio-graphs-from-emacs/
1•JNRowe•25m ago•0 comments

Archaeologists uncover Victorian children's schoolwork in east London

https://www.ianvisits.co.uk/articles/archaeologists-uncover-victorian-childrens-schoolwork-in-eas...
1•7777777phil•25m ago•0 comments

UK offshore wind prices come in 40% cheaper than gas in record auction

https://electrek.co/2026/01/14/uk-offshore-wind-record-auction/
8•doener•27m ago•4 comments

Show HN: I built an 11MB offline PDF editor because mobile Acrobat is 500MB

https://revpdf.com/
3•pawandeepsingh•27m ago•1 comments

How to Bounce Postal Mail

https://blog.zgp.org/how-to-bounce-postal-mail/
2•speckx•28m ago•0 comments