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

Show HN: DynamoSQL – I made a SQL query engine for DynamoDB

https://dynamosql.com/
1•cammasmith•49s ago•0 comments

Forensic analysis of 37GB data loss caused by Cursor AI Agent

https://github.com/kotarimorm/-Report-AI-coding-agent-programmatically-bypassing-OS-security-poli...
1•GRAY_WHALE_CO•2m ago•0 comments

A sleek, wearable airbag for cyclists is nearly here

https://www.theverge.com/gadgets/911540/a-sleek-wearable-airbag-for-cyclists-is-nearly-here
1•JeanKage•2m ago•0 comments

Dual-Boot an Apple Silicon Mac in Sequoia or Tahoe

https://eclecticlight.co/2026/04/14/dual-boot-an-apple-silicon-mac-in-sequoia-or-tahoe/
1•chmaynard•2m ago•0 comments

Cloudflare Incident – Increased HTTP 5xx Errors

https://www.cloudflarestatus.com/incidents/213v4v7s7m97
1•palmeida•3m ago•0 comments

Dermcidin has antiviral activity and protects against influenza

https://www.pnas.org/doi/10.1073/pnas.2424461123
1•geox•3m ago•0 comments

Show HN: Hotel MCP server for cash and points search/booking (free)

https://www.gondola.ai/mcp
1•skyler1537•5m ago•0 comments

Can you pass the reverse Turing test?

https://nataliercargill.substack.com/p/can-you-pass-the-reverse-turing-test
1•eatitraw•6m ago•0 comments

Man suspected of Molotov attack Sam Altmans home charged with attempted murder

https://www.theregister.com/2026/04/14/altman_attempted_murder/
1•Bender•7m ago•0 comments

Linux 7.0 debuts as Linus Torvalds ponders AI's bug-finding powers

https://www.theregister.com/2026/04/13/linux_kernel_7_releaseed/
2•Bender•8m ago•0 comments

Measles takes a plane to Idaho, which has worst vaccination rate in US

https://arstechnica.com/health/2026/04/airport-measles-case-reported-in-idaho-state-with-lowest-v...
2•Bender•9m ago•0 comments

My First Fight

https://dschorno.wordpress.com/2026/04/10/my-first-fight/
1•eatitraw•12m ago•0 comments

Surf

https://about.surf.social/
1•bookofjoe•16m ago•0 comments

Show HN: Manex Hub – private AI research memory, on-device

https://manex.app/
2•krcnow•17m ago•0 comments

Show HN: Get Hired with AI, a free book I wrote on using LLMs for a job search

https://www.careervectorhq.com/book/get-hired-with-ai.html
1•dawie•17m ago•1 comments

Time for Scrutiny: Getting to the Bottom of Daylight Saving Time and Time Zones

https://fixdst.com/?rdt_cid=5846299599488362810
1•surprisetalk•17m ago•0 comments

JSON-complete data formats and programming languages

https://lemire.me/blog/2025/12/20/json-complete-data-format-and-programming-languages/
1•surprisetalk•17m ago•0 comments

Noise

https://homosabiens.substack.com/p/noise
1•surprisetalk•17m ago•0 comments

Which of these two arcades is the "world largest"

https://arstechnica.com/gaming/2026/03/which-of-these-two-arcades-is-the-world-largest-and-does-i...
1•surprisetalk•18m ago•1 comments

Tracking takedown notices filed by UK Biobank

https://biobank.rocher.lc
1•Cynddl•19m ago•0 comments

Stanford HAI Index Report 2026

https://hai.stanford.edu/ai-index/2026-ai-index-report
1•giuliomagnifico•20m ago•0 comments

Durable Objects in Dynamic Workers: Give each AI-generated app its own database

https://blog.cloudflare.com/durable-object-facets-dynamic-workers/
1•TheTaytay•20m ago•0 comments

MCP – It's Hot, but Will It Win? (2025)

https://hardcoresoftware.learningbyshipping.com/p/230-mcp-its-hot-but-will-it-win
2•tosh•22m ago•0 comments

Comad World v0.3.0 – your reading compounds into your tools

https://github.com/kinkos1234/comad-world
1•comadj•22m ago•0 comments

OpenAI Introduction (2015)

https://openai.com/index/introducing-openai/
1•downbad_•24m ago•1 comments

Colossal Pressure: Russia targets university students for military recruitment

https://www.cnn.com/2026/04/14/europe/russia-students-military-recruitment-campaign-intl-cmd
3•breve•24m ago•0 comments

CorePage: I built an AI start page to replace my tabs (notes, news, tools, chat)

https://corepage.ai/
1•devrimco•25m ago•1 comments

Moats Don't Work When Bridges Are Free

https://www.dustinalper.com/blog/bridges-are-free
2•dalps•25m ago•1 comments

Completion is a Substrate, not a UI

https://www.chiply.dev/post-icr-primer
1•chiply•26m ago•0 comments

Show HN: Valthrex – Institutional-grade crypto portfolio command deck

https://valthrex.com
1•Phantom33•26m ago•1 comments