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

Left-Wing Social Darwinism

https://www.rechristianize.com/blog/social-darwinism/left-wing-social-darwinism.html
1•Egret•2m ago•0 comments

Show HN: 3D Tik Tak Toe (Hard)

https://arthur-ficial.github.io/tictactoe-3d/
1•franze•2m ago•0 comments

MiniMax M2.7 Is Now Open Source

https://firethering.com/minimax-m2-7-agentic-model/
2•steveharing1•13m ago•2 comments

Artemis III Proposed Landing Sites

https://artemis-iii.technex.us
1•hparadiz•14m ago•0 comments

Linux kernel doesn't care about your disk health

https://simpleobservability.com/blog/linux-kernel-doesnt-care-disk-health
2•khazit•16m ago•0 comments

Making memory safe language but easy to use

https://github.com/Vix-Programing-language/Vix-programing-language
2•MrBatata•17m ago•1 comments

Doom, Played over Curl

https://github.com/xsawyerx/curl-doom
3•creaktive•18m ago•0 comments

Show HN: Toy Python Lisp interpreters based on the 1960 McCarthy paper

https://github.com/jhud/lisp
2•disconnection•18m ago•0 comments

Why Scotland Succeeded

https://www.ageofinvention.xyz/p/age-of-invention-why-scotland-succeeded
2•Khaine•28m ago•0 comments

Bourbaki: A Unified Foundation for Mathematics [video]

https://www.youtube.com/watch?v=EQ3w-YcP4q4
2•hnlyman•29m ago•0 comments

I built a tool to answer "why does this user have access to X?" in AD

https://github.com/alparn/whohas
1•Alpn13•32m ago•1 comments

Rapidly Scaffold Agents, MCP Servers, APIs, Websites on AWS

https://awslabs.github.io/nx-plugin-for-aws/
2•cogwirrel•39m ago•0 comments

Show HN: I made an app to help me learn Middle Eastern drumming

https://labs.tiffzhang.com/drums/
1•shadowfiles•41m ago•1 comments

Happy Horse AI

https://www.happy-horse-ai.ai
2•erji2233•42m ago•1 comments

The Gang: A Cooperative Texas Hold'em Bank Heist Card Game

https://boardgamegeek.com/boardgame/411567/the-gang
1•Lwrless•45m ago•0 comments

Intel Xpress Resurrection: Reviving a Forgotten EISA Beast

https://x86.fr/intel-xpress-resurrection-reviving-a-forgotten-eisa-beast/
2•ankitg12•48m ago•0 comments

Intent Security Through the Lens of Claude Code Auto Mode

https://www.lasso.security/blog/claude-code-auto-mode-vs-intent-security
1•irememberu•50m ago•0 comments

Lawyer behind AI psychosis cases warns of mass casualty risks

https://techcrunch.com/2026/03/15/lawyer-behind-ai-psychosis-cases-warns-of-mass-casualty-risks/
4•mentalgear•51m ago•1 comments

The Federal Government Is Rushing Toward AI

https://www.propublica.org/article/federal-government-ai-cautionary-tales
2•jruohonen•55m ago•0 comments

Virtual Tour of the CFS Commercial Fusion Campus (April 2026) [video]

https://www.youtube.com/watch?v=Wp1rcZ-daBU
1•mpweiher•57m ago•0 comments

I gave my AI shell access and felt uneasy – so I sandboxed it

https://github.com/sliamh11/Deus
2•sliamh11•59m ago•0 comments

What We Learned Building a Rust Runtime for TypeScript

https://encore.dev/blog/rust-runtime
3•dohguy•1h ago•0 comments

AI Will Be Met with Violence, and Nothing Good Will Come of It

https://www.thealgorithmicbridge.com/p/ai-will-be-met-with-violence-and
55•gHeadphone•1h ago•59 comments

Universal Knowledge Store and Grounding Layer for AI Reasoning Engines

https://github.com/alash3al/loci
2•alash3al•1h ago•0 comments

Give your coding agent access to runtime logs

https://www.debugy.dev
3•amitay1599•1h ago•2 comments

A 'Self-Doxing' Rave Helps Trans People Stay Safe Online

https://www.404media.co/trans-rights-privacy-online-cybersecurity-workshop-deadname-not-found/
2•01-_-•1h ago•0 comments

Optimization of 32-bit Unsigned Division by Constants on 64-bit Targets

https://arxiv.org/abs/2604.07902
2•mpweiher•1h ago•0 comments

Israel Destroys Villages in Lebanon

https://www.theguardian.com/world/2026/apr/12/how-israeli-offensive-destroyed-entire-villages-in-...
77•pera•1h ago•18 comments

Eighteen Weeks and Still Can't Read a Secret

https://liminaldr.substack.com/p/eighteen-weeks-and-still-cant-read
1•BlendedPanda•1h ago•1 comments

Palantir CEO says AI 'will destroy' humanities jobs

https://fortune.com/article/palantir-ceo-alex-karp-ai-humanities-jobs-vocational-training/
3•01-_-•1h ago•1 comments