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.

Show HN: Drydock – VM Sandboxes for macOS Autonomous Coding Agents

https://github.com/sricola/drydock
1•sricola•50s ago•0 comments

Standout Startups from YC's Demo Day, According to VCs

https://techcrunch.com/2026/06/18/the-11-standout-startups-from-ycs-demo-day-according-to-vcs/
2•simonpure•7m ago•0 comments

College students are swapping coding for healthcare: Goldman Sachs

https://finance.yahoo.com/economy/article/college-students-are-swapping-coding-for-healthcare-gol...
1•gbourne1•8m ago•0 comments

GitLab 19.1

https://docs.gitlab.com/releases/19/gitlab-19-1-released/
2•ilreb•8m ago•0 comments

Waymo Recalling 3,800+ Robotaxis over Risk of Entering Construction Zones

https://www.wsj.com/business/autos/waymo-recalling-more-than-3-800-robotaxis-over-risk-of-enterin...
2•1vuio0pswjnm7•9m ago•0 comments

HN Returning "Sorry."

1•christopher8827•9m ago•0 comments

Can LLMs change the hiring economics of legacy engineers?

https://exhaustedmind.substack.com/p/ask-hn-can-llms-change-the-hiring
1•Psychoterapist•11m ago•0 comments

Show HN: AA-Briefcase: a frontier knowledge work evaluation

https://artificialanalysis.ai/articles/aa-briefcase
7•declanjackson•16m ago•1 comments

The effect of worked examples on learning solution steps and knowledge transfer

https://www.tandfonline.com/doi/full/10.1080/01443410.2023.2273762
1•indigodaddy•20m ago•0 comments

Office workers of the world unite: it's time to revive the three-martini lunch

https://www.theguardian.com/commentisfree/2026/jun/18/three-martini-lunch
2•andsoitis•23m ago•0 comments

Haker Pra Free Fare

1•thaillan•24m ago•1 comments

Elon Musk's SpaceX plots $20B bond deal after record IPO

https://www.ft.com/content/8b73b4ce-3855-4b89-9110-3d892567f28a
2•JumpCrisscross•28m ago•0 comments

Ask HN: Any VPS / VPN with Dedicated IP Address in Cayman Islands?

1•JumpinJack_Cash•28m ago•0 comments

Update on Ocean Observatories Initiative

https://www.nsf.gov/news/update-ocean-observatories-initiative
9•andsoitis•32m ago•2 comments

Zhao's $2B Bet: Why Asia Needs Another Quant Shop

https://freemalta.com/news/digest/ambition/zhaos-2-billion-bet-why-asia-needs-another-quant-s
1•ilhaniremyuce•33m ago•0 comments

Data Science Weekly – Issue 656

https://datascienceweekly.substack.com/p/data-science-weekly-issue-656
1•sebg•34m ago•0 comments

Uniba Embodied Virtuality

https://uniba.jp/
1•bobbiechen•38m ago•0 comments

Chile turned to China for an undersea cable. The U.S. said no

https://restofworld.org/2026/chile-china-america-google-cable/
2•i7l•39m ago•0 comments

How the Peter Thiel-Linked Dialog Club Ranks Its Members

https://www.wired.com/story/how-peter-thiels-private-dialog-club-secretly-ranks-its-members/
1•mukmuk•40m ago•0 comments

NASA brought the monstrous F-1 "moon rocket" engine back to life (2013)

https://arstechnica.com/science/2013/04/how-nasa-brought-the-monstrous-f-1-moon-rocket-back-to-life/
3•Eridanus2•40m ago•0 comments

Selling My House with a Chatbot

https://www.nytimes.com/2026/05/28/technology/sell-house-with-ai-no-realtor.html
1•lispybanana•42m ago•0 comments

Newgrange

https://en.wikipedia.org/wiki/Newgrange
2•Amorymeltzer•42m ago•0 comments

Show HN: MCP tools in one server – pay-as-you-go, no subscription

https://smithery.ai/servers/scotia1973/api-hub2
1•scotty73•42m ago•0 comments

Show HN: Press and Hold

https://pressandhold.vercel.app/
1•leonagano•43m ago•0 comments

Ask HN: How much do you trust LLMs with your health questions?

2•thedreammachine•43m ago•1 comments

NASA picks Eric Schmidt's rocket company for Mars mission, sets up race w SpaceX

https://techcrunch.com/2026/06/17/nasa-picks-eric-schmidts-rocket-company-for-mars-mission-settin...
6•bookofjoe•45m ago•1 comments

Unifying Embodied World Modeling Through Language-Conditioned Video Gen

https://arxiv.org/abs/2606.17030
1•gmays•45m ago•0 comments

Get user requests directly on your website and have an agent build

https://amendor.site/
1•osaeld•48m ago•0 comments

Eve

https://vercel.com/blog/introducing-eve
1•gmays•50m ago•1 comments

FlipCTL – our GUI framework for embedded Linux systems

https://blog.flipper.net/flipctl-our-gui-framework-for-embedded-linux-systems/
1•avrong•52m ago•1 comments