frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

Coding Adventure: Chess [video]

https://www.youtube.com/watch?v=U4ogK0MIzqk
1•ansipunk•2m ago•0 comments

Show HN: World Map Chess – Turn-based strategy on a 235-country map

https://treegame.net/quick-play/world-map-chess
1•rashidiub786•3m ago•0 comments

Was software just always too complex for humans?

https://anil.recoil.org/notes/software-too-complex-for-humans
2•nathcd•4m ago•1 comments

Nyno 10 open-source release: Derisk AI. Separate Code from Configuration

https://github.com/flowagi-eu/nyno
2•theyogadev•5m ago•1 comments

Tend. one local page for all your Claude Code sessions

https://github.com/Geekgineer/tend
2•geekgineer•8m ago•0 comments

The Riemann Hypothesis: a million dollar mystery – Emanuel Carneiro – 2017 [video]

https://www.youtube.com/watch?v=Pm0j5hFF1yU
1•Eridanus2•10m ago•0 comments

Show HN: Fedijar – The Search Mastodon servers meant to have

https://fedijar.com
1•saneefansari•12m ago•0 comments

Show HN: Aitho – slides that advance when you say the words, not when you click

https://present.aitho.app/try
1•aumar2•14m ago•0 comments

Are you clinging to the TUI to feel like a developer?

1•TomEleff•16m ago•0 comments

Ask HN: Could AI's RH proof have used human work found in its training data?

2•nomilk•17m ago•0 comments

Vector and Similarity Search, by Hand

https://www.huy.rocks/everyday/11-21-2026-math-linear-algebra-notes-vector-and-similarity-search-...
1•huydotnet•17m ago•0 comments

Nospeaker: Make your MacBook's trackpad talk using its haptic motor

https://github.com/os6/nospeaker
1•vikrum•17m ago•0 comments

Tor Community Fellowship

https://forum.torproject.org/t/call-for-applications-tor-community-fellowship/22490
1•farhan291•17m ago•0 comments

When services fail, we see what they are made of

https://good.services/writing/when-services-fail-we-see-what-they-are-made-of
1•adrianhoward•18m ago•0 comments

Show HN: Exploitwatch – Alerts for vulnerable Docker containers (e.g. PHP2Shell)

https://github.com/marioleal/exploitwatch
1•ympb121•18m ago•1 comments

Inside an AI prophet's secretive visions for humanity's future

https://www.washingtonpost.com/technology/2026/11/22/inside-an-ai-prophets-secretive-plans-humani...
1•pretext•20m ago•0 comments

Ask HN: Why do these LLM models seem to improve like clockwork over time?

2•iknownthing•23m ago•2 comments

Liseur: Android ePub Reader

https://github.com/chmouel/liseur
1•swapnilmj•23m ago•1 comments

Enrico Fermi Doesn't Blow Up Chicago

https://colab.research.google.com/drive/1LNey4n-V8QciZLhcUSR7IUOKeId_58KP?usp=sharing
1•Eridanus2•23m ago•1 comments

A fast image processing library with low memory needs

https://github.com/libvips/libvips
1•SweetSoftPillow•24m ago•0 comments

Cybermacs 3D Window Manager

https://kibotronics.net/projects/cybermacs/
1•Kiboneu•25m ago•0 comments

Show HN: GTA6 Wiki – Reference Site for Grand Theft Auto VI

https://gtaviwiki.org/
1•ludydev•26m ago•0 comments

Apple says it will shut down its Apple Support Community forums after 28 years

https://mashable.com/tech/apple-shutting-down-support-community-forums
3•taubek•26m ago•0 comments

Perplexity and Intelligence

https://openai.com/index/perplexity-and-intelligence/
8•acossta•30m ago•3 comments

Software Rendering the Mandelbrot Fractal in Rust

https://antr.dev/blog/software-rendering-the-mandelbrot-fractal-in-rust/
1•lr0•32m ago•0 comments

Show HN: TEB RUN – a pseudo-3D arcade racer in TypeScript and Canvas, no engine

https://tebrun.io/
2•tebrun•33m ago•0 comments

Saving Lives Before the Singularity

https://clattubato.substack.com/p/saving-lives-before-the-singularity
1•paulpauper•33m ago•0 comments

Show HN: Type prompts directly in terminal shell to kickoff Claude and codex

https://github.com/mquan/llmao
1•quan•33m ago•0 comments

Banning RSI Is Mere Stalling

https://emethirsch.neocities.org/banning-rsi-is-mere-stalling
2•paulpauper•34m ago•0 comments

Boring: An Idiot in Berkeley

https://henryaj.substack.com/p/boring
1•paulpauper•35m ago•0 comments