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.

Show HN: PostgreSQL for AI – A book on pgvector, RAG, and in-database ML

https://book.zeybek.dev/
1•zeybek•25s ago•0 comments

TurboCast – Turn YouTube videos and articles into AI podcasts

https://turbocast.net/
1•Jasonleo•1m ago•1 comments

More kids, teens injured in e-bike wrecks, study finds

https://medicalxpress.com/news/2026-03-kids-teens-bike.html
1•WaitWaitWha•4m ago•0 comments

Coasty.ai Is Generally Available

1•PrateekJ17•4m ago•0 comments

Hello Developer: March 2026

https://developer.apple.com/news/?id=zmqipz05
1•surprisetalk•8m ago•0 comments

Iran War, Taiwanese Chips, and a Blueprint for Species Survival

https://talking-about-ai.com/the-morning-everything-connected.html
1•planobilly•8m ago•0 comments

Maybe There's a Pattern Here?

https://dynomight.net/pattern/
1•surprisetalk•9m ago•0 comments

What Python's asyncio primitives get wrong about shared state

https://www.inngest.com/blog/no-lost-updates-python-asyncio
2•goodoldneon•11m 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•WaitWaitWha•11m ago•0 comments

JWST reveals extreme temperature shifts in Jupiter's auroral footprints

https://phys.org/news/2026-03-jwst-reveals-secrets-jupiter-northern.html
1•epicprogrammer•12m ago•0 comments

An Evolved Antenna for Deployment on NASA's Space Technology 5 Mission [pdf]

https://www.genetic-programming.org/gecco2004hc/lohn-paper.pdf
1•boltzmann-brain•14m ago•0 comments

Show HN: Extracted tech from 5.6M sites (plus versions) and made some dashboards

https://versiondb.io/technology/php/
1•_chse_•16m ago•0 comments

AI Coding Startup Cursor Hits $2B Annual Sales Rate

https://www.bloomberg.com/news/articles/2026-03-02/cursor-recurring-revenue-doubles-in-three-mont...
2•gmays•17m ago•0 comments

Hybrid Images: Principles and Implementation

https://tigercosmos.xyz/en/post/2020/04/cv/hybrid-image/
1•thunderbong•18m ago•0 comments

Show HN: A Combinator – A parody YC for AI agents ("Make something agents want")

https://fireflysentinel.github.io/a-combinator/
3•firef1y1203•23m ago•1 comments

Show HN: Open dataset of real-world LLM performance on Apple Silicon

https://devpadapp.com/anubis-oss.html
1•uncSoft•23m ago•1 comments

Building My Own Canva over the Weekend

https://catalinionescu.dev/ai-agent/building-my-own-canva-over-the-weekend/
2•cionescu1•25m ago•0 comments

"conservation pool" water management could provide a way forward for CO River

https://coloradosun.com/2026/03/04/conservation-pool-path-forward-colorado-river/
1•mooreds•26m ago•0 comments

AI Thoughts

https://jeremymikkola.com/posts/2026_03_04_ai_thoughts.html
2•piinbinary•26m ago•0 comments

Once Upon a Boot - Visual tracing of boot process

https://once-upon-a-boot.github.io/
1•pbou•28m ago•0 comments

Z80 Sans – a disassembler in a font (2024)

https://github.com/nevesnunes/z80-sans
1•pabs3•29m ago•0 comments

Show HN: MarkNote – Local-First Wysiwyg Markdown Editor (Tauri/Rust)

https://marknote.pages.dev/
1•cacao-cacao•29m ago•0 comments

Ytm-player: full-featured YouTube Music player for the terminal

https://github.com/peternaame-boop/ytm-player
1•handfuloflight•31m ago•0 comments

I left work early to get a hug from my wife

https://rxa.me/why/
2•regular-bob•32m ago•0 comments

Jensen Huang says Nvidia is pulling back from OpenAI and Anthropic

https://techcrunch.com/2026/03/04/jensen-huang-says-nvidia-is-pulling-back-from-openai-and-anthro...
4•jnord•33m ago•0 comments

Google Research Language Explorer

https://sites.research.google/languages/language-explorer/
1•gmays•36m ago•0 comments

Show HN: RecruitPhysician – An easier way to find physicians

https://recruitphysician.com/
1•healthtal•38m ago•0 comments

Codex 5.3 (Xhigh) Solved a 6 Month Old Bug in Ghostty

https://twitter.com/mitchellh/status/2029348087538565612
1•dunb•38m ago•0 comments

[satire] Claude Code build my open source project in 5 minutes

https://www.sammystraus.com/#satire-claude-code-build-my-entire-open-source-project-in-5-minutes
2•sammy0910•39m ago•4 comments

Built a tiny edge-based tracker for AI/LLM crawlers on my Astro blog

https://xergioalex.com/blog/tracking-invisible-ai-bot-analytics/
1•xergioalex•41m ago•0 comments