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

Should we hate vibe coders?

https://computerswereamistake.substack.com/p/should-we-hate-vibe-coders
1•manitob24•2m ago•0 comments

Frustrated with slow AI adoption? Your culture is the problem not your engineers

https://innolitics.com/articles/ai-native-engineering-transformation/
1•yshrestha•4m ago•1 comments

Kagi Small Web

https://kagi.com/smallweb
1•susam•10m ago•0 comments

Intel Underestimates Error Bounds by 1.3 quintillion (2014)

https://randomascii.wordpress.com/2014/10/09/intel-underestimates-error-bounds-by-1-3-quintillion/
2•antonly•10m ago•0 comments

Show HN: Whisper Money – a zero-knowledge personal finance app (E2E encrypted)

https://github.com/whisper-money/whisper-money
1•falcon_•12m ago•1 comments

Prompt Repetition Improves Non-Reasoning LLMs

https://arxiv.org/abs/2512.14982
1•UntitledNo4•14m ago•0 comments

Writing an LLM from scratch, part 31 – the models are now on Hugging Face

https://www.gilesthomas.com/2026/01/llm-from-scratch-31-models-on-hugging-face
1•gpjt•15m ago•0 comments

Histomat of F/OSS: We should reclaim LLMs, not reject them

https://writings.hongminhee.org/2026/01/histomat-foss-llm/
1•birdculture•18m ago•0 comments

Book Review: Ping by Andrew Brodsky

https://www.mattrutherford.co.uk/book-ping-by-andrew-brodsky/
1•walterbell•18m ago•0 comments

Private LLM Inference on Consumer Blackwell GPUs

https://arxiv.org/abs/2601.09527
1•Teever•19m ago•0 comments

I made a cursor clone just for taking notes

https://galileo.sh/
1•zaais•20m ago•3 comments

A Brief Genealogy of Anti-Modernity

https://thewaxingcrescent.substack.com/p/a-brief-genealogy-of-anti-modernity
1•XzetaU8•21m ago•0 comments

Signature Reduction

https://www.newsweek.com/exclusive-inside-militarys-secret-undercover-army-1591881
2•barrister•22m ago•0 comments

List of Common Misconceptions

https://en.wikipedia.org/wiki/List_of_common_misconceptions
2•xthe•23m ago•1 comments

Yaël D. Eisenstat

https://en.wikipedia.org/wiki/Yael_Eisenstat
1•barrister•23m ago•0 comments

Mandiant releases rainbow table that cracks weak admin password in 12 hours

https://arstechnica.com/security/2026/01/mandiant-releases-rainbow-table-that-cracks-weak-admin-p...
1•mannykannot•25m ago•0 comments

Show HN: Hydra – Capture and share AI Playbooks across your stack

https://hydra.opiusai.com/
1•Bharath_Koneti•26m ago•0 comments

The Bitter Lesson of Agent Frameworks

https://twitter.com/gregpr07/status/2012052139384979773
2•arbayi•28m ago•0 comments

Revisiting the Joys and Woes of the Craft in 2026

https://www.paritybits.me/joys-and-woes-2026/
1•NiloCK•29m ago•1 comments

Show HN: I built a Go TUI to clean dev caches on macOS

https://github.com/2ykwang/mac-cleanup-go
2•immutable000•30m ago•1 comments

Show HN: UAIP Protocol – Secure settlement layer for autonomous AI agents

https://github.com/jahanzaibahmad112-dotcom/UAIP-Protocol
2•Jahanzaib687•31m ago•0 comments

ClickHouse Launches Managed PostgreSQL

https://clickhouse.com/cloud/postgres
2•thenaturalist•31m ago•0 comments

How to make LLMs and Agents work on large amounts of data

https://blog.datatune.ai/how-to-make-llms-work-on-large-amounts-of-data
1•abhijithneil•32m ago•0 comments

Show HN: Minikv – Distributed key-value and object store in Rust (Raft, S3 API)

https://github.com/whispem/minikv
15•whispem•33m ago•8 comments

Ben Affleck and Matt Damon on the Limits of AI in Movie Making [video]

https://www.youtube.com/watch?v=O-2OsvVJC0s
2•thunderbong•34m ago•0 comments

Vinted Sells Children

https://morsdei.uk/vinted-sells-children/
2•NoGimmies•35m ago•0 comments

Meta has discontinued its metaverse for work, too

https://www.theverge.com/tech/863209/meta-has-discontinued-its-metaverse-for-work-too
10•malshe•37m ago•1 comments

Hair Ice

https://en.wikipedia.org/wiki/Hair_ice
2•cl3misch•38m ago•0 comments

Pastable Signatures

https://pastable-sig.site/
1•andyvtn•41m ago•0 comments

OpenAI to test ads in ChatGPT as it burns through billions

https://arstechnica.com/information-technology/2026/01/openai-to-test-ads-in-chatgpt-as-it-burns-...
9•Terretta•42m ago•0 comments