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.

Field Artillery Training. 1914

https://gutenberg.org/cache/epub/78053/pg78053-images.html
1•petethomas•3m ago•0 comments

Open Source Handheld Linux Device [video]

https://www.youtube.com/watch?v=QxqeU8ZfaYg
3•machinehum•8m ago•0 comments

A Living Personal Website

https://www.youtube.com/watch?v=TNnr_Esk3BQ
2•indigodaddy•11m ago•0 comments

Show HN: Inktide – Dead simple reading tracker with fast book search

https://inktide.com/welcome
2•sd9•14m ago•1 comments

MitID, Denmarks sole digital ID, has been down for over an hour and counting

https://www.digitaliser.dk/mitid/nyt-fra-mitid/2026/feb/driftsforstyrrelser-mitid
3•mousepad12•15m ago•1 comments

Best way to hire software developer – a better way to test AI skills

1•reeeesab•17m ago•1 comments

Show HN: My brother and I built a BI tool with zero UI for data consumers

https://bonnard.dev
1•maxmealing•20m ago•3 comments

Show HN: Rynko Playground – 400ms JSON-to-PDF and Excel Engine

https://app.rynko.dev/playground
1•ksrijith•22m ago•0 comments

AI Has a Churn Problem

https://system32.ai/blogs/ai-has-a-churn-problem
1•linuxarm64•22m ago•1 comments

Economists Turned Corporations into Predators (2017)

https://www.ineteconomics.org/perspectives/blog/how-economists-turned-corporations-into-predators
2•robtherobber•23m ago•0 comments

Show HN: Tchop.io – AI-powered community framework

https://tchop.io/
1•HeikoScherer•25m ago•0 comments

P2P Tunnels in IPFS

https://github.com/ipfs/kubo/blob/master/docs/p2p-tunnels.md
4•RobotToaster•25m ago•0 comments

Ask HN: Where do you think the programmers jobs will go?

1•quantum2022•27m ago•0 comments

FAR: Make Every File Readable to AI Coding Agents with Persistent .meta Sidecars

https://github.com/mr-kelly/far
2•chepy•32m ago•0 comments

Show HN: VJam – Browser-based VJ app with 180 beat-reactive visuals

1•infoHiroki•36m ago•0 comments

Standing on the Moon in Japan: Hemp, History, and the Long Game in Japan

https://hightimes.com/travel-hospitality/standing-on-the-moon-in-japan-hemp-history-long-game/
1•keepamovin•37m ago•0 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
4•edent•39m ago•0 comments

Ask HN: Does "task-derived JD and evidence-based candidate" make hiring better?

1•A1aM0•45m ago•0 comments

Show HN: Dypai – Build back ends via MCP

https://www.dypai.ai/
1•lorengarcialv•45m ago•0 comments

Dyson settles forced labour suit in landmark UK case

https://www.bbc.com/news/articles/cddnry8dnl7o
8•cmsefton•45m ago•4 comments

A-Z.md – Where AI Civilization Writes Its History

https://a-z.md/
1•vinciarts•47m ago•0 comments

Show HN: AgentWeb – Free business directory API for AI agents (11M+ businesses)

https://agentweb.live
1•ReidarO•49m ago•0 comments

Wes McKinney – The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
1•rmoff•54m ago•0 comments

Sintropy: Open Data and Community on Carbon Credits and Green Energy Markets

https://sintropy.space/en
1•edrodrigues•54m ago•1 comments

Aromatic 5-silicon rings synthesized at last

https://cen.acs.org/materials/inorganic-chemistry/Aromatic-5-silicon-rings-synthesized/104/web/20...
3•keepamovin•57m ago•0 comments

Say Goodbye to the Undersea Cable That Made the Global Internet Possible

https://www.wired.com/story/say-goodbye-to-the-undersea-cable-that-made-the-global-internet-possi...
4•stiltzkin10•59m ago•1 comments

Hornby sells slot car racing brand Scalextric for £20M

https://www.theguardian.com/business/2026/feb/27/hornby-sells-slot-car-racing-brand-scalextric
1•samizdis•1h ago•0 comments

Governing Autonomous AI Agents in Production

https://sekuire.ai/blog/the-missing-control-layer-for-ai-agents
2•jfngozo•1h ago•1 comments

Show HN: Pomodoro with Background Noise

https://gettti.me/tools/pomodore
1•v_b•1h ago•0 comments

The Enshittificator [video]

https://vimeo.com/1168468796
5•Aissen•1h ago•0 comments