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.

Show HN: Search Django Packages on Raycast – Jump to Docs, PyPI, and Repos

https://www.raycast.com/saadmk11/djangopackages
1•saadmk11•1m ago•0 comments

Nix State of the SBoM

https://arnout.engelen.eu/blog/nix-state-of-the-sbom/
1•todsacerdoti•2m ago•0 comments

Perception Is All You Need

https://www.arturonereu.com/articles/perception-is-all-you-need/
1•ArturoNereu•3m ago•0 comments

Drones in the UK: New Legal Requirements for Remote ID

https://www.caa.co.uk/drones/moving-on-to-more-advanced-flying/remote-id-rid
2•maartin0•3m ago•0 comments

A Practical Guide to Living Together and Not Losing Your Mind

https://www.nytimes.com/2025/12/24/opinion/community-housing-friendship.html
1•nkzednan•4m ago•0 comments

A new stealthy Linux kernel rootkit makes detection nearly impossible

https://github.com/MatheuZSecurity/Singularity
2•matheuzsec•4m ago•1 comments

Microsoft wants to replace its C and C++ codebase, perhaps by 2030

https://www.theregister.com/2025/12/24/microsoft_rust_codebase_migration/
1•hubraumhugo•5m ago•0 comments

Show HN: PyMiniRacer 0.13.0

https://bpcreech.com/PyMiniRacer/
1•bpcreech•5m ago•0 comments

Pizzzza Lol v2

https://pizzzza.lol
1•kilroy123•5m ago•0 comments

Show HN: I wrote a Christmas-themed Space Invaders clone in 8086 Assembly

https://github.com/jbnunn/Invaders
1•20wenty•5m ago•0 comments

Plane makes safe emergency landing in Colorado without a pilot's help

https://www.cbsnews.com/colorado/news/plane-emergency-landing-colorado-autoland/
2•altilunium•6m ago•0 comments

SA-FARI: Open Video Dataset

https://www.conservationxlabs.com/sa-fari
1•geox•8m ago•0 comments

In Hoc Anno Domini

https://www.wsj.com/opinion/in-hoc-anno-domini-d0d5a77e
1•RickJWagner•9m ago•0 comments

'Three norths' alignment about to end

https://www.spatialsource.com.au/three-norths-alignment-about-to-end/
1•altilunium•9m ago•0 comments

Just in Time Software

https://commaok.xyz/ai/just-in-time-software/
1•gpi•10m ago•0 comments

Ask HN: Is AI changing the interview process?

2•hellohihello135•11m ago•0 comments

Show HN: MicroQuickJS WASM – A 100% Claude Code Port

https://mquickjs-claude-code.franzai.com/
1•franze•11m ago•0 comments

John Carreyrou and other authors bring new lawsuit against major AI companies

https://techcrunch.com/2025/12/23/john-carreyrou-and-other-authors-bring-new-lawsuit-against-six-...
1•smurda•12m ago•0 comments

Why ice skating is a miracle of physics

https://bigthink.com/starts-with-a-bang/ice-skating-miracle-physics/
2•Brajeshwar•13m ago•0 comments

One small change in battery design could reduce fires, researchers say

https://www.cnn.com/science/new-battery-design-could-prevent-fires-spc
1•Brajeshwar•13m ago•0 comments

Britain Just Had Its Sunniest Year on Record

https://e360.yale.edu/digest/u.k.-sunniest-year
2•Brajeshwar•14m ago•0 comments

Detect and Demonstrate AWS IAM Privilege Escalation

https://pathfinding.cloud/
1•devwa•17m ago•0 comments

Canonicalization

https://sunfishcode.github.io/blog/2018/10/22/Canonicalization.html
1•nice_byte•17m ago•0 comments

Show HN: MonumentAI – Shazam for buildings (History without the boring parts)

1•OzanYldz•19m ago•0 comments

We Abandoned Matrix: The Dark Truth About User Security and Safety (2024)

https://forum.hackliberty.org/t/why-we-abandoned-matrix-the-dark-truth-about-user-security-and-sa...
1•Flere-Imsaho•21m ago•0 comments

Habitable Worlds Observatory's High Resolution Imager

https://arxiv.org/abs/2512.16416
1•belter•22m ago•0 comments

Cursor UI is built with SolidJS

https://old.reddit.com/r/solidjs/comments/1puoifc/cursor_ui_is_built_with_solidjs/
1•itayadler•22m ago•0 comments

Show HN: Opensource"BeMyEyes"alternative(Java/Go/Python)built as a learning pjet

https://github.com/XXieYiqiang/SoakUpTheSun
1•1103938364•23m ago•1 comments

ZJIT is now available in Ruby 4.0

https://railsatscale.com/2025-12-24-launch-zjit/
3•onnnon•24m ago•0 comments

Built a Windows XP simulator with a Matrix-themed terminal game inside

https://amateurminal.com/
1•adamsabla•26m ago•1 comments