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.

How to set up Claude Code: a context-first approach

https://dhirajtourani.com/posts/how-to-set-up-claude-code-a-context-first-approach/
1•dtour•35s ago•0 comments

Mesh Of Growth: The first peer-to-peer growth engine for founders

https://www.meshofgrowth.com/
1•vmn2k4•6m ago•1 comments

Terminal Tweaker

https://terminal-tweaker.vercel.app/
1•fauverism•6m ago•2 comments

We Didn't Pick Rust

https://floedb.ai/blog/rust-quarkus-c
2•morganerouvroy•9m ago•1 comments

Accessing LLMs with a Fax [DE]

https://simple-fax.de/fax-ki
1•shutty•11m ago•1 comments

A Solitary Cabin

https://asolitarycabin.org/hello-friend.html
1•DamonHD•12m ago•0 comments

Game-theoretic reasoning requires best response in incomplete information games

https://weyxie.bearblog.dev/for-real-game-theoretic-reasoning-we-need-best-response-in-imperfect-...
1•weyxie•16m ago•0 comments

Deta5yueriyfjhn

https://wokwi.com/projects/455472742854147073
1•horegsounfra•19m ago•0 comments

Show HN: OpenClaw Swarm as a Service (YC W20)

https://www.operator.io/
1•david_shi•19m ago•1 comments

A Language for Agents

https://lucumr.pocoo.org/2026/2/9/a-language-for-agents/
1•doppp•20m ago•0 comments

Open Source: How Middle Powers Can Build Influence in the Age of AI

https://institute.global/insights/tech-and-digitalisation/open-source-influence-age-of-ai
2•romes•21m ago•0 comments

Show HN: Voice-to-voice translation for meetings (macOS, alpha)

https://voiceleap.ai/
1•kamban•22m ago•1 comments

RLM Explained

https://twitter.com/zby/status/2020802687659348196
1•zby•22m ago•0 comments

The pitch deck is dead. Write a pitch.md instead

https://www.joanwestenberg.com/the-pitch-deck-is-dead-write-a-pitch-md-instead/
1•flobosg•25m ago•0 comments

Show HN: GW – manage Git worktrees when you're babysitting multiple AI agents

https://github.com/nikhilshinday/gw
1•chaos_emergent•25m ago•0 comments

A handy method for hazards detection in an IS of a pipelined processor [pdf]

https://arxiv.org/abs/1203.0787
1•liungrin•29m ago•0 comments

Show HN: Algorithmically Finding the Longest Line of Sight on Earth

https://alltheviews.world
2•tombh•29m ago•1 comments

Ask HN: Why do you use AI for coding?

1•MrSandingMan•30m ago•1 comments

Show HN: Blink – Build custom AI agents in TypeScript for your team

https://github.com/coder/blink
1•hugodutka•31m ago•0 comments

The original vi is a product of its time (and its time has passed)

https://utcc.utoronto.ca/~cks/space/blog/unix/ViIsAProductOfItsTime
3•adunk•32m ago•1 comments

Xbox cancel French localizations as voice actors refuse AI training clauses

https://www.jeuxonline.info/actualite/65797/doublage-francais-absent-plusieurs-jeux-microsoft-ea-...
4•WhereIsTheTruth•32m ago•0 comments

Half of CO2 emissions come from just 32 fossil fuel firms, study shows

https://www.theguardian.com/environment/2026/jan/21/carbon-dioxide-co2-emissions-fossil-fuel-firm...
3•JeanKage•33m ago•0 comments

Show HN: Turn DeFi whitepapers into executable flows for quick validation

https://eigenarc.com
1•sridhar87•35m ago•0 comments

Screenshots from developers and Unix people (2002) (2015)

https://anders.unix.se/2015/10/28/screenshots-from-developers--unix-people-2002/
1•SerCe•35m ago•0 comments

GitHub Status – Degraded Performance in Webhooks API and UI, Pull Requests

https://www.githubstatus.com/incidents/ffz2k716tlhx
2•jackwilsdon•36m ago•1 comments

Seedance 2.0

https://seedance2.studio
1•sarkory•37m ago•1 comments

I went through the OpenClaw Source code. And here are my observations

https://pai.dev/i-went-through-every-line-of-code-of-openclaw-so-you-dont-have-to-bec04bfe3be0
1•dheerajmp•38m ago•0 comments

Newer Faster Amiga Internet Access from Your BlueSCSI

https://www.youtube.com/watch?v=awwRFWpfL-4
2•doener•39m ago•0 comments

Stack Overflow for AI Coding Agents

https://shareful.ai
13•schappim•40m ago•0 comments

Show HN: Fifu – Ultra-Fast Terminal YouTube Downloader

https://fifu-docs.vercel.app
2•dawitworku•41m ago•0 comments