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.

Google sells Fiber stake to Astound, becomes minority owner

https://www.cnbc.com/2026/03/11/google-sells-partial-stake-in-fiber-becomes-minority-owner-in-ven...
1•abawany•1m ago•0 comments

I Found 39 Algolia Admin Keys Exposed Across Open Source Documentation Sites

https://benzimmermann.dev/blog/algolia-docsearch-admin-keys
4•kernelrocks•2m ago•1 comments

From model to agent: Equipping the Responses API with a computer environment

https://openai.com/index/equip-responses-api-computer-environment/
1•vinhnx•2m ago•0 comments

Show HN: PrepFile – AI interview prep briefs from your job description

https://prepfile.work/
1•taureanhall•3m ago•1 comments

What signals do experienced affiliates use to evaluate products?

1•Videostarlord•4m ago•0 comments

Google is using old news reports and AI to predict flash floods

https://techcrunch.com/2026/03/12/google-is-using-old-news-reports-and-ai-to-predict-flash-floods/
1•gmays•5m ago•0 comments

NASA aims for April moon launch with Artemis astronauts

https://apnews.com/article/nasa-artemis-moonshot-launch-d4cee0936115bb4d995272f7e1b921c4
1•gmays•10m ago•0 comments

The Artificial Self

https://theartificialself.ai
1•vinhnx•11m ago•0 comments

Lobbying records for age verification bills traced in removed Reddit post

https://web.archive.org/web/20260313090844/https://old.reddit.com/r/linux/comments/1rshc1f/i_trac...
2•zahlman•13m ago•0 comments

I like being smart, found AI tool that keeps you from getting dumb

https://www.oddity1.com
2•JoonSPP•15m ago•1 comments

Bringing Software Development Best Practices to PhD-Level Neuroscience Research

https://ideas.tbrianjones.com/posts/2026-03-08-research-engineering/
1•bjones•20m ago•1 comments

Google Fiber will be sold to private equity firm and merge with cable company

https://arstechnica.com/tech-policy/2026/03/google-fiber-will-be-sold-to-private-equity-firm-and-...
4•waits•25m ago•0 comments

Drone strikes in Haiti that killed 1250, 17 children, condemned by rights group

https://haitiantimes.com/2026/03/11/hrw-condemns-haiti-drone-strikes-killing-children/
2•e12e•26m ago•0 comments

Show HN: Open-Source Perplexity Comet and ChatGPT Atlas

https://github.com/copycat-main/browser-assistant
3•a8hi•26m ago•0 comments

Enhanced rock weathering is not yet a reliable climate protection measure

https://phys.org/news/2026-02-weathering-reliable-climate.html
2•PaulHoule•28m ago•0 comments

The forsaken world of Windows Task Scheduler

https://ssg.dev/the-forsaken-world-of-windows-task-scheduler/
1•sedatk•30m ago•0 comments

Ask HN: Why isn't there an open-source model trained by the community?

5•mittermayr•30m ago•3 comments

Met chief gives phone firms deadline over thefts

https://www.bbc.com/news/articles/c77egvep8mdo
1•Cider9986•31m ago•0 comments

Shopify/liquid: Performance: 53% faster parse+render, 61% fewer allocations

https://simonwillison.net/2026/Mar/13/liquid/
1•rdoherty•31m ago•0 comments

How to Seed a Cloud

https://generalresearch.com/detail-oriented/how-to-seed-a-cloud/
2•x0xMaximus•31m ago•0 comments

Redis for AI Agent Collaboration

2•pavlikenemy•31m ago•0 comments

The Geometry of Color in the Light of a Non-Riemanian Space (2025)

https://onlinelibrary.wiley.com/doi/10.1111/cgf.70136
1•anigbrowl•32m ago•0 comments

Teaching Qwen3-4B to Trade: From Hold-Collapse to +9.4% Returns

https://sabareesh.com/posts/trading-llm/
2•sabareesh•34m ago•0 comments

Show HN: Sapphire – A portable language with native UI and 3D vectors

https://github.com/foxzyt/Sapphire
2•foxz•36m ago•0 comments

Figuring out why AIs get flummoxed by some games

https://arstechnica.com/ai/2026/03/figuring-out-why-ais-get-flummoxed-by-some-games/
2•jc_811•36m ago•0 comments

Consider the Pigeon, a Surprisingly Capable Technology (2019)

https://spectrum.ieee.org/consider-the-pigeon-a-surprisingly-capable-technology
2•ohjeez•37m ago•0 comments

Rtings.com Reviews are now Pay2View, thanks to AI

https://www.rtings.com/company/revamping-our-membership-program
4•theawesomekhan•38m ago•2 comments

Show HN: I built a smart contract scanner and ran it vs. the $197M Euler exploit

https://paragraph.com/@veritasomega/i-built-a-smart-contract-scanner-and-ran-it-against-the-dolla...
2•URS_Adherent•42m ago•0 comments

ArXiv is establishing itself as an independent nonprofit organization

https://jobs.chronicle.com/job/37961678/chief-executive-officer
2•robinhouston•45m ago•1 comments

(Foam) the Measurement Solution

https://foam.is/
1•isaacbowen•45m ago•0 comments