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•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.

Unicode Fonts and Tools for X11

https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
1•kristianp•1m ago•0 comments

Jo – Secure Programming for the AI Era

https://jo-lang.org/blog/2026-06-04-introducing-jo.html
1•rguiscard•3m ago•0 comments

Easy Writer: On Ted Geltner's Biography of Denis Johnson

https://www.metropolitanreview.org/p/easy-writer
1•benbreen•4m ago•0 comments

In a First, Scientists Precisely Edit Human Embryo Genes

https://www.nytimes.com/2026/06/04/science/embryos-gene-editing-crispr.html
1•bonsai_spool•5m ago•0 comments

Show HN: Bonsai –- Using agentic AI / browser / memory to replace ChatGPT

https://drive.google.com/drive/folders/1YUQ3tmcBSLEyBKLi5JdJgmod9mqXFTgl
1•coolwulf•8m ago•0 comments

US adult cigarette smoking rate hits another all-time low

https://apnews.com/article/adult-smoking-cigarette-decline-survey-3dfc9d82fcc106e49a5706819d438239
3•paulpauper•10m ago•0 comments

The small businesses trying to prop up the tandem bike industry

https://thehustle.co/newsletters/03-06-2026
1•paulpauper•13m ago•0 comments

Show HN: A simpl bookmark manager for Mac and iOS

https://bendansby.com/apps/markwell.html
1•webwielder2•14m ago•0 comments

Does banking consolidation harm households?

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6851099
1•paulpauper•14m ago•0 comments

Meta enables adb on deprecated Portal devices

https://fb.watch/HxPu0fSyeH/
7•jenders•15m ago•0 comments

Identity Access is not just for technical people

https://pathros.cc/local/
1•dominiconwuka•16m ago•1 comments

Medicare to launch weight loss drug option in July with $50 copay

https://www.npr.org/2026/05/06/nx-s1-5812662/medicare-bridge-glp1-drugs-copay
1•JumpCrisscross•22m ago•0 comments

3ds-CLI, full Linux env on a Nintendo 3ds using RISC V emulation

https://github.com/cmdada/3DS-CLI
2•cmdada•22m ago•1 comments

Americans on GLP-1s Are Overwhelming Retailers with Their Nonstop Returns

https://www.wsj.com/business/retail/americans-on-glp-1s-are-overwhelming-retailers-with-their-non...
1•JumpCrisscross•23m ago•0 comments

Amber Tree: A Middle Ground Between Rowan Red and Green Trees

https://blog.gplane.win/posts/introducing-amber-tree.html
2•gplane•24m ago•0 comments

Consciousness Atlas – 325 theories of consciousness

https://www.consciousnessatlas.com/
1•maebert•26m ago•1 comments

Sites for free transparent PNG assets (no signup, no watermark)

https://wowpng.com/
1•kanlabs•27m ago•0 comments

Software Has Long Been Beyond Our Understanding

https://kylemcgough.com/blogs/software-has-long-been-beyond-our-understanding
1•sosodev•30m ago•0 comments

Yon – a topos-oriented language with a content-addressed lattice heap

https://yon-lang.org/
1•amenn•31m ago•0 comments

Show HN: LLMhop – A tiny, stateless router for LLMs with a NixOS module

https://github.com/mirkolenz/llmhop
1•mlenz•33m ago•0 comments

Marketing Cygnus Support – Free Software History

http://www.toad.com/gnu/cygnus/
1•njn•34m ago•0 comments

Show HN: ControllerTest-test gamepads,stick drift and polling rate by browser

https://controllertestonline.com/
1•zylics•38m ago•0 comments

QUIC (Quick UDP Internet Connections) Transport Layer Network Protocol

https://en.wikipedia.org/wiki/QUIC
3•Brysonbw•38m ago•1 comments

Only favors Indian-origin candidates: Chinese-American professor sues Texas univ

https://www.msn.com/en-in/news/world/only-favors-indian-origin-candidates-chinese-american-profes...
4•alecco•44m ago•0 comments

Lessons from building Claude Code: How we use skills

https://claude.com/blog/lessons-from-building-claude-code-how-we-use-skills
1•geoffbp•50m ago•0 comments

Jared Diamond's Collapse, Chaco Canyon, Why Agency Matters to Understand History

https://greysidewalk.substack.com/p/jared-diamonds-collapse-chaco-canyon
3•pseudolus•53m ago•0 comments

Disprove – a backtest auditor that rejected my own strategy

https://github.com/866y4tb8hc-coder/disprove
1•movadims•54m ago•0 comments

Alibaba/Open-Code-Review

https://github.com/alibaba/open-code-review
2•geoffbp•55m ago•0 comments

Bricks and Minifigs Parts Ways with Franchise Owners

https://bricksandminifigs.com/blog/blog/2026/06/04/bricks-and-minifigs-salem-joshua-johnson-brand...
3•cheschire•59m ago•2 comments

Build your own college curriculum with OpenLibrary

https://openlibrary.org/search/howto/more
1•d0able•1h ago•0 comments