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

Kernel bugs hide for 2 years on average. Some hide for 20

https://pebblebed.com/blog/kernel-bugs
1•kmavm•2m ago•0 comments

Show HN: SludgeReport.io – like that other site but AI, Tech, Startup News

https://sludgereport.io/
1•stets•7m ago•0 comments

PMU Counters on Apple Silicon

https://blog.bugsiki.dev/posts/apple-pmu/
2•signa11•13m ago•0 comments

SimilarWeb: Gen AI Website Traffic Share 2026 Jan [pdf]

https://www.similarweb.com/corp/wp-content/uploads/2026/01/attachment-Global-AI-Tracker-6.pdf
1•shenli3514•20m ago•1 comments

Vison Awards 2025 – Architizer

https://architizer.com/blog/tag/vision-awards/
1•sargstuff•21m ago•0 comments

The Anatomy of an Outstanding AI-Assisted Rendering

https://architizer.com/blog/inspiration/stories/anatomy-of-an-ai-assisted-rendering/
1•sargstuff•23m ago•0 comments

OpenAI Would Like You to Share Your Health Data with ChatGPT

https://www.scientificamerican.com/article/openai-would-like-you-to-share-your-health-data-with-i...
2•geox•25m ago•1 comments

Show HN: Ark Portfolio Tracker – Visualizing Cathie Wood's Holdings

https://www.13radar.com/guru/catherine-wood
1•PanicSellGuru•28m ago•0 comments

Inside An LLM

1•TimeForAChange•29m ago•0 comments

FinePDFs: Liberating 3T of the finest tokens from PDFs

https://huggingface.co/spaces/HuggingFaceFW/FinePDFsBlog
1•constantinum•30m ago•0 comments

JPMorgan is ditching proxy advisors and turning to AI for shareholder votes

https://www.businessinsider.com/jpmorgan-ditches-proxy-adivsory-firms-for-ai-shareholder-votes-me...
1•6thbit•36m ago•0 comments

US seizes Russian-flagged tanker

https://www.cnn.com/world/live-news/trump-venezuela-oil-greenland-07-01-26
5•oco101•37m ago•0 comments

Skip the todo – just write the prompt

https://twitter.com/0thernet/status/2008956003643986157
2•erhuve•41m ago•0 comments

RIP – Fuzzy find and kill processes from your terminal

https://github.com/cesarferreira/rip
2•handfuloflight•42m ago•0 comments

Mirror Mate

https://www.orangekame3.net/mirrormate/
2•jonbaer•43m ago•0 comments

Pittsburgh Post-Gazette to shut down and publish final edition in May

https://www.theguardian.com/us-news/2026/jan/07/pittsburgh-post-gazette-closing
3•pseudolus•43m ago•2 comments

Deadly Minneapolis Encounter Is the 9th ICE Shooting Since September

https://www.nytimes.com/2026/01/07/us/ice-shootings-minneapolis-other-cities.html
6•mickle00•43m ago•0 comments

The 1k Neuron Challenge

https://www.thetransmitter.org/computational-neuroscience/the-1000-neuron-challenge/
2•m_kos•44m ago•0 comments

The Silver Ratio

https://en.wikipedia.org/wiki/Silver_ratio
2•kazinator•51m ago•1 comments

Show HN: DailyWave – a one-task-at-a-time productivity app (open source)

https://github.com/kks0488/dailywave
3•kyoungsookim•57m ago•0 comments

2025 Annual Letter: Steady Progress and Self-Reflection

https://www.permanentequity.com/content/2025-annual-letter
1•jger15•58m ago•0 comments

Exploring How iMessage Works Internally on macOS (Technical Overview)

https://photon.codes/blog/frontier-agent-interaction-on-imessage-tech-overview
1•RyanZhuuuu•1h ago•0 comments

U.S. is withdrawing from 66 international bodies

https://www.whitehouse.gov/fact-sheets/2026/01/fact-sheet-president-donald-j-trump-withdraws-the-...
15•tguvot•1h ago•5 comments

Can We Save Wine from Wildfires?

https://www.newyorker.com/magazine/2026/01/12/can-we-save-wine-from-wildfires
1•petethomas•1h ago•0 comments

Alphabet's market cap surpasses Apple's for first time since 2019

https://www.cnbc.com/2026/01/07/alphabets-market-cap-surpasses-apples-for-first-time-since-2019.html
1•ewoodrich•1h ago•0 comments

How we made v0 an effective coding agent

https://vercel.com/blog/how-we-made-v0-an-effective-coding-agent
1•MaxLeiter•1h ago•0 comments

San Francisco Battles Skateboarders over the City's Ugliest Fountain

https://www.wsj.com/lifestyle/san-francisco-skateboarders-vaillancourt-fountain-95b41fa9
1•noleary•1h ago•0 comments

AI Didn't Make Engineering Teams Faster. It Forced Them to Grow Up

https://medium.com/@mpuig/ai-didnt-make-engineering-teams-faster-it-forced-them-to-grow-up-1f6fde...
2•matthewsinclair•1h ago•0 comments

Replacing my mail server with AWS SES

https://alexlance.blog/email.html
2•alance•1h ago•1 comments

Hand Off Linear Issues to Claude Code (OS)

https://claudear.com/
2•kamphey•1h ago•0 comments