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

The Idea River

https://nik.art/the-idea-river/
1•herbertl•42s ago•0 comments

Beyond the Appearances: The joys of an Ideal world

https://aurelien2022.substack.com/p/beyond-the-appearances
1•OgsyedIE•1m ago•0 comments

LLM Data Exfiltration via URL Previews (With OpenClaw Example and Test)

https://www.promptarmor.com/resources/llm-data-exfiltration-via-url-previews-(with-openclaw-examp...
1•takira•2m ago•0 comments

MLflow's Missing Validators: An Authorization Bypass Across API Surfaces

https://tachyon.so/blog/mlfow-bypass
1•logicx24•3m ago•0 comments

Agentic Coding in Xcode [video]

https://developer.apple.com/videos/play/tech-talks/111428/
1•Austin_Conlon•4m ago•0 comments

AI Came to Take My Job Here’s How I Responded [video]

https://www.youtube.com/watch?v=HjDD8xwU6s8
1•emsign•4m ago•1 comments

Many people have no mental imagery. What's going on in their brains?

https://www.nature.com/articles/d41586-026-00311-7
2•johngossman•4m ago•0 comments

Write about the future you want

https://daverupert.com/2026/02/futurescapes/
1•headalgorithm•5m ago•0 comments

Do people underestimate GPS metadata in shared photos?

https://exif-cleaner.com/
2•cope123•5m ago•1 comments

RCC: A Boundary Theory Explaining Why LLMs Still Hallucinate

http://www.effacermonexistence.com/rcc-hn-1
2•noncentral•6m ago•2 comments

Slate Auto – The Customizable EV That Works for You

https://www.slate.auto/en
1•lisper•7m ago•0 comments

France's Raid on X Escalates Trans-Atlantic Showdown over Social Media

https://www.nytimes.com/2026/02/04/world/europe/social-media-free-speech.html
3•JumpCrisscross•8m ago•0 comments

Professors Are Being Watched: 'We've Never Seen This Much Surveillance'

https://www.nytimes.com/2026/02/04/us/professors-classroom-surveillance-politics.html
2•JumpCrisscross•8m ago•0 comments

The World's First Viral AI Assistant Has Arrived, and Things Are Getting Weird

https://www.wsj.com/tech/ai/openclaw-ai-agents-moltbook-social-network-5b79ad65
1•fortran77•8m ago•1 comments

Dr. Zhivago: Dixiecrat of the Steppes (1958)

https://marxists.architexturez.net/archive/fraser/1958/zhivago.html
1•jruohonen•10m ago•0 comments

Distance Marching for Generative Modeling

https://arxiv.org/abs/2602.02928
1•E-Reverance•12m ago•0 comments

Zendesk Email Spam

3•Philpax•13m ago•1 comments

Show HN: Template for real-time agentic web apps using Convex

https://www.youtube.com/watch?v=MlH0za1vcUY
1•ohstep23•14m ago•0 comments

Size influences assessment of attractiveness and fighting ability

https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3003595
1•PaulHoule•15m ago•0 comments

Show HN: EpsteIn – Search the Epstein files for your LinkedIn connections

https://github.com/cfinke/EpsteIn
2•cfinke•15m ago•0 comments

Boilerplate Tax: Ranking popular programming languages by density

https://boyter.org/posts/boilerplate-tax-ranking-popular-languages-by-density/
1•ingve•17m ago•0 comments

F# Code I Love (2019) [video]

https://www.youtube.com/watch?v=1AZA1zoP-II
1•tosh•18m ago•0 comments

Beginner's Guide: Your First Web Scraper with Python and ScrapingDuck

https://scrapingduck.com/python-web-scraping-with-scrapingduck/
2•gsoftwarelab•18m ago•0 comments

Pandoc in the Browser

https://pandoc.org/app/
2•Tomte•19m ago•0 comments

Vim 9 Plugins for Lean

https://vim.castedo.com/
1•dougb5•19m ago•0 comments

Women rejecting the hijab have doomed Iran's brutal regime

https://www.telegraph.co.uk/news/2026/02/03/iranian-regime-doomed-when-it-lost-control-of-women/
3•binning•19m ago•3 comments

Commodore, IBM, OS/2, ARexx: Deal or No Deal?

https://datagubbe.se/os2/
2•rbanffy•20m ago•0 comments

Recreating Epstein PDFs from raw encoded attachments

https://neosmart.net/blog/recreating-epstein-pdfs-from-raw-encoded-attachments/
3•ComputerGuru•20m ago•0 comments

LLMs Can't Jump [pdf]

https://philsci-archive.pitt.edu/28024/1/Scientific_Invention_Position_Paper%20%2817%29.pdf
2•amichail•20m ago•0 comments

Checks for indicators of compromise related to the Notepad++ supply chain attack

https://github.com/roady001/Check-NotepadPlusPlusIOC
1•speckx•22m ago•0 comments