Is it time for Python to have a statically-typed, compiled, fast superset?
I love Python. Really enjoy writing code and cracking problems with Python. I’m by no means an expert (not even close), but have been writing Python for the past 7 years or so (happily).
Now, a few things caught my attention during this time. The first was Rust. It’s amazing how much of a difference it makes to have a powerful compiler and static types and low memory consumption and speed. Sure, Rust is the extreme, but still, a lot to learn here. Not to criticize Python, since the errors have improved drastically, MyPy has evolved significantly, the language is getting faster. But yeah, Rust in a whole new level in several aspects (reinforcing: this is NOT a comparison, but rather a reference).
The other thing that was interesting to me, was the potential of type annotations to help make for a faster, safer experience on the compiler end of things. One example is seen in Meta’s Cinder project, on the docs it explains how typing can be used to reduce the number of steps for the compiler ([cinder/static_python.rst at cinder/3.8 · facebookincubator/cinder · GitHub\](https://github.com/facebookincubator/cinder/blob/cinder/3.8/CinderDoc/static\_python.rst)), making it more effective.
The ecosystem definitely is not lacking on projects: Cinder, MyPyC, Nuitka, PyPy, Pyston,
/r/Python
https://redd.it/xragzg
I love Python. Really enjoy writing code and cracking problems with Python. I’m by no means an expert (not even close), but have been writing Python for the past 7 years or so (happily).
Now, a few things caught my attention during this time. The first was Rust. It’s amazing how much of a difference it makes to have a powerful compiler and static types and low memory consumption and speed. Sure, Rust is the extreme, but still, a lot to learn here. Not to criticize Python, since the errors have improved drastically, MyPy has evolved significantly, the language is getting faster. But yeah, Rust in a whole new level in several aspects (reinforcing: this is NOT a comparison, but rather a reference).
The other thing that was interesting to me, was the potential of type annotations to help make for a faster, safer experience on the compiler end of things. One example is seen in Meta’s Cinder project, on the docs it explains how typing can be used to reduce the number of steps for the compiler ([cinder/static_python.rst at cinder/3.8 · facebookincubator/cinder · GitHub\](https://github.com/facebookincubator/cinder/blob/cinder/3.8/CinderDoc/static\_python.rst)), making it more effective.
The ecosystem definitely is not lacking on projects: Cinder, MyPyC, Nuitka, PyPy, Pyston,
/r/Python
https://redd.it/xragzg
GitHub
cinder/CinderDoc/static_python.rst at cinder/3.8 · facebookincubator/cinder
Cinder is Meta's internal performance-oriented production version of CPython. - facebookincubator/cinder
R Meta-FAIR releases Make-a-Video, a model that generates videos from texts or images
A dog wearing a Superhero outfit with red cape flying through the sky
https://makeavideo.studio/
/r/MachineLearning
https://redd.it/xrdc88
A dog wearing a Superhero outfit with red cape flying through the sky
https://makeavideo.studio/
/r/MachineLearning
https://redd.it/xrdc88
What do you use to run Jupyter notebook?
I just started learning ML with Jupyter notebook, I am not sure which IDE to use
Jupyter notebook with anaconda seems the simplest but lack intellisense, so I am kinda gravitating toward PyCharm or VS studio code. any suggestion?
/r/JupyterNotebooks
https://redd.it/x2a5r2
I just started learning ML with Jupyter notebook, I am not sure which IDE to use
Jupyter notebook with anaconda seems the simplest but lack intellisense, so I am kinda gravitating toward PyCharm or VS studio code. any suggestion?
/r/JupyterNotebooks
https://redd.it/x2a5r2
reddit
What do you use to run Jupyter notebook?
I just started learning ML with Jupyter notebook, I am not sure which IDE to use Jupyter notebook with anaconda seems the simplest but lack...
Can't undo, redo, copy or paste
It seems other shortcuts work in edit mode, but any of these does nothing. I'm getting so frustrated, why is Google so useless nowadays?? Please help
/r/JupyterNotebooks
https://redd.it/xrshpu
It seems other shortcuts work in edit mode, but any of these does nothing. I'm getting so frustrated, why is Google so useless nowadays?? Please help
/r/JupyterNotebooks
https://redd.it/xrshpu
reddit
Can't undo, redo, copy or paste
It seems other shortcuts work in edit mode, but any of these does nothing. I'm getting so frustrated, why is Google so useless nowadays?? Please help
R DreamFusion: Text-to-3D using 2D Diffusion
Project page: https://dreamfusion3d.github.io/
Paper: https://drive.google.com/file/d/1YC8xQSjxz7r8qyQY6LTuzC9L1AVU5O8V/view?usp=sharing
/r/MachineLearning
https://redd.it/xrny8s
Project page: https://dreamfusion3d.github.io/
Paper: https://drive.google.com/file/d/1YC8xQSjxz7r8qyQY6LTuzC9L1AVU5O8V/view?usp=sharing
/r/MachineLearning
https://redd.it/xrny8s
DreamFusion: Text-to-3D using 2D Diffusion
We combine neural rendering with a multi-modal text-to-2D image diffusion generative model to synthesize diverse 3D objects from text.
New Programmers...
Hey, so my current case being is I need to teach myself code. Yes I know booth camps and other smaller oppurtunities are essential. My Question is, Anyone else here who taught themselves to code or know someone can I get a learning map? Or explain what I should start with and do. Thanks.
/r/Python
https://redd.it/xrt6yz
Hey, so my current case being is I need to teach myself code. Yes I know booth camps and other smaller oppurtunities are essential. My Question is, Anyone else here who taught themselves to code or know someone can I get a learning map? Or explain what I should start with and do. Thanks.
/r/Python
https://redd.it/xrt6yz
reddit
New Programmers...
Hey, so my current case being is I need to teach myself code. Yes I know booth camps and other smaller oppurtunities are essential. My Question...
Doing Maths with Python - A collection of articles
Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects by making connections between them.
https://compucademy.net/category/computer-maths/
​
\#compsci #python #maths #progrmming #algorithms
/r/Python
https://redd.it/xrvg99
Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects by making connections between them.
https://compucademy.net/category/computer-maths/
​
\#compsci #python #maths #progrmming #algorithms
/r/Python
https://redd.it/xrvg99
Compucademy
Computer Maths - Compucademy
Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects with Computer Maths.
I've built an app to show how to build a complete web app
I've built tozo.dev to demonstrate how to build a (Progressive) web app with a Python-Quart backend, and a Typescript-React frontend running in AWS. I've included in the repository, github.com/pgjones/tozo everything needed to reproduce it i.e. all the code, the CI/CD actions, and the Terraform infrastructure definitions.
The commits are ordered and explained, and I hope that you can follow them to build you own app, alternatively you can just take code as a blueprint.
The app itself manages to-dos, but this is just as an example. If you remove this functionality you have an app including user management ready to go.
I use this to help train engineers, and I use (and have used) the stack for production projects.
(I did post about this earlier in the week but I don't think I explained it very well).
/r/Python
https://redd.it/xs184r
I've built tozo.dev to demonstrate how to build a (Progressive) web app with a Python-Quart backend, and a Typescript-React frontend running in AWS. I've included in the repository, github.com/pgjones/tozo everything needed to reproduce it i.e. all the code, the CI/CD actions, and the Terraform infrastructure definitions.
The commits are ordered and explained, and I hope that you can follow them to build you own app, alternatively you can just take code as a blueprint.
The app itself manages to-dos, but this is just as an example. If you remove this functionality you have an app including user management ready to go.
I use this to help train engineers, and I use (and have used) the stack for production projects.
(I did post about this earlier in the week but I don't think I explained it very well).
/r/Python
https://redd.it/xs184r
tozo.dev
React App
Web site created using create-react-app
Python Turtle (Quick and easy way to visualize, code inside)
Dear Friends,
Wanted to share with you this nice visualization I did with the Python Turtle library.
In this video, I show how to visualize the famous Zeno's Mice problem.
At first, I qualitatively describe the problem,
then show visualization with Python Turtle, code available in the description of the video.
It is mostly based on the code of the python turtle academy.
Then I also show that those curves are actually all around us.
Finally, I show a simple and elegant solution to a system nonlinear system of coupled ordinary differential equations. Using symmetry we can reduce the system to a single equation.
Complex numbers also help simplify the solution.
Finally, I show how such behavior happens in ants in real life.
Enjoy:
https://www.youtube.com/watch?v=NdTVvWrD6r0&t=5s&ab\_channel=Math%2CPhysics%2CEngineering
/r/Python
https://redd.it/xrxwav
Dear Friends,
Wanted to share with you this nice visualization I did with the Python Turtle library.
In this video, I show how to visualize the famous Zeno's Mice problem.
At first, I qualitatively describe the problem,
then show visualization with Python Turtle, code available in the description of the video.
It is mostly based on the code of the python turtle academy.
Then I also show that those curves are actually all around us.
Finally, I show a simple and elegant solution to a system nonlinear system of coupled ordinary differential equations. Using symmetry we can reduce the system to a single equation.
Complex numbers also help simplify the solution.
Finally, I show how such behavior happens in ants in real life.
Enjoy:
https://www.youtube.com/watch?v=NdTVvWrD6r0&t=5s&ab\_channel=Math%2CPhysics%2CEngineering
/r/Python
https://redd.it/xrxwav
YouTube
Zeno's Mice (Ants) Problem and the Logarithmic Spirals
0:00 Problem description
3:08 Python Visualization
13:06 Where do logarithmic spirals appear
17:50 Finding the trajectory equation solving system of ODE's
35:30 What happens to ants in reality
In this video, I describe the Zonos mice problem. At the vertices…
3:08 Python Visualization
13:06 Where do logarithmic spirals appear
17:50 Finding the trajectory equation solving system of ODE's
35:30 What happens to ants in reality
In this video, I describe the Zonos mice problem. At the vertices…
Deploying a relatively resource intensive, pre-trained ML model with Django
Hey there Django community!
I have a relatively resource intensive pre-trained ML model as well as a Django website. (Not deployed)
Currently, the inference from the ML model is done in its own .py file in one of the Django apps.
I am wondering if I can deploy the Django website like this without encountering major bills from AWS? Or is there any smarter way of doing it?
I’m new to AWS and deployment in general.
Thanks so much!
Edit: spelling
/r/django
https://redd.it/xrxs4g
Hey there Django community!
I have a relatively resource intensive pre-trained ML model as well as a Django website. (Not deployed)
Currently, the inference from the ML model is done in its own .py file in one of the Django apps.
I am wondering if I can deploy the Django website like this without encountering major bills from AWS? Or is there any smarter way of doing it?
I’m new to AWS and deployment in general.
Thanks so much!
Edit: spelling
/r/django
https://redd.it/xrxs4g
reddit
Deploying a relatively resource intensive, pre-trained ML model...
Hey there Django community! I have a relatively resource intensive pre-trained ML model as well as a Django website. (Not deployed) Currently,...
Django Rest Framework - how to change initial data of a serializer before validating and saving ?
**Intro -** A text snippet has a title, body, author and some tags associated with it. In the post request I send the data like this -
{
title : 'Hello world',
body : 'Some random text',
tags : 'Horror'
}
There are two tables - 1. tags - to store the different tag names and 2. snippet - to store the text snippets. They are linked by a table snippet\_tags which has snippet and tag id as FK.
class Tags(models.Model):
name = models.CharField(max_length=256)
active = models.SmallIntegerField(default=1)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
class Snippet(models.Model):
text = models.TextField()
body = models.TextField(null=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
tags = models.ManyToManyField(Tags)
[Serilaizer.py](https://Serilaizer.py)
# serializer for creating snippets
/r/django
https://redd.it/xsakde
**Intro -** A text snippet has a title, body, author and some tags associated with it. In the post request I send the data like this -
{
title : 'Hello world',
body : 'Some random text',
tags : 'Horror'
}
There are two tables - 1. tags - to store the different tag names and 2. snippet - to store the text snippets. They are linked by a table snippet\_tags which has snippet and tag id as FK.
class Tags(models.Model):
name = models.CharField(max_length=256)
active = models.SmallIntegerField(default=1)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
class Snippet(models.Model):
text = models.TextField()
body = models.TextField(null=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
tags = models.ManyToManyField(Tags)
[Serilaizer.py](https://Serilaizer.py)
# serializer for creating snippets
/r/django
https://redd.it/xsakde
The best literature to study Django Rest Framework
Hi folks!
What is in your opinion the best literature to study DRF? I have already read Django for APIs but my thought is that this book shallowly touches the topic of DRF by that I mean I would like to read more about code organization, serialization of nested models, how proper APIs should look, etc.
/r/django
https://redd.it/xrxrel
Hi folks!
What is in your opinion the best literature to study DRF? I have already read Django for APIs but my thought is that this book shallowly touches the topic of DRF by that I mean I would like to read more about code organization, serialization of nested models, how proper APIs should look, etc.
/r/django
https://redd.it/xrxrel
reddit
The best literature to study Django Rest Framework
Hi folks! What is in your opinion the best literature to study DRF? I have already read Django for APIs but my thought is that this book...
trying to download file from webapp and getting currepted file
I know this is not the right subredit to post this but i'm using a flask backend so why not
So, i'm trying to download an mp4 file from my webapp to the client and i keep getting a currepted file or wrong extention but clearly an mp4 file.
I'm using this code:
the file is in the same folder as the html file
/r/flask
https://redd.it/xsez4v
I know this is not the right subredit to post this but i'm using a flask backend so why not
So, i'm trying to download an mp4 file from my webapp to the client and i keep getting a currepted file or wrong extention but clearly an mp4 file.
I'm using this code:
<a href="video.mp4" download="video.mp4">download</a>the file is in the same folder as the html file
/r/flask
https://redd.it/xsez4v
reddit
trying to download file from webapp and getting currepted file
I know this is not the right subredit to post this but i'm using a flask backend so why not So, i'm trying to download an mp4 file from my webapp...
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/xsglc4
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/xsglc4
reddit
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic? Use this thread to chat about and...
How To Scrape Google Search Results Using Python (A Comprehensive Guide)
https://www.scrapingdog.com/blog/scrape-google-search-results/
/r/Python
https://redd.it/xsnttn
https://www.scrapingdog.com/blog/scrape-google-search-results/
/r/Python
https://redd.it/xsnttn
scrapingdog
How To Scrape Google Search Results using Python in 2025
In this post we have used Python to scrape Google search results. Further, we have told the limitations & a method to bypass this limitation using our API.
Django vs Flask - which enables faster development?
I have read in many places that a Django application is faster to develop, developers use Django when they have to build something fast.
But recently I had an interview at HPE, and the interviewer asked me difference between Flask and Django. I added the point stating that an app can be built faster using Django, to which he replied that I am wrong, and building apps using Flask is faster, and that I have to do more research about Flask.
So what what are your opinions??
/r/django
https://redd.it/xspde5
I have read in many places that a Django application is faster to develop, developers use Django when they have to build something fast.
But recently I had an interview at HPE, and the interviewer asked me difference between Flask and Django. I added the point stating that an app can be built faster using Django, to which he replied that I am wrong, and building apps using Flask is faster, and that I have to do more research about Flask.
So what what are your opinions??
/r/django
https://redd.it/xspde5
reddit
Django vs Flask - which enables faster development?
I have read in many places that a Django application is faster to develop, developers use Django when they have to build something fast. But...
How do you connect the frontend with the backend
Hi, I am pretty new to web development, I would like to know how do I connect my frontend with the backend. For the frontnd I used html5, css and js and the backend is using python flask.
Any advise will be great appreciated😁
/r/flask
https://redd.it/xsskku
Hi, I am pretty new to web development, I would like to know how do I connect my frontend with the backend. For the frontnd I used html5, css and js and the backend is using python flask.
Any advise will be great appreciated😁
/r/flask
https://redd.it/xsskku
reddit
How do you connect the frontend with the backend
Hi, I am pretty new to web development, I would like to know how do I connect my frontend with the backend. For the frontnd I used html5, css and...
Is it possible to create seasonal plots in jupyter with pandas?
Im trying to create seasonal plots like ggseason() and ggsubseries in R-studio?
/r/JupyterNotebooks
https://redd.it/x1yyt1
Im trying to create seasonal plots like ggseason() and ggsubseries in R-studio?
/r/JupyterNotebooks
https://redd.it/x1yyt1
reddit
Is it possible to create seasonal plots in jupyter with pandas?
Im trying to create seasonal plots like ggseason() and ggsubseries in R-studio?
PyUpdater is no longer maintained. What now? - Tufup: automated updates for stand-alone Python applications.
Hello world! I want to recommend a wonderful open-source package called **Tufup.** It's a simple software updater for stand-alone Python *applications*. This package was created as a replacement for **PyUpdater**, given the fact that [PyUpdater has been archived and is no longer maintained](https://github.com/Digital-Sapphire/PyUpdater#this-is-the-end). However, whereas **PyUpdater** implements a *custom* security mechanism to ensure authenticity (and integrity) of downloaded update files, **Tufup** is built on top of the security mechanisms implemented in the [python-tuf](https://github.com/theupdateframework/python-tuf) package, a.k.a. **TUF** (The Update Framework). By entrusting the design of security measures to security professionals, **Tufup** can focus on high-level tools.
Do note that, although **Tufup** offers the same basic functionality as **PyUpdater**, there are some differences:
* **Tufup** uses [python-tuf](https://github.com/theupdateframework/python-tuf) to secure the update process. This means you'll need to understand a little bit about the principles behind [TUF](https://theupdateframework.io/overview/). You can tailor the level of security to your needs, from highly secure, to slightly secure.
* **PyUpdater** was tightly integrated with [PyInstaller](https://pyinstaller.org/en/stable/), but **Tufup** is not. You *can* use **Tufup** with **PyInstaller**, as illustrated in the [tufup-example](https://github.com/dennisvang/tufup-example), but it is not required. You can also use it with any other packaging method, or you can even distribute a plain python script or just any directory of files.
*
/r/Python
https://redd.it/xsu2tn
Hello world! I want to recommend a wonderful open-source package called **Tufup.** It's a simple software updater for stand-alone Python *applications*. This package was created as a replacement for **PyUpdater**, given the fact that [PyUpdater has been archived and is no longer maintained](https://github.com/Digital-Sapphire/PyUpdater#this-is-the-end). However, whereas **PyUpdater** implements a *custom* security mechanism to ensure authenticity (and integrity) of downloaded update files, **Tufup** is built on top of the security mechanisms implemented in the [python-tuf](https://github.com/theupdateframework/python-tuf) package, a.k.a. **TUF** (The Update Framework). By entrusting the design of security measures to security professionals, **Tufup** can focus on high-level tools.
Do note that, although **Tufup** offers the same basic functionality as **PyUpdater**, there are some differences:
* **Tufup** uses [python-tuf](https://github.com/theupdateframework/python-tuf) to secure the update process. This means you'll need to understand a little bit about the principles behind [TUF](https://theupdateframework.io/overview/). You can tailor the level of security to your needs, from highly secure, to slightly secure.
* **PyUpdater** was tightly integrated with [PyInstaller](https://pyinstaller.org/en/stable/), but **Tufup** is not. You *can* use **Tufup** with **PyInstaller**, as illustrated in the [tufup-example](https://github.com/dennisvang/tufup-example), but it is not required. You can also use it with any other packaging method, or you can even distribute a plain python script or just any directory of files.
*
/r/Python
https://redd.it/xsu2tn
GitHub
GitHub - Digital-Sapphire/PyUpdater: Pyinstaller auto-update library
Pyinstaller auto-update library. Contribute to Digital-Sapphire/PyUpdater development by creating an account on GitHub.