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: Automatic font clean-room reimplementor

https://github.com/robinpie/fontliberator/
2•robinpie•10m ago•0 comments

Show HN: CodexL – All-in-one launcher for Codex

https://github.com/musistudio/CodexL
1•musistudio•14m ago•0 comments

Job: Head of Stonehenge

https://www.english-heritage.org.uk/about/our-people/careers-with-us/job-search/default-job-page/...
2•mooreds•14m ago•0 comments

The hottest job this summer is European ambassador for ranch dressing

https://www.msn.com/en-us/money/companies/the-hottest-job-this-summer-is-european-ambassador-for-...
1•mooreds•15m ago•0 comments

Insider-signal – open-source CLI STOCKS,Congress

https://github.com/karanhumber007-ctrl/insider-signal
1•karansidhu007•15m ago•0 comments

How Costco sells such cheap gas

https://www.cnn.com/2026/05/31/business/costco-cheap-gas
1•mooreds•15m ago•0 comments

An industry is being propped up by math that is insane

https://garymarcus.substack.com/p/an-entire-industry-is-being-propped
1•swolpers•16m ago•0 comments

US Military Personnel in Israel Found Secret Spyware on Their Phones

https://www.ibtimes.co.uk/us-raises-espionage-threat-level-israel-surveillance-allegations-1801334
1•Teever•16m ago•0 comments

StumbleTV: Omegle/ChatRoulette but for accidentally exposed webcams

https://stumbletv.alec.is/c/943df1a2342b6bd5
1•jumploops•17m ago•1 comments

Ask HN: I see AI valuation coming down as soon as next year. What do you think?

1•akmittal•20m ago•0 comments

Crowdsourced AI and= Knostic

https://blog.virustotal.com/2026/06/crowdsourced-ai-knostic.html
1•jruohonen•22m ago•0 comments

Microsoft says it will not pursue security researchers after zero-day backlash

https://therecord.media/microsoft-says-it-will-not-pursue-security-researchers-disclosure
3•nryoo•26m ago•0 comments

Russell Vought is going to destroy American Science

https://elizabethginexi.substack.com/p/summary-of-key-changes-in-ombs-proposed
4•ZunarJ5•27m ago•0 comments

Lego Batman's Commodore 64 BASIC easter egg

https://bsky.app/profile/cabel.panic.com/post/3mnpxqsbwok2i
2•CharlesW•27m ago•0 comments

Community LLM reference – VRAM tables, GPU tier filter, tool-call ratings

https://bmt-llm-reference.vercel.app
1•Grynder•27m ago•0 comments

Trace analysis directly on service dependency graph

https://www.youtube.com/watch?v=PL0TAKTN4Ik
1•vaduga•27m ago•0 comments

Feedback loops for organizing hardware development

https://mechanomy.com/posts/260608_valueLoops/
1•bcon•28m ago•0 comments

How Will Humans Generate Value in a Post-AI Society?

https://demonstrandom.com/essays/posts/human_value_post_ai/
1•demonstrandom•29m ago•0 comments

Ask HN: Where do you like to consume content anymore?

1•selectedambient•31m ago•0 comments

Show HN: Built software to orchestrate AI and human loops

https://github.com/sparckix/cognitive-firm
1•Sparckix•39m ago•0 comments

Show HN: Lead Qualifier – research agent turning a LinkedIn URL into a dossier

https://lead.robowrite.ai/
1•mehdizare•43m ago•0 comments

Trophic memory, deer, and a unique scientific object

https://thoughtforms.life/trophic-memory-deer-and-a-truly-unique-scientific-object/
1•thunderbong•44m ago•0 comments

Tech Influence Watch

https://influence.citationneeded.news
1•archagon•49m ago•0 comments

Malware Insights – Miasma Campaign

https://cookie.engineer/weblog/articles/malware-insights-miasma-campaign.html
1•cookiengineer•59m ago•0 comments

Why Are Birthrates Down? Two New Studies Point to Phones

https://www.nytimes.com/2026/06/08/us/iphone-birthrate-decline-studies.html
2•1vuio0pswjnm7•1h ago•0 comments

Just The Recipe – paste any recipe URL, get just the food

1•jonwardsfull•1h ago•0 comments

Apple's iOS 27 Is Filled with Hints About Its Upcoming Foldable iPhone

https://www.bloomberg.com/news/articles/2026-06-09/apple-s-ios-27-is-filled-with-hints-about-its-...
1•jmsflknr•1h ago•0 comments

Configuring Agentic AI Coding Tools: An Exploratory Study

https://arxiv.org/abs/2602.14690
1•wek•1h ago•0 comments

Bringing the latest Gemini models to Apple developers

https://blog.google/innovation-and-ai/technology/developers-tools/bringing-gemini-models-to-apple...
1•xnx•1h ago•0 comments

Open Credential Lifecycle Standard

https://gist.github.com/abrambailey/e8748f370975027430d6fab37e31b841
1•funkdified•1h ago•1 comments