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.

What a Programmer Does (1967)[pdf]

http://archive.computerhistory.org/resources/text/Knuth_Don_X4100/PDF_index/k-9-pdf/k-9-u2769-1-B...
1•nz•57s ago•0 comments

Is the Iranian Regime About to Collapse?

https://www.theatlantic.com/international/2026/01/iran-revolution-protests-collapse/685578/
1•Anon84•6m ago•1 comments

A Year of Work on the Arch Linux Package Management (ALPM) Project

https://devblog.archlinux.page/2026/a-year-of-work-on-the-alpm-project/
1•susam•8m ago•0 comments

How to build agents with filesystems and bash

https://vercel.com/blog/how-to-build-agents-with-filesystems-and-bash
1•bob1029•9m ago•0 comments

Nvidia in advanced talks to buy Israel's AI21 Labs for up to $3B

https://www.reuters.com/business/nvidia-advanced-talks-buy-israels-ai21-labs-up-3-billion-report-...
1•gmays•14m ago•0 comments

Sisyphus Now Lives in Oh My Claude

https://github.com/Yeachan-Heo/oh-my-claude-sisyphus
2•deckardt•15m ago•1 comments

Computing, Convivially

https://v5.chriskrycho.com/essays/computing-convivially/
1•noperator•15m ago•1 comments

Intel makes sharp reversal, is 'going big time into 14A,' says CEO Lip-Bu Tan

https://www.tomshardware.com/tech-industry/semiconductors/intel-is-going-big-time-into-14a-says-c...
2•WoodenChair•16m ago•0 comments

Features for no one (AI edition)

https://www.pcloadletter.dev/blog/ai-features-for-no-one/
1•ronbenton•17m ago•0 comments

A good exchange is built for failure

https://www.coindesk.com/opinion/2026/01/10/institutions-know-a-good-exchange-is-built-for-failure
1•7777777phil•19m ago•0 comments

Grateful Dead founding member Bob Weir dies at 78

https://apnews.com/article/bob-weir-grateful-dead-obit-af908fd1bba6cd338bc08024e2d77234
2•RickJWagner•19m ago•0 comments

Show HN: HAPI - Vibe Coding Anytime, Anywhere

https://github.com/tiann/hapi
1•weishu•23m ago•0 comments

Show HN: Ferrite – Markdown editor in Rust with native Mermaid diagram rendering

https://github.com/OlaProeis/Ferrite
2•OlaProis•26m ago•0 comments

U.S. airstrikes hit ISIS targets in Syria, officials say

https://www.cbsnews.com/news/us-airstrikes-isis-targets-syria-central-command/
4•mhb•28m ago•0 comments

Cybercriminals stole the sensitive information of 17.5M Instagram users

https://bsky.app/profile/malwarebytes.com/post/3mbywfybiil26
5•gnabgib•29m ago•0 comments

Synthetic.new <3 OpenCode

https://synthetic.new/blog/2026-01-10-synthetic-heart-opencode
5•reissbaker•31m ago•0 comments

Check Out PCWorld's New Linux Podcast, the Dual Boot Diaries

https://www.pcworld.com/article/2888221/check-out-pcworlds-new-linux-podcast.html
3•jcurbo•33m ago•0 comments

What the AI Wizard taught us about LLM code generation at scale

https://posthog.com/blog/correct-llm-code-generation
1•Twixes•34m ago•0 comments

A Wig Maker Behind Many Hollywood Illusions

https://www.nytimes.com/2026/01/09/style/wigs-celebrities-red-carpet.html
2•whack•35m ago•0 comments

Show HN: Tatuagem, a boastful code signature suite

https://github.com/juleshenry/tatuagem
1•juleshenry•35m ago•0 comments

Trump announces one-year 10% cap on credit card interest rates

https://www.theguardian.com/us-news/2026/jan/10/trump-credit-card-interest-rate-cap
5•geox•35m ago•0 comments

Purdue University adds AI learning requirement for incoming students

https://www.wfyi.org/news/articles/purdue-university-adds-ai-learning-requirement-for-incoming-st...
2•gnabgib•40m ago•0 comments

Show HN: Fast, Low cost Pay as you go PDF API for HTML, Markdown and images

https://podpdf.com/
1•zameermfm•42m ago•0 comments

Non-terminating response loop in Gemini Chat interface

https://gemini.google.com/share/03b40438aaa0
1•joebig•52m ago•1 comments

UK to Create New Fast-Track Residency Path for High-Earners

https://www.bloomberg.com/news/articles/2025-11-20/uk-will-allow-high-earners-faster-settlement-u...
1•mooreds•53m ago•1 comments

Bob Weir – RIP

https://www.nytimes.com/2026/01/10/obituaries/bob-weir-dead-grateful-dead.html
1•cjdentra•55m ago•1 comments

Shopify: What Is Dynamic Pricing? How It Works and Examples

https://www.shopify.com/enterprise/blog/102104006-dynamic-pricing-the-art-and-black-magic-of-situ...
5•hnburnsy•59m ago•3 comments

An Instagram data breach reportedly exposed the personal info of 17.5M users

https://www.engadget.com/cybersecurity/an-instagram-data-breach-reportedly-exposed-the-personal-i...
2•iamben•1h ago•0 comments

Trump Is Briefed on Options for Striking Iran as Protests Continue

https://www.nytimes.com/2026/01/10/us/politics/trump-iran-strikes.html
1•ent101•1h ago•0 comments

Replit Boss: CEOs Can Vibe Code Ideas Themselves Without Engineers

https://www.businessinsider.com/replit-ceo-vibe-coding-ideas-prototypes-without-engineers-ai-tool...
5•ivewonyoung•1h ago•1 comments