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

Writing a Superfast SPSC Queue

https://abhikja.in/blog/2025-12-07-get-in-line/
1•abhikjain360•25s ago•0 comments

Do you think this link-in-bio service is reliable?

https://www.lnkr.ink/
3•andytriescoding•1m ago•1 comments

When Apple's Terms and Conditions Ambushed Me on the Toilet

https://victorantos.com/posts/when-apples-terms-and-conditions-ambushed-me-on-the-toilet/
1•victorbuilds•2m ago•0 comments

RubyGems 4.0.1 and Bundler 4.0.1 Released

https://blog.rubygems.org/2025/12/09/4.0.1-released.html
1•unripe_syntax•3m ago•0 comments

The Eternal Return of Abstraction: Why Programming Was Never About Code

https://medium.com/generative-ai/the-eternal-return-of-abstraction-why-programming-was-never-abou...
1•d2clon•4m ago•0 comments

Building an Audio Player with StimulusJS

https://avohq.io/blog/building-an-audio-player-with-stimulusjs
2•adrianthedev•5m ago•0 comments

Cursed circuits #2: switched capacitor lowpass

https://lcamtuf.substack.com/p/cursed-circuits-2-switched-capacitor
2•signa11•7m ago•0 comments

'creepy' digital billboards that can track viewers' responses

https://www.theguardian.com/world/2025/dec/09/uk-campaigners-condemn-digital-billboards-track-vie...
4•bloke_zero•10m ago•0 comments

Expanding Age Assurance to Australia

https://old.reddit.com/r/RedditSafety/comments/1phjf63/expanding_age_assurance_to_australia/
2•nomilk•11m ago•0 comments

Xkcd 1313: Regex Golf (2014)

https://nbviewer.org/url/norvig.com/ipython/xkcd1313.ipynb
1•todsacerdoti•12m ago•0 comments

Show HN: DeChecker – Detect AI-generated text

https://dechecker.ai
1•GrammarChecker•14m ago•0 comments

How to Scale Development Without Hiring Full-Time Engineers?

https://www.indiehackers.com/post/how-to-scale-development-without-hiring-full-time-engineers-O23...
2•plakhlani2•15m ago•0 comments

Madison Beer and Justin Herbert Timeline

https://figyj.blogspot.com/2025/12/madison-beer-justin-herbert-timeline.html
1•FIGYJ•16m ago•0 comments

The rise of AI and why it's freaking me out

https://paeulini.com/so/20PhQi9nY
1•saeedesmaili•16m ago•0 comments

Rewriting our documentation using Coding Agents

https://endor.dev/blog/rebuilding-our-docs
2•ridruejo•16m ago•0 comments

Ao3dle

https://ao3dle.com/
1•quchao•17m ago•2 comments

LiveView in Django is easy now

https://django-liveview.andros.dev/quick-start/
2•andros•18m ago•0 comments

A prototype of an event driven JavaScript framework

https://github.com/patrickjh/ForeignKeyFramework
2•pianopatrick•18m ago•1 comments

Is Scaled Agile the Problem, or Are We Implementing It Wrong?

https://agileglow.io/
2•thetruthinside•21m ago•2 comments

Dagger: Define software delivery workflows and dev environments

https://dagger.io/
1•ahamez•22m ago•0 comments

Composite metal foam could lead to safer hazmat transportation

https://techxplore.com/news/2025-11-composite-metal-foam-safer-hazmat.html
1•PaulHoule•23m ago•0 comments

The RAMpocalypse Is Nigh

https://taoofmac.com/space/links/2025/12/05/1330
2•rcarmo•24m ago•0 comments

Notes for November 23–December 8

https://taoofmac.com/space/notes/2025/12/08/2000
1•rcarmo•24m ago•0 comments

The Decline of the Software Drafter?

https://benjamincongdon.me/blog/2025/12/08/The-Decline-of-the-Software-Drafter/
1•ingve•27m ago•0 comments

ICEBlock Was Purged from the App Store. Now Its Creator Is Suing Trump

https://slate.com/technology/2025/12/iceblock-app-lawsuit-pam-bondi-trump-joshua-aaron-ice.html
3•aestetix•30m ago•0 comments

Show HN: Starsalign.eu

https://starsalign.eu
1•pheelicks•32m ago•0 comments

When Good /Bins Go Bad: Remote Pre-Authentication Overflow in LLDB's Debugserver

https://objective-see.org/blog/blog_0x83.html
2•ingve•36m ago•0 comments

I built FeedBugs.com – a simple security scanner for solo devs

https://www.feedbugs.com/
1•vignzviki•37m ago•2 comments

Podcast: Interview with Kent Overstreet (Bcachefs)

https://linuxunplugged.com/644
1•teekert•43m ago•0 comments

Spiromorph Port to WebGL

https://github.com/ReVHeaDRaZ/webgl-Spiromorph
1•mickjc750•48m ago•1 comments