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.

Seagate Introduces 32TB Exos, SkyHawk AI, and IronWolf Pro Drives

https://www.storagereview.com/news/seagate-introduces-32tb-exos-skyhawk-ai-and-ironwolf-pro-drives
1•speckx•1m ago•0 comments

Influencers and OnlyFans models are dominating O-1 visa requests

https://www.theguardian.com/us-news/2026/jan/11/onlyfans-influencers-us-o-1-visa
1•bookofjoe•3m ago•0 comments

Who we choose to spend our days with

https://flowingdata.com/2025/12/17/time-with-others/
1•gmays•3m ago•0 comments

MSVC incorrectly warns that C99 flexible array members are nonstandard

https://developercommunity.visualstudio.com/t/MSVC-incorrectly-warns-that-C99-flexible/10675271?v...
1•throw_await•3m ago•0 comments

Monzo Is Down

https://downdetector.co.uk/status/monzo/
1•throwaway19268•3m ago•0 comments

Scott Adams, 'Dilbert' creator and conservative commentator, dies at 68

https://www.nbcnews.com/news/obituaries/scott-adams-dilbert-creator-dies-rcna253792
1•ComputerGuru•6m ago•1 comments

The Google Tenor GIF API has been shut down

1•dfajgljsldkjag•6m ago•0 comments

'Dilbert' creator Scott Adams dies at 68 after prostate cancer battle

https://www.usatoday.com/story/entertainment/celebrities/2026/01/13/scott-adams-dead-dilbert-crea...
37•schmuckonwheels•9m ago•4 comments

Even Linus Torvalds Is Vibe Coding Now

https://linux.slashdot.org/story/26/01/12/2311234/even-linus-torvalds-is-vibe-coding-now
1•speckx•11m ago•0 comments

Evil Charts

https://evilcharts.com/
1•pentagrama•12m ago•0 comments

OpenAir Collective – The 2026 Carbon Removal Challenge

https://openaircollective.com/crc/
1•manchoz•13m ago•0 comments

Chinese localization Issue: command line arguments are translated

https://github.com/microsoft/WSL/issues/4111
1•throw_await•13m ago•0 comments

Sounds on the Web

https://www.userinterface.wiki/sounds-on-the-web
1•pentagrama•15m ago•0 comments

Protocol, libraries for sending, receiving OpenTelemetry data using Apache Arrow

https://github.com/open-telemetry/otel-arrow
1•tosh•15m ago•0 comments

Show HN: JotBird – publish Markdown documents with shareable URLs

https://www.jotbird.com
1•mcone•16m ago•0 comments

Save your spot at FOSDEM 2026: Rockchip, Tyr, GStreamer ML and more

https://www.collabora.com/news-and-blog/news-and-events/fosdem-2026-rockchip-tyr-gstreamer-more.html
1•losgehts•16m ago•0 comments

JavaScript array methods to simplify your code

https://markodenic.tech/10-javascript-array-methods-to-simplify-your-code/
1•speckx•17m ago•0 comments

Good Components

https://www.goodcomponents.io/
1•pentagrama•19m ago•0 comments

War No. 81-Q (1928)

https://www.gutenberg.org/cache/epub/74098/pg74098.txt
1•non-•20m ago•0 comments

Can paleontologists pinpoint the dawn of the dinosaurs?

https://www.pnas.org/post/multimedia/can-paleontologists-pinpoint-dawn-dinosaurs
1•bikenaga•20m ago•1 comments

Even Linus Torvalds is trying his hand at vibe coding (but just a little)

https://arstechnica.com/ai/2026/01/hobby-github-repo-shows-linus-torvalds-vibe-codes-sometimes/
2•nosianu•21m ago•1 comments

Common Software Project Conflicts and How to Navigate Them

https://www.stackbuilders.com/common-software-project-conflicts-and-how-to-navigate-them/
1•StackBuilders•21m ago•1 comments

Google Universal Commerce Protocol (UCP) Guide

https://developers.google.com/merchant/ucp
1•ianrahman•22m ago•0 comments

Calcpercent.net – Simple percentage calculator I built

https://calcpercent.net/
1•firstshow•23m ago•1 comments

Show HN: Debug your AI application in web browser

https://github.com/yiouli/pixie-sdk-py
1•yol•24m ago•0 comments

Show HN: SQG – Compile SQL (SQLite,DuckDB) to TypeScript/Java Code

https://sqg.dev/
1•uwemaurer•24m ago•0 comments

NetDocuments Completes Acquisition of EDOCS from OpenText

https://www.netdocuments.com/company-news/netdocuments-acquires-opentext-edocs-expands-global-reach/
1•juliusceasar•26m ago•1 comments

Solving Factorio with Terraform [video]

https://www.youtube.com/watch?v=uU06vKlCNXk
2•bananabiscuit•26m ago•0 comments

Show HN: EOS-Energy Optimization System by Nexura

https://eos-hn.vercel.app/
1•irfan_sh01•27m ago•0 comments

Are Two Heads Better Than One?

https://eieio.games/blog/two-heads-arent-better-than-one/
4•evakhoury•27m ago•0 comments