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

Ask HN: Does anyone know how to register as a developer at Microsoft?

1•gcanyon•44s ago•0 comments

Nevada Brothel Workers Are Unionizing to Protect Their Digital Rights

https://www.motherjones.com/politics/2026/02/nevada-sex-workers-brothel-union-ai/
1•gnabgib•3m ago•0 comments

Deferred Member Initialization in C++

https://www.sandordargo.com/blog/2026/02/11/deferred-map-initialization
1•PaulHoule•6m ago•0 comments

Discrete-time multi-robot instability detection simulation

https://github.com/Relational-Relativity-Corporation/robotics-instability-detection-demo
1•Oberon245•9m ago•1 comments

Make Wayland great again [video]

https://www.youtube.com/watch?v=CoDwrvK6xxQ
1•inatreecrown2•13m ago•0 comments

The Moving and the Still

https://www.hyperdimensional.co/p/the-moving-and-the-still
1•nsavage•14m ago•0 comments

Regulating the environmental impact of asteroid mining

https://www.sciencedirect.com/science/article/pii/S0094576526001050
1•inaros•14m ago•0 comments

AI-Induced Tech Selloff Spoils the IPO Parade

https://www.wsj.com/finance/stocks/ai-induced-tech-selloff-spoils-the-ipo-parade-28c54d5e
2•petethomas•17m ago•0 comments

You Get Good at What You Do (Or Do You?)

https://chriscoyier.net/2026/02/24/you-get-good-at-what-you-do-or-do-you/
1•herbertl•18m ago•0 comments

Show HN: Upvoicy – Simple feedback management tool for teams and creators

https://upvoicy.com/
1•optinghost•20m ago•0 comments

Arms race: Apple's waiting for robotics for US iPhone assembly (2025)

https://appleinsider.com/articles/25/04/29/arms-race-apples-waiting-for-robotics-for-us-iphone-as...
4•alhazrod•22m ago•0 comments

Apple's Global Manufacturing Empire

https://www.historytools.org/consumer/where-is-apple-factory
2•stmw•22m ago•0 comments

Can AI Prompt Us to Ask New Questions?

https://newsletter.dancohen.org/archive/can-ai-prompt-us-to-ask-new-questions/
1•Vigier•23m ago•0 comments

Touchscreen OLED MacBook Pro Coming in 2026: Dynamic Island, Redesigned Controls

https://www.macrumors.com/2026/02/24/touchscreen-macbook-pro-dynamic-island/
1•mikhael•30m ago•0 comments

Lattice-proxy – 93% token compression for LLM APIs (drop-in replacement)

https://latticeproxy.io
1•Negative_ron•32m ago•0 comments

Fed's Cook says AI triggering big changes, sees possible unemployment rise

https://www.reuters.com/business/feds-cook-says-ai-triggering-big-changes-sees-possible-short-ter...
24•geox•33m ago•6 comments

Show HN: Linex – A daily challenge: placing pieces on a board that fights back

https://www.playlinex.com/
1•Humanista75•33m ago•0 comments

Claude says its DeepSeek when asked in Chinese

https://twitter.com/stevibe/status/2026227392076018101
6•smusamashah•34m ago•0 comments

UK fines Reddit for not checking user ages aggressively enough

https://arstechnica.com/tech-policy/2026/02/uk-fines-reddit-for-not-checking-user-ages-aggressive...
2•iamnothere•35m ago•0 comments

Show HN: Tau Router – Using Number-Theory to Partition Long-Context Retrieval

https://github.com/davidames0523/tau-router
1•davidames0523•35m ago•0 comments

Show HN: Claud-ometer – See your Claude Code usage, costs, and sessions locally

https://github.com/deshraj/Claud-ometer
1•deshraj•36m ago•0 comments

Show HN: MCP app for viewing/generating 3D Gaussian Splatting in ChatGPT

https://github.com/kstonekuan/splatter-mcp-app
1•kstonekuan•36m ago•0 comments

Sandcastles Made of Bits

https://jsfour.substack.com/p/sandcastles-made-of-bits
2•TheOsiris•37m ago•0 comments

Show HN: VoooAI – natural language to multi-modal AI pipelines

https://voooai.com/
1•hkljjkl•38m ago•1 comments

Every privacy concession in history has been permanent

https://nbtv.substack.com/p/enough-is-enough
6•Cider9986•38m ago•2 comments

Show HN: Ctrl and Click on text to jump to its translation key in VSCode

https://chromewebstore.google.com/detail/i18nkeylocator/nkoandfnjiopdjmhbcnggpeomnmieadi
1•yusufA207•40m ago•0 comments

Xkcd Simulation for Real Packages

https://nesbitt.io/xkcd-2347/
1•michaelw•41m ago•0 comments

New Research Suggests Myopia Could Be Caused by How We Use Our Eyes Indoors

https://www.sunyopt.edu/new-research-suggests-myopia-could-be-caused-by-how-we-use-our-eyes-indoors/
1•gnabgib•42m ago•0 comments

AI and My Crisis of Meaning

https://brids.bearblog.dev/ai-and-my-crisis-of-meaning/
2•mindwok•45m ago•0 comments

Men develop heart disease 7 years before women

https://www.empirical.health/blog/men-vs-women-heart-disease/
2•brandonb•45m ago•0 comments