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.

Mini-SWE-agent scores up to 74% on SWE-bench in 100 lines of Python code

https://mini-swe-agent.com/latest/
1•fittingopposite•1m ago•0 comments

A Comprehensive Analysis of the Open-Weight Frontier (May 2026)

https://deepresearch.ninja/2026/05/Qwen3.6-27B/35B-A3B-vs-Gemma-4-vs-DeepSeek-V4-A-Comprehensive-...
1•jackalxyz•9m ago•0 comments

PeerDrop – Direct file transfer. No cloud

https://peerdrop.app/
1•janandonly•10m ago•0 comments

Perfect randomness realized for the first time

https://phys.org/news/2026-05-randomness.html
1•arunc•10m ago•0 comments

The carmakers are struggling to compete with China

https://www.bbc.com/news/articles/c4g8vg72z43o
1•nairteashop•14m ago•1 comments

NovaGPU – An open-source GPU architecture written in Verilog

https://github.com/nova-studios-hw/novagpu-ts1t
1•novastudios-hw•14m ago•0 comments

Ask HN: How Much a Difference Does an LLM's Corpus Make?

1•giardini•14m ago•0 comments

Ask HN: Why not have an EU browser?

2•osigurdson•15m ago•0 comments

Oilfield units: a measurement system so cursed it made me change career [video]

https://www.youtube.com/watch?v=sdWEGzWFcCc
1•dgellow•16m ago•0 comments

Clojure → YAMLScript transpiler: using LLMs for normalization, SCI for execution

https://github.com/whitecell-dev/cljys
1•MaykonMan•17m ago•0 comments

Unemployment Simulator 2018

https://store.steampowered.com/app/3252360/Unemployment_Simulator_2018/
1•MrBuddyCasino•18m ago•0 comments

DOJ charges Google staffer over Polymarket trades netting $1.2M

https://text.npr.org/nx-s1-5836659
1•hvb2•19m ago•0 comments

Show HN: Product Trailers – The TV Channel for Product Hunt Launches

https://producttrailers.xyz
2•kentich•19m ago•0 comments

SpaceX: Did Elon Musk Just Rig the Stock Market? [video]

https://www.youtube.com/watch?v=sYA-z0Y8WRQ
6•mgh2•25m ago•0 comments

Show HN: Pre-computed market context for agents

https://tickerdb.com/
1•wolfman1•28m ago•0 comments

Sigbovik 2026 Proceedings [pdf]

https://sigbovik.org/2026/proceedings.pdf
4•boodleboodle•34m ago•0 comments

JAL to launch Moon payload service, aims to preserve heritage

https://english.kyodonews.net/articles/-/76763
2•anigbrowl•35m ago•0 comments

Amdahl's law for AI agents

https://electric.ax/blog/2026/02/19/amdahls-law-for-ai-agents
1•pramodbiligiri•37m ago•0 comments

Class CrunchLabs

https://www.classcrunchlabs.org/
3•mgarciaisaia•42m ago•0 comments

Parallelizing Arbitrary Python Code by Running 1M Python Interpreters on a GPU

https://github.com/jndean/gpusnek
1•jffry•48m ago•0 comments

World likely to breach 1.5°C limit in next five years

https://news.un.org/en/story/2025/05/1163751
5•geox•49m ago•0 comments

Discovering the Saddle Ridge Hoard

https://americanhistory.si.edu/explore/exhibitions/value-money/online/new-acquisitions/saddle-rid...
2•thunderbong•52m ago•0 comments

What Is a Neoengineer?

https://lukaswerner.com/post/2026-05-27@genz-neoengineer
3•chilipepperhott•54m ago•1 comments

Want to pack a public meeting in Kansas? Just say it's about a 'data center'

https://klcjournal.com/want-to-pack-a-public-meeting-in-kansas-just-say-its-about-a-data-center/
2•gnabgib•55m ago•0 comments

MIT president: Why so many optimistic scientists are losing heart

https://www.bostonglobe.com/2026/05/26/opinion/science-funding-cuts-mit/
8•andrewl•58m ago•0 comments

C++ CLI for folder encryption with AES-256-GCM and USB-based key loading

1•nextma•1h ago•0 comments

OpenGlasses: Meta Glasses open source app

https://github.com/straff2002/OpenGlasses
2•exadeci•1h ago•0 comments

When everyone has access to the same AI models

https://www.mckinsey.com/capabilities/quantumblack/our-insights/from-ai-table-stakes-to-ai-advant...
2•jameslk•1h ago•0 comments

Hallucinate – Massively Multiplayer Online Rave

https://hallucinate.site
52•stagas•1h ago•15 comments

We're in the Over-Engineering Game Now

https://plc.vc/cdx
2•pclark•1h ago•0 comments