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.

Claude Design(ed) Numble.today

1•shauntrennery•1m ago•0 comments

Ask HN: Has AI impacted entry-level programming skills?

1•alejohausner•4m ago•0 comments

Trial by Fire: Crisis Engineering

https://www.oreilly.com/radar/trial-by-fire-crisis-engineering/
1•rmason•4m ago•0 comments

Show HN: A font that auto-translates Chinese

https://bryanhu.com/chinese-font/
2•thatxliner•5m ago•0 comments

suckmore.org – Software that sucks more

https://suckmore.org/
1•basilikum•7m ago•0 comments

Why do language models feel worse even as benchmarks improve? [pdf]

https://huggingface.co/datasets/realitydriftproject/semantic-fidelity-framework/blob/main/SFL-02_...
1•scaledsystems•11m ago•0 comments

LoRa

https://en.wikipedia.org/wiki/LoRa
1•downboots•11m ago•0 comments

Cursor in talks to raise $2B round at valuation of over $50B

https://www.cnbc.com/2026/04/19/cursor-ai-2-billion-funding-round.html
1•tcp_handshaker•11m ago•1 comments

Vim_gym

https://www.vimgym.app/
1•platzhirsch•13m ago•0 comments

Ukraine Has Given Up on Trump

https://www.theatlantic.com/ideas/2026/04/ukraine-trump-us-oil-russia/686854/
5•Bondi_Blue•15m ago•2 comments

Hunting a 34 year old pointer bug in EtherSlip (DOS Networking)

https://www.brutman.com/Adventures_In_Code/EtherSlip_ARP/EtherSlip_ARP.html
1•mbbrutman•15m ago•0 comments

CEOs admit AI had no impact on employment or productivity

https://fortune.com/article/why-do-thousands-of-ceos-believe-ai-not-having-impact-productivity-em...
7•tcp_handshaker•16m ago•2 comments

What early exponential growth can't tell us about runaway processes

1•jamespropp•16m ago•0 comments

Chinese carmaker Seres granted patent for voice-controlled in-car toilet

https://www.drivencarguide.co.nz/news/chinese-carmaker-seres-granted-patent-for-voice-controlled-...
3•billybuckwheat•20m ago•0 comments

Why your AI assistant is suddenly selling to you

https://www.economist.com/business/2026/04/19/why-your-ai-assistant-is-suddenly-selling-to-you
2•vinni2•20m ago•0 comments

Show HN: Auxx.ai – Customer Support CRM (Mix of Attio and N8n)

https://auxx.ai
2•m4rkuskk•23m ago•0 comments

WordPress Security Checklist: 15 Checks That Matter (and 12 That Don't)

https://novaheaven.io/en/novapulse/wordpress-security-checklist-that-matters
1•SephX•31m ago•0 comments

Oasis EXtensible Access Control Markup Language TC FAQ

https://www.oasis-open.org/committees/xacml/faq.php
1•stmw•32m ago•0 comments

AI Agent Traps

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6372438
2•baxtr•33m ago•0 comments

Show HN: Agentjail – Self Hosted Freestyle.sh

https://github.com/bugthesystem/agentjail
1•ziyasal•33m ago•0 comments

Humanoid robot beats human world record in half marathon

https://thenextweb.com/news/humanoid-robot-half-marathon-beijing-world-record
1•hochmartinez•34m ago•1 comments

Apollo 11 code open-sourced by NASA – Command Module and Lunar Module code repos

https://www.tomshardware.com/software/original-apollo-11-code-open-sourced-by-nasa-original-comma...
3•gnabgib•34m ago•2 comments

Chat with any live MCP server iMessage style

https://dialtoneapp.com/top-sites/www.visioforge.com/mcp
2•fcpguru•36m ago•1 comments

Anti-Amyloid Antibodies for Alzheimer: You Already Know

https://www.science.org/content/blog-post/anti-amyloid-antibodies-alzheimer-you-already-know
3•merksittich•38m ago•0 comments

The Ancient Weapons Active in Your Immune System Today

https://www.quantamagazine.org/the-ancient-weapons-active-in-your-immune-system-today-20260415/
3•tzury•39m ago•0 comments

Show HN: Nyx – multi-turn, adaptive, offensive testing harness for AI agents

https://fabraix.com
14•zachdotai•40m ago•4 comments

Psxsplash – Build PlayStation 1 Games in Unity

https://psxsplash.github.io/
2•spicyjpeg•41m ago•0 comments

Show HN: Dewobble – Filter out phantom clicks and mouse jitter

https://github.com/skorotkiewicz/dewobble
2•modinfo•42m ago•0 comments

AI's New Training Data: Your Old Work Slacks and Emails

https://www.forbes.com/sites/annatong/2026/04/16/ais-new-training-data-your-old-work-slacks-and-e...
1•gnabgib•42m ago•0 comments

Independent bookstores make quiet comeback as big chains dominate retail

https://www.theguardian.com/business/2026/apr/19/independent-bookstores-comeback
1•mykowebhn•52m ago•0 comments