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.

Growth / Decline of various mobile app SDKs

https://appgoblin.info/reports/mobile-apps-growth-sdks-2025
1•ddxv•4m ago•1 comments

Grok and the A.I. Porn Problem

https://www.newyorker.com/culture/infinite-scroll/grok-and-the-ai-porn-problem
1•fortran77•5m ago•1 comments

How to Debug Your Life

https://www.joanwestenberg.com/how-to-debug-your-life/
1•zdw•5m ago•0 comments

China's Zhipu Unveils New AI Model Trained on Huawei's Chips

https://www.bloomberg.com/news/articles/2026-01-14/china-s-zhipu-unveils-new-ai-model-trained-on-...
1•antman•7m ago•0 comments

Rare images of Europe's 'ghost cat' [wildcat]

https://www.bbc.com/future/article/20260112-rare-images-of-europes-ghost-cat
2•7402•8m ago•0 comments

Tech Writers Are About to Become Obsolete

https://kibbler.dev/blog/turn-your-codebase-into-a-knowledge-base
2•kewun•11m ago•0 comments

Two Indian students won a $200k settlement with US university

https://indianexpress.com/article/cities/delhi/a-lunch-of-palak-paneer-and-how-two-indian-student...
1•akbarnama•13m ago•0 comments

Temporal Patterns

https://martinfowler.com/eaaDev/timeNarrative.html
1•vulcan01•14m ago•0 comments

As birthrates tumble, progressives say the left needs to offer ideas, solutions

https://www.npr.org/2026/01/12/nx-s1-5637424/birthrate-population-babies
2•andsoitis•15m ago•0 comments

Tesla to stop selling FSD package, moves to subscription-only: why a big move

https://electrek.co/2026/01/14/tesla-tsla-stop-selling-full-self-driving-package-subscription-only/
1•FabHK•19m ago•0 comments

Viking Solar Navigation Modernized (DIY)

https://www.youtube.com/watch?v=4ERqAqwQ1wo
1•gsf_emergency_6•21m ago•0 comments

Show HN: Calculator to compare Startup offers vs. Big Tech comp

https://shouldijoinastartup.com
1•febtiger•23m ago•0 comments

Supernatural VR will no longer get new content or features

https://www.uploadvr.com/supernatural-coaches-face-same-fate-as-oculus-home-echo-arena/
1•guiambros•25m ago•1 comments

Handy – free open source speech-to-text app

https://github.com/cjpais/Handy
1•tin7in•26m ago•0 comments

Ask HN: How to predict nums of output tokens?

1•ssslvky1•28m ago•1 comments

Mistral Vibe – Minimal CLI Coding Agent

https://github.com/mistralai/mistral-vibe
1•tin7in•31m ago•0 comments

Pocket TTS: A high quality TTS that gives your CPU a voice

https://kyutai.org/blog/2026-01-13-pocket-tts
3•pain_perdu•35m ago•0 comments

Conductor: Context-driven development for Gemini CLI

https://developers.googleblog.com/conductor-introducing-context-driven-development-for-gemini-cli/
1•geoffbp•38m ago•0 comments

Just the Browser

https://justthebrowser.com/
1•vinhnx•39m ago•1 comments

Claude Code Tool Search Tool

https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool
1•tin7in•40m ago•0 comments

Show HN: Headroom – Reversible context compression for LLMs(~60% cost reduction)

https://github.com/chopratejas/headroom
1•chopratejas•43m ago•1 comments

Show HN: Tool that automates ML model deployment on mobile/edge devices

https://twitter.com/AbdoulayeSeydi_/status/2011648286885888216
1•AbdoulayeSeydi•55m ago•0 comments

Tech investors assess minerals mining as U.S. takeover talk on Greenland grows

https://www.cnbc.com/2026/01/12/tech-investors-probe-mining-viability-if-us-acquires-greenland-ce...
7•1vuio0pswjnm7•58m ago•2 comments

Raising Kids After Knowledge Became a Commodity

https://liorz.github.io/blog/posts/fallacy-education-for-academic-excellence/
2•freediver•59m ago•0 comments

Here comes the advertising in AI chatbots

https://www.washingtonpost.com/technology/2026/01/13/advertising-google-ai-mode-chatgpt/
7•1vuio0pswjnm7•59m ago•2 comments

Ask HN: Why Gemini CLI startup is so slow?

1•attentive•1h ago•0 comments

Show HN: Flour Hour – I built a bread baking app with Claude Code in 3 hours

https://yaninatrekhleb.github.io/flour-hour/
2•yanina_trekhleb•1h ago•0 comments

On FLOSS and training LLMs

https://chronicles.mad-scientist.club/tales/on-floss-and-training-llms/
1•pabs3•1h ago•0 comments

Show HN: Open Contribution Graph: A GitHub heatmap for anything you can POST

https://github.com/Tomer-Barak/contribution-graph
2•minimal_action•1h ago•1 comments

Microsoft's spending on Anthropic AI on track to reach $500M

https://www.msn.com/en-us/money/other/microsoft-s-spending-on-anthropic-ai-on-track-to-reach-500m...
3•nl•1h ago•0 comments