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.

Show HN: UX Agent Mac app running continuously locally using Gemma 4

https://github.com/tommyjepsen/ux-agent-app
1•tommyjepsen•2m ago•0 comments

Tell HN: I know I dislike a developer

1•ishener•2m ago•0 comments

The First Bike Bell Designed to Penetrate Noise-Cancelling Headphones

https://www.youtube.com/watch?v=zDaVPfpQvPI
1•Ahmedb•4m ago•0 comments

Ask HN: What are you building that's not AI related?

1•meander_water•4m ago•0 comments

AI company's breached biometrics, ID document images make deepfake fraud easier

https://www.biometricupdate.com/202604/ai-companys-breached-biometrics-id-document-images-make-de...
1•tagyro•6m ago•0 comments

Greece announces social media ban for under-15s over anxiety and sleep problems

https://www.theguardian.com/world/2026/apr/08/greece-proposes-social-media-ban-under-15s-anxiety-...
1•Growtika•7m ago•0 comments

I Built an Offline File Sync System

https://github.com/anurag-as/Caravault
1•sampathanurag3•7m ago•0 comments

Tech industry lays off nearly 80k employees in the first quarter of 2026

https://www.tomshardware.com/tech-industry/tech-industry-lays-off-nearly-80-000-employees-in-the-...
1•Growtika•12m ago•0 comments

Fears net zero is 'next Brexit' as oil crisis fuels political climate divide

https://www.theguardian.com/environment/2026/mar/26/fears-net-zero-is-next-brexit-as-oil-crisis-f...
1•PaulHoule•13m ago•0 comments

Freestyle Ax Audit

https://techstackups.com/articles/freestyle-ax-audit/
1•ritzaco•13m ago•0 comments

New problem: AI finds too many bugs

https://etn.se/73048
2•etn_se•14m ago•3 comments

Show HN: D3 4 Layer Magma Graph – Cloak Stealth Browser

https://vektormemory.com/docs/
1•vektormemory•16m ago•0 comments

Help Keep Thunderbird Alive

https://updates.thunderbird.net/en-US/thunderbird/140.0/apr26-1e/donate/
1•playfultones•17m ago•0 comments

Lipovive – Optimize Mitochondrial Health and Burn Fat

https://www.morningstar.com/news/accesswire/1138075msn/lipovive-reviews-shocking-2026-report-what...
1•tayghalu•18m ago•0 comments

Show HN: Chrome extension to filter HN comments by user karma/account age

https://chromewebstore.google.com/detail/hn-users-filter/ineikanbokfebefjmhinpbmgablaebom
1•csomar•19m ago•0 comments

The President Speaks Genocide

https://snyder.substack.com/p/the-president-speaks-genocide
1•hkhn•19m ago•0 comments

Functional Programming with Bananas Lenses Envelopes and Barbed Wire (1991) [pdf]

https://maartenfokkinga.github.io/utwente/mmf91m.pdf
1•tosh•19m ago•0 comments

Show HN: A dev tool for routing local traffic, built with Pingora

https://github.com/antonguzun/hijakora
1•anophelon•21m ago•1 comments

One Million Prompt – $1 per block, AI generates collective art daily

1•danielhidalgo•23m ago•0 comments

Investigating Split Locks on x86-64 – By Chester Lam

https://chipsandcheese.com/p/investigating-split-locks-on-x86
1•rbanffy•23m ago•0 comments

The demise of software engineering jobs has been greatly exaggerated

https://www.cnn.com/2026/04/08/tech/ai-software-developer-jobs
2•perelin•23m ago•0 comments

Algorithms for Modern Hardware

https://en.algorithmica.org/hpc/
1•tosh•25m ago•0 comments

NanoCorp – autonomous companies run by AI

https://www.nanocorp.so
1•kandu•27m ago•0 comments

The Learning Firm Under Poverty of Stimulus

https://jimiwen.substack.com/p/the-learning-firm-under-poverty-of
1•jimiwen•34m ago•0 comments

Ora2Pg Just Saved Indian Taxpayers More Than a Million Dollars per Year

https://hexacluster.ai/blog/ora2pg-just-saved-indian-taxpayers-more-than-a-million-dollars-per-year
2•avivallssa•36m ago•0 comments

How HN: DocoAPI – API docs that auto-sync from your OpenAPI spec

https://docoapi.com/
3•onmyway133•36m ago•0 comments

Clarke and Dawe – The Front Fell Off [video] (1991)

https://www.youtube.com/watch?v=3m5qxZm_JqM
2•walterbell•38m ago•0 comments

Autonomous Rocket Landing with Reinforcement Learning (YouTube)

https://www.youtube.com/watch?v=1oI-Gh8R_HE
1•rafacm•40m ago•1 comments

Iran-linked hackers disrupt operations at US critical infrastructure sites

https://arstechnica.com/security/2026/04/iran-linked-hackers-disrupt-operations-at-us-critical-in...
2•joozio•40m ago•0 comments

Show HN: PostgreSQL running in the browser, persisting to S3

https://www.zerofs.net/postgresql-in-the-browser
1•Eikon•41m ago•0 comments