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.

Project Gryffindor: Meta's plan to get more school kids using Instagram

https://www.npr.org/2026/11/18/nx-s1-6037808/meta-instagram-schools-teens-safety
1•blinding-streak•47s ago•0 comments

Kamal vs. Dokku vs. CapRover: picking a free way to deploy to your own server

https://railyard.run/blog/kamal-vs-dokku-vs-caprover/
1•RailyardRun•55s ago•0 comments

Exploring over 700 custom Call of Duty 2 maps in 3D

https://sniklaus.com/codmaps
1•sniklaus•1m ago•0 comments

Dissecting the GPU Load/Store Unit and Exposing Its Security Risks

https://arxiv.org/abs/2611.23022
1•titusblair•1m ago•0 comments

Stacy Keach, Actor Who Embodied Hamlet and Mike Hammer, Dies at 85

https://www.nytimes.com/2026/11/10/arts/stacy-keach-dead.html
1•bookofjoe•1m ago•1 comments

Steckfeld: The fictional world behind a modular synth app

https://steckfeld.app/lore
1•dpangerl•2m ago•1 comments

After calling the last round a cash grab, easyDNS applies for 3 new TLDs

https://easydns.com/blog/2026/11/18/why-easydns-has-applied-for-three-new-icann-tlds-after-callin...
2•StuntPope•4m ago•0 comments

Polypane browser now has an Automation MCP

https://polypane.app/automation/
1•kilian•4m ago•0 comments

Co-Designing Sparse Attention for Efficient Long-Context Inference

https://developer.nvidia.com/blog/co-designing-sparse-attention-for-efficient-long-context-infere...
1•gmays•4m ago•0 comments

All civilizational wealth comes from invention

https://www.youtube.com/watch?v=KrVH-MKJviI
1•NarcisMirandes•5m ago•1 comments

Show HN: Ambient Alpha: A stock market display for Apple TV

https://ambientalpha.com/
1•traderaegis•5m ago•0 comments

Nobody Is Ready for This Future. But Nobody Is Stopping It

https://www.nytimes.com/2026/11/18/opinion/anthropic-ai-openai.html
1•ChrisArchitect•6m ago•1 comments

Show HN: Jekyll-panel-TUI: TUI-style jekyll theme

https://github.com/yedhukrishnan/jekyll-panel-tui
1•yedhukrishnan•6m ago•0 comments

SuperEMeans: Making e-means 3× faster

https://www.lkuffo.com/superemeans/
1•lkuffo2•7m ago•0 comments

Last.fm API keys will require Pro from first December

https://support.last.fm/t/api-keys-will-require-pro-from-1st-december/121030
2•imalerba•8m ago•0 comments

Microsoft AI: Seven new world-class models at scalable price-performance

https://microsoft.ai/news/microsoft-ignite-2026/
1•gmays•8m ago•0 comments

FBI warns hackers weaponizing ARTEX AI framework to automate attacks

https://industrialcyber.co/industrial-cyber-attacks/fbi-warns-hackers-weaponizing-artex-ai-framew...
1•neogodless•8m ago•0 comments

Show HN: Comparing pricing across 100 web search APIs

https://voxoria.ai/web-search-api-pricing/
1•sanj001•9m ago•0 comments

Show HN: RedCat an open-source AI agent for your desktop

https://github.com/manamaliahmad/redcat
1•manamaliahmed•9m ago•0 comments

CVE-2026-99312: KVM Guest-to-Host Escape

https://www.terra.security/blog/kvm-guest-to-host-escape
1•Kozmik1•10m ago•0 comments

Show HN: ExitPath – Open-source ways out of Slack, Notion and Microsoft 365

https://exitpath-ruddy.vercel.app/
1•zerocool0101•12m ago•0 comments

Cerebras Readies CS-5 Systems for 2027 Launch as It Bags Another Hyperscaler

https://www.nextplatform.com/compute/2026/11/14/cerebras-readies-cs-5-systems-for-2027-launch-as-...
1•rbanffy•12m ago•0 comments

Multikernel Linux Comes To ARM64, mklinux 7.0-mk5 Released

https://www.phoronix.com/news/Multi-Kernel-mklinux-7.0-mk5
1•rbanffy•13m ago•0 comments

HN: How does Gta 6 server not crushed

2•zubair-hussain•13m ago•0 comments

I'm giving the whole Internet a good time [video]

https://www.youtube.com/watch?v=fWXB5u4lXk0
2•tambourine_man•15m ago•0 comments

Someone reconstructed the lost PDP-1 TECO, first-ever editor

https://github.com/wjenh/pidp1-tools/tree/main/TECO
1•ozymandiax•15m ago•1 comments

Show HN: Dez – plaintext open source AI multimedia studio

https://github.com/taoeffect/dez
2•gslepak•15m ago•0 comments

Show HN: Free OPT tracker, built after a $5k filing mistake

https://www.myaladdin.app/opt-tracker
1•marvin_x•15m ago•0 comments

'Just Ridiculous': A Famed Philosopher Takes on AI Consciousness

https://www.wired.com/story/just-ridiculous-a-famed-philosopher-takes-on-ai-consciousness/
1•thm•17m ago•0 comments

Amazon and Google will together own nearly 30% of Anthropic after its IPO

https://techcrunch.com/2026/11/17/amazon-and-google-will-together-own-nearly-30-of-anthropic-afte...
2•sshah03•17m ago•0 comments