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•8mo 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•8mo 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•8mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•8mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

I added a Bluesky comment section to my blog

https://micahcantor.com/blog/bluesky-comment-section.html
2•hydroxideOH-•1m ago•0 comments

Show HN: JSciPy – SciPy-inspired signal processing library for Java and Android

https://github.com/hissain/jscipy
2•hissain•3m ago•0 comments

Ask HN: Would you trust an AI coworker with shell access to your infrastructure?

1•doctornemesis•7m ago•0 comments

What Will People Think?

https://domofutu.substack.com/p/what-will-people-think
1•wjb3•8m ago•0 comments

Show HN: Kanata-switcher – per-application hotkeys for all Linux DEs

https://github.com/7mind/kanata-switcher
2•neko-kai•9m ago•0 comments

Ask HN: Why does the number of datasets on data.gov vary so much?

2•akudha•9m ago•1 comments

Rethinking Helix

https://asta.boserup.eu/forest/rethinking-helix/
1•birdculture•14m ago•0 comments

An unlike source of crypto innovation: Afghanistan

https://www.nytimes.com/2026/01/24/world/asia/crypto-innovation-afghanistan.html
1•japaget•14m ago•0 comments

Grokking

https://en.wikipedia.org/wiki/Grokking_(machine_learning)
2•tarbyqualia•16m ago•0 comments

Show HN: Witral: Self-hosted framework to ingest WhatsApp into Markdown/Obsidian

https://github.com/kirlts/witral
1•kirlts•19m ago•1 comments

Ask HN: Have we confused Efficiency with "100% Utilization"?

2•nickevante•19m ago•0 comments

Local AI Manifesto

https://github.com/Tennisee-data/acf/blob/main/MANIFESTO.md
2•zen4ttitude•20m ago•1 comments

The western US is in a snow drought, and storms have been making it worse

https://theconversation.com/the-western-us-is-in-a-snow-drought-and-storms-have-been-making-it-wo...
1•PaulHoule•20m ago•0 comments

Teenage Engineering's riddim n' ting: a handheld reggae/dub groovebox and FX mic

https://teenage.engineering/products/ep-40
2•Lwrless•21m ago•0 comments

SyncForge – CRDT library faster than Yjs with full TypeScript support

https://github.com/ArthurzKV/syncforge
4•arthurzkv•22m ago•0 comments

Action Potentials for January

https://neurobiology.substack.com/p/action-potentials-for-january-46f
1•paulpauper•25m ago•0 comments

Everything I Thought I Knew About Flavor Was Wrong [video]

https://www.youtube.com/watch?v=4SBXGzH_F3w
2•gmays•29m ago•0 comments

Postmortem: Our first VLEO satellite mission (with imagery and flight data)

https://albedo.com/post/clarity-1-what-worked-and-where-we-go-next
16•topherhaddad•31m ago•2 comments

Women think artificial intelligence is riskier than men do, study finds

https://www.thebrighterside.news/post/women-think-artificial-intelligence-is-riskier-than-men-do-...
3•binning•31m ago•0 comments

Canadian woman euthanized 'against her will' after husband fed up caring for her

https://www.dailymail.co.uk/news/article-15489605/canadian-woman-euthanized-ontario-maid.html
5•binning•32m ago•0 comments

Ask HN: Rust and AI builders interested in local-first, multi-agent systems?

1•cajazzer•33m ago•2 comments

Contradictions on the Liberal Influenced Leftist Movement: On Prostitution

https://radleftunity.substack.com/p/contradictions-on-the-liberal-influenced-9f4
1•binning•34m ago•0 comments

Propositions about the New Romanticism

https://www.honest-broker.com/p/25-propositions-about-the-new-romanticism
4•dom2•35m ago•0 comments

Native GFM+ macOS (iOS WIP) Markdown Rendering via TextKit2

https://github.com/SuperSwiftMarkup/SuperSwiftMarkdownPrototype
1•colbyn•36m ago•1 comments

AI and Open Source: A Maintainer's Take (2025)

https://st0012.dev/2025/12/30/ai-and-open-source-a-maintainers-take-end-of-2025/
1•mooreds•39m ago•0 comments

Show HN: DocuDeeper – private document AI assistant,100% offline, GDPR-compliant

https://github.com/erabytse/docudeeper
1•takouzlo•39m ago•1 comments

A virtual-threaded Java HTTP server with zero dependencies

https://soklet.com/
1•mooreds•40m ago•0 comments

I Was Diagnosed with ADHD in My Forties. It Explained Everything

https://www.wsj.com/health/wellness/in-my-forties-i-found-out-i-have-adhdmaybe-you-do-too-c6fa3f84
4•ViktorRay•40m ago•0 comments

Why Does Destroying Resources via TF Suck?

https://newsletter.masterpoint.io/p/why-does-destroying-resources-via-tf-suck
7•mooreds•41m ago•6 comments

Looks like Claude is having a stroke

https://twitter.com/tskulbru/status/2015148189897101622
11•tskulbru•45m ago•3 comments