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: Autoschematic is a new infra-as-code tool built on reversible computing

https://github.com/autoschematic-sh/autoschematic
1•pfnsec•21s ago•0 comments

Altar of the Demo Gods

https://demogoats.com/
1•mmh0000•51s ago•0 comments

The Reason Windows Hate Is Exploding: Not Just the UI–It's the End of PC [video]

https://www.youtube.com/watch?v=e7a89ZYcTo8
1•tartoran•1m ago•0 comments

Reducing Europe's nuclear energy sector was 'strategic mistake', EU chief says

https://www.reuters.com/sustainability/boards-policy-regulation/reducing-nuclear-energy-strategic...
1•mirzap•1m ago•0 comments

The Emotional Hardship of Leaving Your Company

https://12gramsofcarbon.com/p/founders-guide-so-youre-leaving-your
1•theahura•2m ago•1 comments

Show HN: A2Apex – Test, certify, and discover trusted A2A agents

https://a2apex.io
1•Hauk307•3m ago•0 comments

Nothing kills a blog like a viral post

https://elliot.my/nothing-kills-a-blog-like-a-viral-post/
1•frizlab•3m ago•0 comments

Meet the Americans withholding their federal income tax to protest

https://www.theguardian.com/us-news/2026/mar/11/trump-income-tax-protest
1•righthand•3m ago•0 comments

What Happened When I Began to Speak Welsh

https://yalereview.org/article/dan-fox-learning-welsh
1•6LLvveMx2koXfwn•4m ago•0 comments

Beijing's Real Energy Agenda

https://nypost.com/2026/03/11/opinion/dont-buy-green-china-hype-heres-beijings-real-energy-agenda/
1•mpweiher•6m ago•0 comments

Show HN: NatShell – Local-first natural language shell (no cloud, no API keys)

https://github.com/Barent/natshell
1•barent•9m ago•1 comments

Personal AI Agents Like OpenClaw Are a Security Nightmare

https://blogs.cisco.com/ai/personal-ai-agents-like-openclaw-are-a-security-nightmare
3•yunseo47•9m ago•0 comments

Gitzy is now on TestFlight A modern, native iOS Git client

https://testflight.apple.com/join/SB16NCfr
1•marc0janssen•11m ago•1 comments

Another DOGE staffer explaining how he flagged grants at NEH for "DEI"

https://bsky.app/profile/404media.co/post/3mgupw4v3ak2j
9•doener•11m ago•0 comments

Elfina–A multi-architecture ELF loader supporting x86 and x86-64 binaries

https://github.com/iss4cf0ng/Elfina
1•iss4cf0ng•13m ago•0 comments

The future of AI is on-prem

https://www.palantir.com/sovereignaios/
2•taubek•14m ago•1 comments

Show HN: Run Hugging Face models with a single command

https://www.llmpm.co/
2•dataversity•14m ago•2 comments

Claude now creates interactive charts, diagrams and visualizations

https://claude.com/blog/claude-builds-visuals
4•adocomplete•14m ago•0 comments

Analysis of 203M Trades on Kalshi

https://read.technically.dev/p/whats-a-prediction-market
3•sschnei8•16m ago•1 comments

Jeriko – an AI agent that runs directly inside your OS

https://www.jeriko.ai/
1•Khaleel7337•16m ago•2 comments

Software Proprioception – Unsung

https://unsung.aresluna.org/software-proprioception/
2•tambourine_man•17m ago•0 comments

Ask HN: Gemini Pro Plan Quota Reductions

1•earlyriser•17m ago•1 comments

Goldman banker: Clients 'glad' for 'distraction' of Iran war

https://www.telegraph.co.uk/business/2026/03/11/goldman-banker-clients-glad-for-distraction-of-ir...
2•abdelhousni•18m ago•1 comments

Punctum books is an independent open-access publisher

https://punctumbooks.com/
1•robtherobber•18m ago•0 comments

Shopify.com Is Down

https://www.shopify.com/
4•hankmander•19m ago•0 comments

Pirates of Silicon Valley

https://archive.org/details/piratesofsiliconvalley_201908
4•baal80spam•19m ago•0 comments

The Sound of AI Music

https://hackerfactor.com/blog/index.php?/archives/1090-The-Sound-of-AI-Music.html
1•speckx•21m ago•0 comments

Silicon Valley's New Obsession: Watching Bots Do Their Grunt Work

https://www.wsj.com/tech/ai/ai-bots-claude-openclaw-285ac816
2•stefap2•21m ago•0 comments

25 Years of ADSL Speed

https://brainbaking.com/post/2026/03/25-years-of-adsl-speed/
3•Brajeshwar•22m ago•0 comments

Duolingo Is Talking to ByteDance: Cracking the Pangle SDK's Encryption

https://www.buchodi.com/your-duolingo-is-talking-to-bytedance-cracking-the-pangle-sdks-encryption/
1•ibobev•22m ago•0 comments