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.

Understanding Container Images: Layers, Configs, Manifests, and More

https://labs.iximiuz.com/tutorials/container-image-from-scratch
1•birdculture•1m ago•0 comments

Manipulating AI memory for profit: The rise of AI Recommendation Poisoning

https://www.microsoft.com/en-us/security/blog/2026/02/10/ai-recommendation-poisoning/
1•doener•5m ago•0 comments

European Space Agency, China achieve gigabit links to geostationary satellites

https://www.theregister.com/2026/03/04/gigabit_laser_links_geostationary_satellites/
1•pseudolus•5m ago•0 comments

Just Use Postgres

https://nesbitt.io/2026/03/10/just-use-postgres.html
2•watchful_moose•5m ago•0 comments

Ask HN: Agencies/MSPs, how do you manage VPN access across many clients?

1•k4roshi•5m ago•0 comments

I (Still) Use Aider in 2026

https://semyonsinchenko.github.io/ssinchenko/post/aider_2026_and_other_topics/
1•s-sem•6m ago•0 comments

Why should operating systems and websites track the user age?

https://wiki.alcidesfonseca.com/blog/age-verification-in-operating-systems-and-the-internet/
1•alcidesfonseca•7m ago•0 comments

Scientists discover how falling cats almost always make perfect landings

https://phys.org/news/2026-03-japanese-scientists-falling-cats.html
1•pseudolus•8m ago•0 comments

Hacker Infrastructure

1•yjtpesesu2•9m ago•1 comments

Show HN: Aver – a language designed for AI to write and humans to review

https://github.com/jasisz/aver
1•jasisz•9m ago•1 comments

Getweeks: A life calendar that connects your goals to weekly lifestyle changes

https://www.getweeks.com/fr
1•benlatger•12m ago•1 comments

Wikipedia faces a double threat: the rise of AI and the decline of local media

https://www.cbc.ca/radio/sunday/wikipedia-25-year-ai-effect-9.7117795
1•1vuio0pswjnm7•13m ago•0 comments

'Demand Management' is doomed

https://loosemore.com/2026/03/11/demand-management-is-doomed-heres-how-to-get-over-it/
1•robin_reala•13m ago•0 comments

The Mini Cheetah Robot (2019)

https://robot-daycare.com/posts/2019-12-16-the-mini-cheetah-robot/
1•o4c•17m ago•0 comments

Compile and flash an STM32 in 8s from a single prompt using function calling

https://github.com/PrettyMyGirlZyy4Embedded/garycli/tree/main
1•gary_cli•19m ago•0 comments

Lunches.fyi

https://walzr.com/lunches-fyi/
1•coyney•20m ago•0 comments

LMF – LLM Markup Format

https://github.com/sarfraznawaz2005/lmf
1•sarfraz_nawaz•21m ago•0 comments

What nearly broke you in your first year as CTO?

1•Cannonball2134•22m ago•0 comments

Zipp 2001 Restoration

https://robot-daycare.com/posts/zipp-2001-restoration-part-1/
1•o4c•23m ago•0 comments

Black Hat USA 2025 – Breaking Control Flow Integrity by Abusing Modern C++ [video]

https://www.youtube.com/watch?v=hxIPoi4ONNA
1•pjmlp•25m ago•0 comments

As US missiles leave South Korea, the Philippines asks: are we next?

https://www.scmp.com/week-asia/politics/article/3346226/us-missiles-leave-south-korea-philippines...
9•etiam•28m ago•0 comments

Show HN: AIWatermarkDetector: Detect AI Watermarks in text or code

https://github.com/ulrischa/AIWatermarkDetector
1•ulrischa•32m ago•1 comments

Whitehall can't cost digital ID until it decides how to build it

https://www.theregister.com/2026/03/11/digital_id_cost/
1•jjgreen•32m ago•0 comments

Meta Acquires Moltbook

https://arstechnica.com/ai/2026/03/meta-acquires-moltbook-the-ai-agent-social-network/
1•lnrd•32m ago•0 comments

The Anthropic Institute

https://www.anthropic.com/institute
1•pretext•33m ago•0 comments

The return-to-the-office trend backfires

https://thehill.com/opinion/technology/5775420-remote-first-productivity-growth/
4•PretzelFisch•35m ago•0 comments

Tensorlake

https://tensorlake.ai/
1•handfuloflight•37m ago•0 comments

Now I have a clear picture. Let me understand the issue

1•noduerme•37m ago•0 comments

I Need a Partner

2•justYooz•38m ago•1 comments

Ask HN: Which EU country would you recommend for setting up a startup?

1•stein1946•38m ago•1 comments