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

Google discontinuing the dark web report

https://support.google.com/websearch/answer/16767242?hl=en&co=GENIE.Platform%3DDesktop
1•stefap2•1m ago•0 comments

People who stop weight loss drugs return to original weight within year

https://www.theguardian.com/society/2025/may/14/people-who-stop-weight-loss-drugs-return-to-origi...
1•paulpauper•6m ago•1 comments

Simplifying the build process for vst3-rs

https://micahrj.github.io/posts/vst3/
1•birdculture•6m ago•0 comments

Show HN: HTTP Request tool made for devs

https://github.com/PortableSheep/RawRequest
1•portablesheep•7m ago•0 comments

Naming Your Unit Tests: It Should vs. Given/When/Then

https://markus.oberlehner.net/blog/naming-your-unit-tests-it-should-vs-given-when-then
1•Alupis•8m ago•0 comments

The science of why your body resists weight loss

https://www.nationalgeographic.com/health/article/why-most-people-regain-weight
1•paulpauper•9m ago•0 comments

The lucrative economics of expert witnesses

https://thehustle.co/the-lucrative-economics-of-expert-witnesses
2•paulpauper•10m ago•0 comments

Complete spatial safety for C and C++ using CHERI capabilities

https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-949.html
1•fanf2•10m ago•1 comments

Multilingualism and Extending Healthspan

https://erictopol.substack.com/p/multilingualism-and-extending-healthspan
1•simonebrunozzi•13m ago•1 comments

TwisterJS – Tiny Modules for Indie Game Developers

https://twisterjs.com/
1•heroku•15m ago•0 comments

How We Found Out About COINTELPRO

https://monthlyreview.org/articles/how-we-found-out-about-cointelpro/
5•bryanrasmussen•16m ago•0 comments

How Pfizer ended up passing on my GLP-1 work back in the early '90s

https://www.statnews.com/2024/09/09/glp-1-history-pfizer-john-baxter-jeffrey-flier-calbio-metabio/
3•rajlego•16m ago•0 comments

Contact the ISS

https://www.ariss.org/contact-the-iss.html
1•logikblok•17m ago•0 comments

JavaScript creator warns against "rushed web UX over native" for Windows 11

https://www.windowslatest.com/2025/12/27/javascript-creator-warns-against-rushed-web-ux-over-nati...
2•thunderbong•23m ago•0 comments

Show HN: HookVerify – Webhook delivery visibility for production systems

https://hookverify.com
1•phntmdz•25m ago•0 comments

CVE-2025-68260: rust_binder: fix race condition on death_list

https://lore.kernel.org/linux-cve-announce/2025121614-CVE-2025-68260-558d@gregkh/T/#u
1•Khaine•28m ago•0 comments

In 1995, a Netscape employee wrote a hack in 10 days that now runs the Internet

https://arstechnica.com/gadgets/2025/12/in-1995-a-netscape-employee-wrote-a-hack-in-10-days-that-...
4•taubek•30m ago•0 comments

Show HN: Runtime data provenance for AI pipelines

https://github.com/clay-good/origin
1•hireclay•30m ago•0 comments

A complete implementation of bash in TypeScript designed to be used by AI agents

https://github.com/vercel-labs/just-bash
3•tilt•35m ago•0 comments

Say No to Palantir in the NHS

https://notopalantir.goodlawproject.org/email-to-target/stop-palantir-in-the-nhs/
6•_____k•37m ago•0 comments

Show HN: LLM-powered data extraction from messy spreadsheets

https://github.com/mehdigmira/tablereader
1•mehdig10•37m ago•0 comments

VS Code Local Extensions

https://hubelbauer.net/vscode-local-extensions/
3•tomashubelbauer•37m ago•0 comments

Richard Stallman at the First Hackers Conference in 1984 [video]

https://www.youtube.com/watch?v=Hf2pfzzWPYE
4•schmuckonwheels•37m ago•0 comments

Show HN: 3D Factorization Diagrams

https://suvakov.github.io/vibes/3DFactorizationDiagrams/index.html
1•msuvakov•37m ago•0 comments

Show HN: MCP server for vibration-based predictive maintenance

https://github.com/LGDiMaggio/predictive-maintenance-mcp
1•lgdimaggio•39m ago•1 comments

How to Deconstruct Almost Anything My Postmodern Adventure

https://www.fudco.com/chip/deconstr.html
2•_____k•39m ago•0 comments

Ask HN: I'm bored, what should I build

2•SpyCoder77•41m ago•1 comments

Port of Statistical Rethinking (2nd edition) code to Julia

https://shmuma.github.io/rethinking-2ed-julia/
2•samuel2•42m ago•0 comments

Expense splitter – an MCP server for splitting group expenses

https://github.com/vnaveen-mh/expense-splitter
1•vnaveen9296•43m ago•0 comments

An Ounce of Silver Is Now Worth More Than a Barrel of Oil

https://www.wsj.com/finance/commodities-futures/an-ounce-of-silver-is-now-worth-more-than-a-barre...
4•bookofjoe•45m ago•3 comments