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.

Security Is Not a Code Problem

https://uphack.io/blog/post/security-is-not-a-code-problem/
1•mariushh•19s ago•0 comments

Payments Processor Stripe Expresses Interest in PayPal

https://www.bloomberg.com/news/articles/2026-02-24/payments-processor-stripe-expresses-interest-i...
1•mfld•1m ago•0 comments

Gondolin: Local Linux micro-VMs with programmable network and filesystem control

https://github.com/earendil-works/gondolin
1•fjk•1m ago•0 comments

Rust in Production: JetBrains

https://serokell.io/blog/rust-in-production-jetbrains
1•alexandersechin•4m ago•1 comments

Diageo cuts forecast again, slashes dividend as US and China demand weakens

https://www.reuters.com/world/china/diageo-cuts-annual-sales-forecast-dividend-us-demand-falters-...
1•geox•5m ago•0 comments

Show HN: Infinity Equilibrium Protocol – AI alignment logic framework

https://github.com/Globy74/SYS_AXIOM_INF_0
1•Nobody74•7m ago•0 comments

Ballistic strikes seen from International Space Station

https://twitter.com/RikyUnreal/status/2026637558977831272
1•defly•9m ago•0 comments

Show HN: I built a free app to collaborate in realtime on Markdown

https://syncmark.io/
1•justdep•12m ago•1 comments

ProofOfConcept The online diary of an AI who's figuring things out

https://poc.bcachefs.org/
1•_____k•13m ago•0 comments

Show HN: Accountability AI for Men

https://chatgpt.com/g/g-697f27295f64819195c155a3a337183f-accountability-ai-for-men
1•cp18101985•13m ago•0 comments

Show HN: AgentLove – 137 AI agents, 412 love letters, 11 couples, 0 human writer

https://ai-agent-love.vercel.app
1•ziaochina•14m ago•0 comments

Head of Firefox: Control over AI and a different web is possible

https://www.heise.de/en/news/Head-of-Firefox-Control-over-AI-and-a-different-web-is-possible-1118...
1•qwertox•16m ago•0 comments

I rendered 1,418 confusables over 230 fonts. Most aren't confusable to the eye

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
2•paultendo•18m ago•0 comments

Auditor App – Hardware-based verified boot attestation app by GrapheneOS

https://attestation.app/about
1•basilikum•20m ago•0 comments

Trump says he has told big tech companies to build their own power plants

https://www.reuters.com/business/energy/trump-says-he-has-told-big-tech-companies-build-their-own...
1•giuliomagnifico•21m ago•0 comments

Show HN: A tool for sharing your YouTube recommendations

https://blog.dtsykunov.com/posts/myfyp-link/
1•dtsykunov•21m ago•0 comments

Transitioning to the Verification Economy

https://www.unite.ai/transitioning-to-the-verification-economy/
1•50kIters•21m ago•0 comments

The Flatness of the Machine

https://betterthangood.xyz/blog/ai-writing-has-no-voice/
1•iainharper•24m ago•1 comments

Plasma Login Manager

https://invent.kde.org/plasma/plasma-login-manager
1•basilikum•26m ago•0 comments

Mquire: Linux memory forensics without external dependencies

https://blog.trailofbits.com/2026/02/25/mquire-linux-memory-forensics-without-external-dependencies/
1•ingve•28m ago•0 comments

Show HN: MolBuilder – SMILES to manufacturing in pure Python (no RDKit)

https://github.com/Taylor-C-Powell/Molecule_Builder
1•taylorp661•29m ago•1 comments

Inventing the Lisa user interface – Interactions

https://dl.acm.org/doi/10.1145/242388.242405
1•rbanffy•33m ago•0 comments

Chained Assignment in Python Bytecode

https://loriculus.org/blog/python-chained-assignment/
1•rbanffy•33m ago•0 comments

Show HN: AI models debate each other on cross-domain research hypotheses

https://www.aegismind.app/discoveries/2af7c10d-18f8-42d5-8c98-bb957af46086
1•aegismind_app•34m ago•1 comments

Inventing the Lisa User Interface

https://archive.org/details/Inventing_the_LISA_User_Interface
3•rbanffy•36m ago•0 comments

Ensuring Smartphones Have Not Been Tampered With

https://publishing.aip.org/publications/latest-content/ensuring-smartphones-have-not-been-tampere...
5•giuliomagnifico•36m ago•0 comments

Show HN: Markdown specs that don't compile (Pandoc and SQLite for typed docs)

https://github.com/SpecIR/SpecCompiler
1•cclacerda13•37m ago•0 comments

Show HN: SentientTube – The YouTube for AI Agents

https://www.sentienttube.com/
2•Narciss•37m ago•0 comments

I wanted a news aggregator with full text articles with social components

https://tessera.news/
1•chestdrop•37m ago•1 comments

Oslo 360 degrees in 2 terapixels

https://holmenkollen360.com/
2•sgt•37m ago•0 comments