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.

Can I offer "login with yahoo" using FusionAuth?

https://fusionauth.io/community/forum/topic/3013/can-i-offer-login-with-yahoo-using-fusionauth
1•mooreds•59s ago•0 comments

Show HN: Fupio – Social RSS Reader

https://fupio.com/
1•mehmetkose•59s ago•0 comments

Electrek Drives the Sun-Powered EV from Aptera

https://electrek.co/2026/06/17/we-finally-got-to-drive-the-aptera-solar-electric-car/
1•TeaVMFan•1m ago•0 comments

Seth Larson on Making Things

https://digitalseams.com/blog/seth-larson-on-making-things
1•bobbiechen•2m ago•0 comments

Designing a Better strcpy (2020)

https://saagarjha.com/blog/2020/04/12/designing-a-better-strcpy/
1•GalaxySnail•7m ago•0 comments

Trained a small language model for just generating question

https://huggingface.co/aungkomyint/tara1.2-quest
1•aungkomyint•9m ago•0 comments

Peter H. Diamandis, MD on X: "The Next 5 Years: A Supersonic Tsunami" / X

https://twitter.com/PeterDiamandis/status/2068716115941834885
1•bilsbie•11m ago•0 comments

Show HN: Open-Source Legends

https://opensourcelegends.com/
1•buffer_overlord•12m ago•0 comments

The Next Generation of Distrobox

https://distrobox.it/posts/announcing_distrobox_next/
2•birdculture•12m ago•0 comments

Show HN: A TypeScript Pokémon Crystal TUI for Agent Benchmarking

https://github.com/TheCulliganMan/crystal-llm/
1•theculliganman•13m ago•0 comments

Show HN: Jacobi–IDE for Abaqus subroutine with analytical tests and AI diagnosis

https://jacobee.netlify.app/
5•white_tiger•16m ago•3 comments

New Postgres Language Server: postgres-lsp

https://www.postgresql.org/about/news/new-postgres-language-server-postgres-lsp-3322/
2•soheilpro•16m ago•0 comments

AkaRouter – Flat per-call LLM API gateway (20x cheaper than Claude Max)

https://akarouter.dev
1•mrdedatn•17m ago•0 comments

Tesla plans to sell modular AI data center hardware called 'Megapod'

https://electrek.co/2026/06/21/tesla-megapod-ai-data-center-hardware/
5•dabinat•19m ago•0 comments

The Trap of Pushing Harder

https://quixoticnomad.blog/the-trap-of-pushing-harder/
2•mmarian•21m ago•0 comments

US Grid Energy Price Map

https://www.gridstatus.io/map
2•cwmoore•21m ago•0 comments

AI Has Broken Hiring

https://hbr.org/2026/06/ai-has-broken-hiring-heres-how-to-fix-it
3•ChrisArchitect•22m ago•1 comments

Genuinely impressed, almost shocked, at how good GLM-5.2

https://twitter.com/rauchg/status/2068517095818809770
2•wslh•22m ago•0 comments

Learning to work (very) remotely (2023)

https://borischerny.com/tech/2023/12/10/Working-Remotely.html
4•saikatsg•24m ago•0 comments

Show HN: Atizar-AI agents where the server runs approved actions, not the model

https://atizar.io
2•Yarashuk•27m ago•0 comments

Neuralwatt: Energy-based pricing for AI inference. Efficient prompts cost less

https://portal.neuralwatt.com/
2•ethanpil•27m ago•0 comments

Code duplication is far cheaper than the wrong abstraction

https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction
6•rafaepta•28m ago•1 comments

Googles specification (and tooling) for the LLM wiki

https://github.com/GoogleCloudPlatform/knowledge-catalog/tree/main/okf
2•Parkkeeper•30m ago•1 comments

Supervising AI Agents

https://github.com/usefulsoftworks/ai-agent-control-checklist
2•usefulsoftworks•31m ago•0 comments

A Fast Attention Kernel for MI300X, Written in Hip, Not Assembly

https://moonmath.ai/cdna3attention/
2•latchkey•34m ago•0 comments

Show HN: Askmaps.ai – Like ChatGPT with a Map

https://www.askmaps.ai
3•fabino•36m ago•3 comments

I want to spend more time on the internet

https://m-bertel.at/articles/i-want-to-spend-more-time-on-the-internet
2•michibertel•37m ago•0 comments

At Meta, 90% of my coworkers were Chinese

https://twitter.com/jeremybernier/status/2058243373161722185
6•ksec•40m ago•5 comments

Billionaire Tax Officially Heads to Nov. 3 Ballot

https://www.sos.ca.gov/administration/news-releases-and-advisories/2026-news-releases-and-advisor...
8•simonpure•43m ago•3 comments

Dallas Fed paper: unauthorized immigration drove ~30% of home-price growth

https://www.wsj.com/opinion/border-enforcement-does-affect-american-workers-wallets-cc45d6b0
2•bilsbie•46m ago•1 comments