Why Teaching in the Water is so Humbling...

There is something so humbling and refreshing about the line of work I am in. To meet someone in the water. An adult who is there, facing their own fears with me, one on one. I am the vessel to them…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Pythonic Security

This is how you deploy code securely without fear or favor.

We all know it is possible to turn sourceless Python into Python VM Instructions and this can help hackers manipulate your code however it is not easy to do.

Secure is when you can make the “not easy to do” even more difficult.

For Python, this can be achieved with Rust. Rust can be used to build Native Python Extensions with py03.

Put your valuable business logic functions into Python via Rust and then hackers and others seeking to manipulate your code will have a more difficult time and your code will run faster.

Also, the Python debugger will not be able to step into those Rust extensions. And this too makes your code more “secure”.

My definition of “secure” is where people just leave your code alone. They let you manage the code they run. They really have no real choice, when you do this correctly. Hackers will not waste their time on anything. Hackers want a fast turn-around which means they always go for easy targets and when your code is not easy then hackers will not mess with it. One of your Rust modules could easily be a CRC checker to ensure all your code modules are intact and I would recommend doing this.

Rust is a full-featured language and you can have confidence in the fact that this language will have some legs for some time to come and not only because it interfaces well with Python.

I prefer to begin my projects with a high-level language and Python makes this super easy. Then I build out my projects with pure Python until the system is minimally complete. Then I begin to consider optimizations where 90% of the time is being consumed. Numba is a good way to go if you have specific functions where Numba works best. Cython is another good way to go if you are okay with re-coding your functions. Rust is ideal for building Native Python extensions. Most of the time you will achieve reasonable performance with pure Python if you learn some reasonable techniques for optimizing your code.

You can do whatever you wish with your projects.

Add a comment

Related posts:

Sadhguru

Birth happened only because life touched you. Now that you believe in celebrating birthdays every year, let’s put it to good use. #CauveryCalling is a committed celebration of life, because without…

WordPress theme development by creating project

Master the craft of WordPress theme development by creating project based themes. @ProjectWPThemes #SMM #ICO #STO #BountyManager #socialmediamanager#ICOListing #PRpublications #Airdropmanagement…

What I learned from Digital Minimalism

How a week-long Digital Minimalism experiment changed my habits with Social Media Usage, and it's positive effects on my mental health, efficiency and ability to focus