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

Nim Version 2.2.10 Released

https://nim-lang.org//blog/2026/04/24/nim-2210.html
2•ibobev•29s ago•0 comments

Code Is a System, Not Elegant Prose

https://www.lesecretairedefernand.co/en/tech/code-is-a-system/
1•lbdremy•49s ago•0 comments

HIITify – A clean, all-in-one HIIT and Interval Timer (Beta)

https://testflight.apple.com/join/XnDw8aDC
1•pclslopes•2m ago•0 comments

Built a free market scanner for options flow, looking for feedback

https://earlybell.app
1•Pascal_F•2m ago•0 comments

Barbara Liskov – Data Abstraction, Dijkstra, Distributed Systems [video]

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

Strings Reviewer: review your app's strings faster and with confidence

https://stringsreviewer.app/
1•efenande•2m ago•1 comments

FerresDB is now open-source – A high-performance vector database

https://github.com/ferres-db/ferres-db
1•Ferres•2m ago•0 comments

OpenAI could be making a phone with AI agents replacing apps

https://techcrunch.com/2026/04/27/openai-could-be-making-a-phone-with-ai-agents-replacing-apps/
1•Brajeshwar•2m ago•0 comments

China blocks Meta from acquiring AI startup Manus

https://www.npr.org/2026/04/27/g-s1-118892/china-blocks-meta-from-acquiring-ai-startup-manus
2•oopsiremembered•3m ago•0 comments

OpenAI and Microsoft renegotiated their deal for the second time in 6 months

https://www.businessinsider.com/openai-microsoft-partnership-agreement-changes-cloud-providers-ag...
1•vinnyglennon•5m ago•0 comments

Tarsier (Tarsiidae) – the littlest suicidal primates

https://redactedquirk.beehiiv.com/p/tarsiers-tarsiidae
1•speckx•6m ago•0 comments

AI gives more praise, less criticism to Black students

https://hechingerreport.org/proof-points-ai-bias-feedback/
1•jcdelaney•6m ago•0 comments

Neanderthals may have shared key DNA for complex language

https://phys.org/news/2026-04-neanderthals-key-dna-complex-language.html
1•gmays•7m ago•0 comments

Using LLMs to find Python C-extension bugs

https://lwn.net/SubscriberLink/1067234/801a0f084f7f0493/
1•lumpa•11m ago•0 comments

X's translate feature injects Zionist propaganda

https://twitter.com/Hezbolsonaro/status/2048227481736593589
1•sosomoxie•11m ago•0 comments

A Timeline to China Blocking Meta's $2B Manus Acquisition (Built Using Manus)

https://metamanus-rsbcnkpx.manus.space/
2•mattcollins•11m ago•0 comments

Pharmacovigilance

https://en.wikipedia.org/wiki/Pharmacovigilance
2•_Microft•13m ago•0 comments

Codedb: Code intelligence server for AI agents

https://github.com/justrach/codedb
1•doppp•13m ago•0 comments

Zork-bench: An LLM reasoning eval based on text adventure games

https://www.lowimpactfruit.com/p/zork-bench-an-llm-reasoning-eval
1•nicholasjbs•14m ago•0 comments

2026 Hugo Award Finalists

https://blog.zarfhome.com/2026/04/2026-hugo-finalists
1•speckx•16m ago•0 comments

Rvidia-exporter – Prometheus metrics exporter for Nvidia GPUs

https://github.com/neo-airouter/rvidia-exporter
1•sacrelege•16m ago•1 comments

Live coverage: SpaceX to launch final ViaSat-3 satellite on Falcon Heavy rocket

https://spaceflightnow.com/2026/04/27/live-coverage-spacex-to-launch-final-viasat-3-satellite-on-...
1•bookmtn•16m ago•0 comments

Review: The Greatest Knight, by Thomas Asbridge

https://www.thepsmiths.com/p/review-the-greatest-knight-by-thomas
1•jger15•17m ago•0 comments

Postgres's lateral joins allow for quite the good eDSL

https://bensimms.moe/postgres-lateral-makes-quite-a-good-dsl/
1•nitros•17m ago•0 comments

Bookshop.org founder on how small retailers are taking on Amazon

https://www.fastcompany.com/91529634/independent-bookstore-day-bookshop-org-founder-on-how-small-...
1•helterskelter•17m ago•0 comments

SQLite-memory-MCP – SQLite-backed working memory for Claude, Codex, and humans

https://github.com/RMANOV/sqlite-memory-mcp
1•ruslanMANOV•17m ago•0 comments

Novai – AI-native L1 blockchain, 65K lines of Rust, built from scratch

https://github.com/0x-devc/NOVAI-node
1•0xdevc•21m ago•0 comments

Is GraphQL dead? (GraphQL Conf 2025 talk, YouTube) [video]

https://www.youtube.com/watch?v=3GWZ9yiskFk
2•rbalicki•21m ago•1 comments

Help me to find cure for my brother (thalassemia)

https://github.com/nakafaai/nakafa.lab
2•nabilfatih•22m ago•0 comments

Google DeepMind Paper Argues LLMs Will Never Be Conscious

https://www.404media.co/google-deepmind-paper-argues-llms-will-never-be-conscious/
2•cdrnsf•22m ago•3 comments