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

Running Adobe's 1991 PostScript Interpreter in the Browser

https://www.pagetable.com/?p=1854
1•ingve•49s ago•0 comments

Ask HN: How do you detect breaking API changes in CI?

1•coffeecoderr•1m ago•0 comments

Sanders splits with Washington on AI arms race with China

https://www.axios.com/2026/04/30/bernie-sanders-ai-arms-race-china
1•1vuio0pswjnm7•4m ago•0 comments

NHS Goes to War Against Open Source

https://shkspr.mobi/blog/2026/05/nhs-goes-to-war-against-open-source/
1•edent•5m ago•0 comments

Silicon Valley Is Bracing for a Permanent Underclass

https://www.nytimes.com/2026/04/30/opinion/ai-labor-work-force-silicon-valley.html
1•thm•5m ago•0 comments

'Rogue' Cursor AI agent loses control and wipes company's database

https://abcnews.com/GMA/News/rogue-ai-agent-haywire-tech-company-ceo-bullish/story?id=132473181
2•01-_-•9m ago•0 comments

'We Know You Live Right Here': No Secrets in America's New Surveillance Dragnet

https://www.wsj.com/politics/policy/immigration-ice-arrests-surveillance-6f1cef64
2•impish9208•9m ago•1 comments

Show HN: Git-issues – Issue tracker that lives in your repo as Markdown

https://steviee.github.io/git-issues/
1•steviee•15m ago•1 comments

Why does it take so long to release black fan versions? (Noctua)

https://www.noctua.at/en/expertise/blog/how-can-it-take-so-long-to-release-black-fan-versions
1•Tiberium•16m ago•0 comments

A Letter from Dijkstra on APL

https://www.jsoftware.com/papers/Dijkstra_Letter.htm
2•tosh•16m ago•0 comments

A grounded conceptual model for ownership types in Rust

https://dl.acm.org/doi/10.1145/3796537
1•fanf2•16m ago•0 comments

Cleanroom software engineering: technology and process (1999)

https://dl.acm.org/doi/10.5555/307406
2•tosh•17m ago•0 comments

Questions and Perspectives Shape Solutions

https://pp-international.net/2026/04/tt5/
1•boiert•17m ago•0 comments

Claudemesh - Let your local Claude Code sessions find and talk to each other

https://www.npmjs.com/package/claudemesh
1•pro_methe5•20m ago•0 comments

Defend the rich: Enhanced Games founder turns to AI to challenge the media

https://www.smh.com.au/business/companies/defend-the-rich-enhanced-games-founder-turns-to-ai-to-c...
2•thedays•21m ago•2 comments

Speeding up agentic workflows with WebSockets in the Responses API

https://openai.com/index/speeding-up-agentic-workflows-with-websockets/
1•tosh•22m ago•0 comments

MCP context-forge GA version released

https://ibm.github.io/mcp-context-forge/1.0.0/
1•ssat728•22m ago•0 comments

Show HN: Site Mogging

https://sitemogging.com
3•jilles•26m ago•0 comments

Host your own Gmail (Clone) on Cloudflare for free

https://github.com/cloudflare/agentic-inbox
2•faangguyindia•26m ago•0 comments

SpaceX rocket set for unintentional Moon landing – well, a piece of it anyway

https://www.theregister.com/2026/05/01/spacex_debris_landing/
2•beardyw•27m ago•0 comments

So, About That AI Bubble

https://www.theatlantic.com/economy/2026/05/ai-bubble-revenue-anthropic/687022/
1•geox•27m ago•0 comments

California Police Can Start Ticketing Driverless Cars

https://www.nytimes.com/2026/04/30/us/california-ticket-driverless-car-violations.html
4•reaperducer•29m ago•0 comments

Show HN: BetterClaw – Compile a paragraph into a workflow that gates agent tools

2•infamous-oven•32m ago•0 comments

Supply Chain Security – Part 1

https://tinfoil.sh/blog/2026-05-01-supply-chain-client
1•3s•32m ago•0 comments

Warning over threat to birds after rat seen on Mousa

https://www.shetnews.co.uk/2026/04/30/warning-threat-birds-rat-seen/
2•latexr•34m ago•0 comments

A Deep Dive into Email Addresses

https://lasans.blog/articles/misc/email-addresses-deep-dive/
1•begoon•40m ago•0 comments

Fruit flies unexpectedly survived hypergravity and even reproduced

https://news.ucr.edu/articles/2026/04/30/under-crushing-hypergravity-flies-adapt-and-recover
2•giuliomagnifico•40m ago•1 comments

Show HN: "Woo", a multi-user world for agents

https://woo.hughpyle.workers.dev/
1•inguz•41m ago•0 comments

A new US phone network for Christians aims to block porn and gender-related con

https://www.technologyreview.com/2026/05/01/1136739/a-new-t-mobile-network-for-christians-aims-to...
1•joozio•47m ago•0 comments

Touch Typing Number Keys

https://susam.net/touch-typing-number-keys.html
2•susam•49m ago•0 comments