frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

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

Pavel

1•manicatide•1m ago•0 comments

Show HN: Tab Trail, a bookmarklet that draws a page's tab order and finds gaps

https://matjazkorosec.com/tools/tab-trail
1•matjazkorosec•1m ago•0 comments

We review every PR with a 27B model on self-hosted infra

https://varoa.net/2026/11/03/we-review-every-pr-with-a-27b-model-on-self-hosted-infra.html
1•srvaroa•1m ago•0 comments

IconMCP – autonomous icon library built by agents

https://iconmcp.com/
1•agilek•2m ago•0 comments

A Primer on Ethics in Mathematics

https://arxiv.org/abs/2610.08209
1•Qision•2m ago•0 comments

Show HN: Alternative to Nvidia Auto-Ontology

https://github.com/GetCassis/ontology-skills
1•matthieu_bl•3m ago•0 comments

I love my T3 Code development workflow

https://unbeholden.dev/blog/t3-code-in-every-dev-container
1•unbeholden•3m ago•0 comments

I tried to break weight programming

https://flecart.github.io/posts/2026-11-03-i-tried-to-break-weight-programming/
1•flecart•5m ago•0 comments

Study Reveals Concerning Trends in Global Mental Health

https://www.publichealth.columbia.edu/news/study-reveals-concerning-trends-global-mental-health
1•thunfischtoast•5m ago•0 comments

Front End JavaScript Interview Questions

https://borischerny.com/javascript/%22functional/programming%22/2017/06/09/Frontend-Interview-Que...
1•ankitg12•11m ago•0 comments

AI in Mathematical Research: Heidelberg Laureate Forum

https://www.youtube.com/watch?v=H7_d_sgui6o
1•niemandhier•13m ago•1 comments

Geoffrey Hinton: it might turn out we were better off without AI

https://www.theguardian.com/uk-news/2026/nov/03/ai-godfather-geoffrey-hinton-better-off-without-ai
4•alkyon•17m ago•2 comments

Giving the PS Vita camera new life with GPT-6 Astra

https://i8o.eu/journal/giving-new-life-to-ps-vita/
1•xerosic•17m ago•0 comments

Seitan: Syscall Expressive Interpreter, Transformer and Notifier

https://seitan.rocks/seitan/about/
1•exceptione•17m ago•1 comments

Bosch to create semiconductor division from January 2028

https://www.reuters.com/world/asia-pacific/bosch-spin-off-semiconductor-division-january-2028-202...
1•giuliomagnifico•18m ago•1 comments

A 3D solar eclipse simulator built with Unreal Engine and Cesium

https://github.com/Dragos112358/Eclipse-Simulator-3D
1•dragosboncan•19m ago•1 comments

iPad mini 8: OLED panel, thinner design, one of my favorite tablets

https://www.tomsguide.com/computing/ipads/apple-ipad-mini-8-review
1•tosh•22m ago•0 comments

Show HN: TubeHaus – Open-source YouTube app for Android, desktop and TV

https://github.com/biolend83/tubehaus
1•invidiouslove12•23m ago•0 comments

Siri AI is now open to all developers

https://developer.apple.com/news/?id=gdk2umrf
2•tosh•23m ago•0 comments

PFAS contamination in the U.S. (March 5, 2026)

https://www.ewg.org/interactive-maps/pfas_contamination/map/
2•Bluestein•26m ago•0 comments

Pulling the right strings for RCE on a Puppet

https://neodyme.io/en/blog/puppet_rce/
1•joshcsimmons•27m ago•0 comments

Hacker News just got a new glow

https://twitter.com/findingnische/status/2117921951675204049
2•NeumannGod•29m ago•4 comments

Tell HN: Gemini trains on chat history, even for subscribers (personal accounts)

5•jameslk•30m ago•0 comments

Rails security releases: 8.0.5.2 and 8.1.4.1

https://groups.google.com/g/rubyonrails-security/c/y4e4Quy4zeM/m/NSbt8rclCgAJ
2•zzem•31m ago•1 comments

OpenAI employees warned about operational security lapses for years

https://www.reuters.com/business/openai-employees-warned-about-operational-security-lapses-years-...
2•pretext•35m ago•0 comments

Colloq – A collaborative Python classroom you can self-host

https://github.com/colloq-edu/colloq
1•slp3r•36m ago•0 comments

Show HN: Evalship – find the flaws in your LLM evals

https://evalship.com/
1•gghootch•37m ago•1 comments

Arla faces overdue scrutiny after shocking animal welfare revelations

https://www.thebureauinvestigates.com/stories/2026-11-03/arla-faces-overdue-scrutiny-after-shocki...
2•robtherobber•39m ago•0 comments

Supermarket fridge attack is just the start, says UK cybersecurity chief

https://www.reuters.com/legal/government/uk-must-expect-ai-powered-attack-critical-infrastructure...
2•giuliomagnifico•40m ago•0 comments

Incident with Pull Requests, Git Operations and Issues

https://www.githubstatus.com/incidents/smtdswd1h2w4
36•kevcampb•40m ago•16 comments