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.

'Ghost jobs' are on the rise – and so are calls to ban them

https://www.bbc.com/news/articles/clyzvpp8g3vo
1•1659447091•7m ago•0 comments

Have you noticed degradation in Opus 4.5 in the last few days

https://twitter.com/VictorTaelin/status/2001431627231080867
2•mesmertech•11m ago•1 comments

Mozilla's New CEO Confirms Firefox Will Become an "AI Browser"

https://www.omgubuntu.co.uk/2025/12/mozilla-new-ceo-firefox-ai-browser-strategy
2•LopRabbit•13m ago•0 comments

Fifty problems with standard web APIs in 2025

https://zerotrickpony.com/articles/browser-bugs/
1•dhruv3006•19m ago•0 comments

Built a tool to decode cocktail menus to stop ordering drinks I don't like

https://sipcandy.lovable.app/
1•buildandbrew•21m ago•2 comments

What career fields make an impact?

1•leethoe•25m ago•0 comments

China is building the most powerful hydropower system deep in the Himalayas

https://www.cnn.com/2025/12/17/china/china-largest-hydropower-dam-intl-hnk-dst
2•vinnyglennon•25m ago•0 comments

Single-Winner Voting Methods

https://dsernst.com/writing/2025/voting-methods
1•dsernst•29m ago•0 comments

Show HN: OmnAI – Sovereign AI infrastructure with multi-vault isolation

https://github.com/RilerCoasterBoy98765/OmnAI-v3.5
1•6teepees•41m ago•0 comments

Luddite List

https://docs.google.com/spreadsheets/d/1M_UjOPxpbKMYes5CcWRWXNXRq4ZOAAwDgQ08CIN3pec/edit?gid=7494...
3•paulorlando•42m ago•0 comments

Mathgpt.today Discord Bot

https://mathgpt.today/
1•umeedsto•43m ago•1 comments

Judge hints Vizio TV buyers may have rights to source code licensed under GPL

https://www.theregister.com/2025/12/05/vizio_gpl_source_code_ruling/
3•pabs3•46m ago•0 comments

Behold the Infamous PS2 Linux Kit [video]

https://www.youtube.com/watch?v=FQmenrPioBM
1•zdw•48m ago•0 comments

A simple idea filter that saved me months of wasted work

1•peterbricks•56m ago•0 comments

True origin of 'first black Briton' revealed

https://www.bbc.co.uk/news/articles/ce86jzgxxy4o
3•GaryBluto•57m ago•0 comments

Show HN: Aiologic – GIL-powered* locking library for Python

https://github.com/x42005e1f/aiologic
1•x42005e1f•1h ago•0 comments

Ask HN: Etiquette giving feedback on mostly AI-generated PRs from co-workers

1•chfritz•1h ago•3 comments

Eventual Rust in CPython

https://lwn.net/Articles/1046933/
1•pykello•1h ago•0 comments

Apple's Preventing Some Apps from Working on Older iPhones [video]

https://www.youtube.com/watch?v=WXqVV8_GORE
2•chii•1h ago•0 comments

Adding Dialogue to Real Video with AI

https://www.unite.ai/adding-dialogue-to-real-video-with-ai/
1•50kIters•1h ago•0 comments

Tanstack AI – open-source AI SDK

https://tanstack.com/ai/latest
1•etoxin•1h ago•1 comments

Digital detox: how to switch off without paying the price

https://theconversation.com/digital-detox-how-to-switch-off-without-paying-the-price-new-research...
4•devonnull•1h ago•0 comments

Why Your WordPress Site Needs a Paywall for Robots

https://402gate.xyz/blog/why-your-wordpress-site-needs-a-paywall-for-robots
2•thunderbong•1h ago•0 comments

How Much Energy Does One Solar Panel Produce in Australia?

4•scorpeoanlibra•1h ago•0 comments

Ringspace: A Proposal for the Human Web

https://taggart-tech.com/ringspace/
2•todsacerdoti•1h ago•0 comments

Show HN: PacketPro – Inspect iOS app network traffic locally

https://apps.apple.com/us/app/packetpro/id6755604263
1•noteable•1h ago•0 comments

Germany: Amazon is not allowed to force customers to watch ads on Prime Video

https://www.zeit.de/wirtschaft/2025-12/amazon-urteil-video-kunden-werbung
13•febed•1h ago•1 comments

Salesforce Acquires Qualified

https://www.salesforce.com/news/stories/salesforce-signs-definitive-agreement-to-acquire-qualifie...
2•brendanashworth•1h ago•1 comments

Education South Africa

https://educationsouthafrica.com/
1•NicBradley•1h ago•1 comments

You Can Use Gemini 3.0 Flash High Free on InfiniaxAI

https://infiniax.ai
1•ZacharyGolinger•1h ago•0 comments