R AlphaEvolve: A Gemini-powered coding agent for designing advanced algorithms
> Large language models (LLMs) are remarkably versatile. They can summarize documents, generate code or even brainstorm new ideas. And now we’ve expanded these capabilities to target fundamental and highly complex problems in mathematics and modern computing.
Today, we’re announcing AlphaEvolve, an evolutionary coding agent powered by large language models for general-purpose algorithm discovery and optimization. AlphaEvolve pairs the creative problem-solving capabilities of our Gemini models with automated evaluators that verify answers, and uses an evolutionary framework to improve upon the most promising ideas.
AlphaEvolve enhanced the efficiency of Google's data centers, chip design and AI training processes — including training the large language models underlying AlphaEvolve itself. It has also helped design faster matrix multiplication algorithms and find new solutions to open mathematical problems, showing incredible promise for application across many areas.
For all the Evolutionary Algorthim fans out there, here's a really interesting paper that Deepmind published where they show AlphaEvolve designing advanced algorithms like improving matrix multiplication (which is a big deal in ML optimization)
Paper link: https://deepmind.google/discover/blog/alphaevolve-a-gemini-powered-coding-agent-for-designing-advanced-algorithms/
Interview with team:
https://youtu.be/vC9nAosXrJw?si=rzZSorXqgbqChFJa
/r/MachineLearning
https://redd.it/1kmzpg0
> Large language models (LLMs) are remarkably versatile. They can summarize documents, generate code or even brainstorm new ideas. And now we’ve expanded these capabilities to target fundamental and highly complex problems in mathematics and modern computing.
Today, we’re announcing AlphaEvolve, an evolutionary coding agent powered by large language models for general-purpose algorithm discovery and optimization. AlphaEvolve pairs the creative problem-solving capabilities of our Gemini models with automated evaluators that verify answers, and uses an evolutionary framework to improve upon the most promising ideas.
AlphaEvolve enhanced the efficiency of Google's data centers, chip design and AI training processes — including training the large language models underlying AlphaEvolve itself. It has also helped design faster matrix multiplication algorithms and find new solutions to open mathematical problems, showing incredible promise for application across many areas.
For all the Evolutionary Algorthim fans out there, here's a really interesting paper that Deepmind published where they show AlphaEvolve designing advanced algorithms like improving matrix multiplication (which is a big deal in ML optimization)
Paper link: https://deepmind.google/discover/blog/alphaevolve-a-gemini-powered-coding-agent-for-designing-advanced-algorithms/
Interview with team:
https://youtu.be/vC9nAosXrJw?si=rzZSorXqgbqChFJa
/r/MachineLearning
https://redd.it/1kmzpg0
Google DeepMind
AlphaEvolve: A Gemini-powered coding agent for designing advanced algorithms
New AI agent evolves algorithms for math and practical applications in computing by combining the creativity of large language models with automated evaluators
Introducing Pyrefly: A fast type checker and IDE experience for Python, written in Rust
Blog post: https://engineering.fb.com/2025/05/15/developer-tools/introducing-pyrefly-a-new-type-checker-and-ide-experience-for-python/
Podcast: https://engineering.fb.com/2025/05/15/developer-tools/open-sourcing-pyrefly-a-faster-python-type-checker-written-in-rust/
Source code: https://github.com/facebook/pyrefly
/r/Python
https://redd.it/1knh1uu
Blog post: https://engineering.fb.com/2025/05/15/developer-tools/introducing-pyrefly-a-new-type-checker-and-ide-experience-for-python/
Podcast: https://engineering.fb.com/2025/05/15/developer-tools/open-sourcing-pyrefly-a-faster-python-type-checker-written-in-rust/
Source code: https://github.com/facebook/pyrefly
/r/Python
https://redd.it/1knh1uu
Engineering at Meta
Introducing Pyrefly: A new type checker and IDE experience for Python
Today we are announcing an alpha version of Pyrefly, an open source Python type checker and IDE extension crafted in Rust. Pyrefly is a static type checker that analyzes Python code to ensure type …
Python for Good - Save the Date!
Hey Pythonistas!
Do you:
✅ Get excited about writing Python code?
✅ Want to use your skills for some serious good in the world?
✅ Interested in hanging out with the coolest, kindest, most awesome people in the Python community?
✅ Want to make dozens of new close friends?
If you're nodding enthusiastically right now, block off August 28-31st for Python for Good! Registration opens June 1st, but we wanted to give you a heads-up so you can plan accordingly!
Never heard of Python for Good? Python for Good operates year round but the event is basically summer camp for nerds! And it's ALL-INCLUSIVE (yes, you read that right) - lodging, meals, everything - at a gorgeous retreat space overlooking the Pacific Ocean. By day, we code for awesome causes. By night? We unleash our inner geeks with board games, nature hikes, campfire s'mores, epic karaoke battles, and other community building activities!
This is definitely NOT a hackathon. We work on real problems from real nonprofits (who'll be right there with us!), creating or contributing to existing open source solutions that will continue to make a difference long after the event wraps up.
Sounds like fun? Or maybe something your company would love to support? Hit us up!
/r/Python
https://redd.it/1knhkex
Hey Pythonistas!
Do you:
✅ Get excited about writing Python code?
✅ Want to use your skills for some serious good in the world?
✅ Interested in hanging out with the coolest, kindest, most awesome people in the Python community?
✅ Want to make dozens of new close friends?
If you're nodding enthusiastically right now, block off August 28-31st for Python for Good! Registration opens June 1st, but we wanted to give you a heads-up so you can plan accordingly!
Never heard of Python for Good? Python for Good operates year round but the event is basically summer camp for nerds! And it's ALL-INCLUSIVE (yes, you read that right) - lodging, meals, everything - at a gorgeous retreat space overlooking the Pacific Ocean. By day, we code for awesome causes. By night? We unleash our inner geeks with board games, nature hikes, campfire s'mores, epic karaoke battles, and other community building activities!
This is definitely NOT a hackathon. We work on real problems from real nonprofits (who'll be right there with us!), creating or contributing to existing open source solutions that will continue to make a difference long after the event wraps up.
Sounds like fun? Or maybe something your company would love to support? Hit us up!
/r/Python
https://redd.it/1knhkex
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1knn8l8
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1knn8l8
Redditinc
Reddit Rules
Reddit Rules - Reddit
Better Pythonic Thinking
I've been using Python for a while, but I still find myself writing it more like JS than truly "Pythonic" code. I'm trying to level up how I think in Python.
Any tips, mindsets, patterns, or cheat sheets that helped you make the leap to more Pythonic thinking?
/r/Python
https://redd.it/1knff06
I've been using Python for a while, but I still find myself writing it more like JS than truly "Pythonic" code. I'm trying to level up how I think in Python.
Any tips, mindsets, patterns, or cheat sheets that helped you make the leap to more Pythonic thinking?
/r/Python
https://redd.it/1knff06
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Jinja2
what is Jinja2 template
explain it or any source or youtube video.
/r/flask
https://redd.it/1kn3rhw
what is Jinja2 template
explain it or any source or youtube video.
/r/flask
https://redd.it/1kn3rhw
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
python and Flask
I am using Python with Flask to create a secure login portal. Since I have a QA exam, could you tell me what theory and practical questions the QA team might ask?
/r/flask
https://redd.it/1kmhiri
I am using Python with Flask to create a secure login portal. Since I have a QA exam, could you tell me what theory and practical questions the QA team might ask?
/r/flask
https://redd.it/1kmhiri
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
What network/data analysis projects are you building in Python?
I've been working on some tools to analyze detailed API performance data — things like latency, error rates, and concurrency patterns from load tests, mostly using Python, pandas, and notebooks.
Got me wondering: what kinds of network-related data projects are people building these days?
Always up for swapping ideas — or just learning what’s out there.
/r/Python
https://redd.it/1knvl0u
I've been working on some tools to analyze detailed API performance data — things like latency, error rates, and concurrency patterns from load tests, mostly using Python, pandas, and notebooks.
Got me wondering: what kinds of network-related data projects are people building these days?
Always up for swapping ideas — or just learning what’s out there.
/r/Python
https://redd.it/1knvl0u
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Hi there, I'm new here and I need a partner to learn Django with through discord
/r/djangolearning
https://redd.it/1knv0m8
/r/djangolearning
https://redd.it/1knv0m8
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
D presenting a paper virtually in ACL findings - should we?
Hi everyone.
Our paper (mine and colleagues) has been accepted to ACL findings. This is the first paper of mine that got accepted, so i am very excited and happy.
ACL findings papers are not required to be presented. They give you an option to present it, and if you choose to present it you can do it in person or virtually.
Unfortunately none of us are able to do it in person and fly to the conference. So the question becomes "is it worth it to present it virtually?".
I would love to hear what people think and experiences you had when presenting virtually.
Thanks.
/r/MachineLearning
https://redd.it/1knvsib
Hi everyone.
Our paper (mine and colleagues) has been accepted to ACL findings. This is the first paper of mine that got accepted, so i am very excited and happy.
ACL findings papers are not required to be presented. They give you an option to present it, and if you choose to present it you can do it in person or virtually.
Unfortunately none of us are able to do it in person and fly to the conference. So the question becomes "is it worth it to present it virtually?".
I would love to hear what people think and experiences you had when presenting virtually.
Thanks.
/r/MachineLearning
https://redd.it/1knvsib
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Which library would you choose Pygame or Arcade?
which library would you guys choose if making a game similar to mini millitia for steam, i see both libraries are good and have community support also , but still which one would you choose or if any other options , do comment
/r/Python
https://redd.it/1knwiyt
which library would you guys choose if making a game similar to mini millitia for steam, i see both libraries are good and have community support also , but still which one would you choose or if any other options , do comment
/r/Python
https://redd.it/1knwiyt
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
P TTSDS2 - Multlingual TTS leaderboard
A while back, I posted about my TTS evaluation metric TTSDS, which uses an ensemble of perceptually motivated, FID-like scores to objectively evaluate synthetic speech quality. The original thread is here, where I got some great feedback:
https://www.reddit.com/r/MachineLearning/comments/1e9ec0m/p\_ttsds\_benchmarking\_recent\_tts\_systems/
Since then, I've finally gotten around to updating the benchmark. The new version—TTSDS2—is now multilingual, covering 14 languages, and generally more robust across domains and systems.
⭐ Leaderboard: ttsdsbenchmark.com#leaderboard
📄 Paper: https://arxiv.org/abs/2407.12707
The main idea behind TTSDS2 is still the same: FID-style (distributional) metrics can work well for TTS, but only if we use several of them together, based on perceptually meaningful categories/factors. The goal is to correlate as closely as possible with human judgments, without having to rely on trained models, ground truth transcriptions, or tuning hyperparameters. In this new version, we get a Spearman correlation above 0.5 with human ratings in every domain and language tested, which none of the other 16 metrics we compared against could do.
I've also put in place a few infrastructure changes. The benchmark now reruns automatically every quarter, pulling in new systems published in the previous quarter. This avoids test set contamination. The test sets themselves are also regenerated periodically using a reproducible pipeline. All TTS
/r/MachineLearning
https://redd.it/1knwaf7
A while back, I posted about my TTS evaluation metric TTSDS, which uses an ensemble of perceptually motivated, FID-like scores to objectively evaluate synthetic speech quality. The original thread is here, where I got some great feedback:
https://www.reddit.com/r/MachineLearning/comments/1e9ec0m/p\_ttsds\_benchmarking\_recent\_tts\_systems/
Since then, I've finally gotten around to updating the benchmark. The new version—TTSDS2—is now multilingual, covering 14 languages, and generally more robust across domains and systems.
⭐ Leaderboard: ttsdsbenchmark.com#leaderboard
📄 Paper: https://arxiv.org/abs/2407.12707
The main idea behind TTSDS2 is still the same: FID-style (distributional) metrics can work well for TTS, but only if we use several of them together, based on perceptually meaningful categories/factors. The goal is to correlate as closely as possible with human judgments, without having to rely on trained models, ground truth transcriptions, or tuning hyperparameters. In this new version, we get a Spearman correlation above 0.5 with human ratings in every domain and language tested, which none of the other 16 metrics we compared against could do.
I've also put in place a few infrastructure changes. The benchmark now reruns automatically every quarter, pulling in new systems published in the previous quarter. This avoids test set contamination. The test sets themselves are also regenerated periodically using a reproducible pipeline. All TTS
/r/MachineLearning
https://redd.it/1knwaf7
Reddit
From the MachineLearning community on Reddit: [P] TTSDS - Benchmarking recent TTS systems
Explore this post and more from the MachineLearning community
RouteSage - Documentation of FastAPI made easy
I have just built RouteSage as one of my side project. Motivation behind building this package was due to the tiring process of manually creating documentation for FastAPI routes. So, I thought of building this and this is my first vibe-coded project.
My idea is to set this as an open source project so that it can be expanded to other frameworks as well and more new features can be also added.
What My Project Does:
RouteSage is a CLI tool that uses LLMs to automatically generate human-readable documentation from FastAPI route definitions. It scans your FastAPI codebase and provides detailed, readable explanations for each route, helping teams understand API behavior faster.
Target Audience:
RouteSage is intended for FastAPI developers who want clearer documentation for their APIs—especially useful in teams where understanding endpoints quickly is crucial. This is currently a CLI-only tool, ideal for development or internal tooling use.
Comparison:
Unlike FastAPI’s built-in OpenAPI/Swagger UI docs, which focus on the structural and request/response schema, RouteSage provides natural language explanations powered by LLMs, giving context and descriptions not present in standard auto-generated docs. This is useful for onboarding, code reviews, or improving overall API clarity.
Your suggestions and validations are welcomed.
Link to project: https://github.com/dijo-d/RouteSage
https://routesage.vercel.app
/r/Python
https://redd.it/1knw6ie
I have just built RouteSage as one of my side project. Motivation behind building this package was due to the tiring process of manually creating documentation for FastAPI routes. So, I thought of building this and this is my first vibe-coded project.
My idea is to set this as an open source project so that it can be expanded to other frameworks as well and more new features can be also added.
What My Project Does:
RouteSage is a CLI tool that uses LLMs to automatically generate human-readable documentation from FastAPI route definitions. It scans your FastAPI codebase and provides detailed, readable explanations for each route, helping teams understand API behavior faster.
Target Audience:
RouteSage is intended for FastAPI developers who want clearer documentation for their APIs—especially useful in teams where understanding endpoints quickly is crucial. This is currently a CLI-only tool, ideal for development or internal tooling use.
Comparison:
Unlike FastAPI’s built-in OpenAPI/Swagger UI docs, which focus on the structural and request/response schema, RouteSage provides natural language explanations powered by LLMs, giving context and descriptions not present in standard auto-generated docs. This is useful for onboarding, code reviews, or improving overall API clarity.
Your suggestions and validations are welcomed.
Link to project: https://github.com/dijo-d/RouteSage
https://routesage.vercel.app
/r/Python
https://redd.it/1knw6ie
GitHub
GitHub - dijo-d/RouteSage
Contribute to dijo-d/RouteSage development by creating an account on GitHub.
db.init_app(app) Errror
Hi I am a compleat Noob (in flask), i have an Error in my Program that says: TypeError: SQLAlchemy.init\_app() missing 1 required positional argument: 'app' and i dont know what is wrong ):
This is the code pls Help me:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from os import path
db = SQLAlchemy
DB_NAME = "database.db"
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'hjshjhdjah kjshkjdhjs'
app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{DB_NAME}'
db.init_app(app) #this thing makes the problem
from .views import views #thies are just website things
from .auth import auth
app.register_blueprint(views, url_prefix='/')
app.register_blueprint(auth, url_prefix='/')
from .models import User, Note #that are moduls for the data base
with app.app_context():
/r/flask
https://redd.it/1kmg69c
Hi I am a compleat Noob (in flask), i have an Error in my Program that says: TypeError: SQLAlchemy.init\_app() missing 1 required positional argument: 'app' and i dont know what is wrong ):
This is the code pls Help me:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from os import path
db = SQLAlchemy
DB_NAME = "database.db"
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'hjshjhdjah kjshkjdhjs'
app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{DB_NAME}'
db.init_app(app) #this thing makes the problem
from .views import views #thies are just website things
from .auth import auth
app.register_blueprint(views, url_prefix='/')
app.register_blueprint(auth, url_prefix='/')
from .models import User, Note #that are moduls for the data base
with app.app_context():
/r/flask
https://redd.it/1kmg69c
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Is free threading ready to be used in production in 3.14?
I am currently using multiprocessing and having to handle the problem of copying data to processes and the overheads involved is something I would like to avoid. Will 3.14 have official support for free threading or should I put off using it in production until 3.15?
/r/Python
https://redd.it/1ko5f3k
I am currently using multiprocessing and having to handle the problem of copying data to processes and the overheads involved is something I would like to avoid. Will 3.14 have official support for free threading or should I put off using it in production until 3.15?
/r/Python
https://redd.it/1ko5f3k
How to filter related objects by attribute and pass to Django template?
Im working on a Django app where I have a group model with multiple sections, and each section has multiple items. Each item has a category (using TextChoices). I want to display items that belong to a certain category, grouped by section, in a view/template.
In other hands, i want to control where item is displayed based mainly the category. I want to display this is this kind of way (example):
Section 1 :
Items (that belong to section 1) Category 1
Section 2:
Items (that belong to section 2) from Category 1
Section 1:
Items from Category 3
Section 2:
Items from Category 4
etc..
I tried looking at Django's documentation, as well as asking AI, but i still struggle to understand how to structure this. Assuming I have many categories, i don't know how to assign them to the context.
Here's an example code i generated (and of course, checked) to explain my problem.
# MODELS
from django.db import models
class Item(models.Model):
class ItemCategory(models.TextChoices):
TYPE_A = "A", "Alpha"
/r/djangolearning
https://redd.it/1ko396g
Im working on a Django app where I have a group model with multiple sections, and each section has multiple items. Each item has a category (using TextChoices). I want to display items that belong to a certain category, grouped by section, in a view/template.
In other hands, i want to control where item is displayed based mainly the category. I want to display this is this kind of way (example):
Section 1 :
Items (that belong to section 1) Category 1
Section 2:
Items (that belong to section 2) from Category 1
Section 1:
Items from Category 3
Section 2:
Items from Category 4
etc..
I tried looking at Django's documentation, as well as asking AI, but i still struggle to understand how to structure this. Assuming I have many categories, i don't know how to assign them to the context.
Here's an example code i generated (and of course, checked) to explain my problem.
# MODELS
from django.db import models
class Item(models.Model):
class ItemCategory(models.TextChoices):
TYPE_A = "A", "Alpha"
/r/djangolearning
https://redd.it/1ko396g
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1kofmtf
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1kofmtf
YouTube
Data Structures and Algorithms in Python - Full Course for Beginners
A beginner-friendly introduction to common data structures (linked lists, stacks, queues, graphs) and algorithms (search, sorting, recursion, dynamic programming) in Python. This course will help you prepare for coding interviews and assessments.
🔗 Course…
🔗 Course…