Programming Leftovers
-
Making Python 100x faster with less than 100 lines of Rust
A while ago at $work, we had a performance issue with one of our core Python libraries.
This particular library forms the backbone of our 3D processing pipeline. It’s a rather big and complex library which uses NumPy and other scientific Python packages to do a wide range of mathematical and geometrical operations.
Our system also has to work on-prem with limited CPU resources, and while at first it performed well, as the number of concurrent physical users grew we started running into problems and our system struggled to keep up with the load.
-
Python Permutations of a List
The permutations() method of the itertools package can be used to find all possible permutations of a list in Python along with a limit on the tuple size.
-
Python Time.sleep Milliseconds
The Python Time.sleep() method can be used to delay the execution of the code for a set interval by passing milliseconds after dividing them by 1000.
-
Make your own Optionals
I took out all the comments and did a little reformatting, but this is the entire class. Just around 150 lines managing one nullable field.
Take a minute to read or skim it before moving on.
-
The Twitter API is now effectively unmaintained | snarfed.org
Hi all! I don’t have much new to say about the ongoing chaos at Twitter or the impending death of the free API tier. I’d just like to draw your attention to this page that shows Twitter employees’ posts here on this forum, in chronological order, descending.
Before December, a large number of employees posted here regularly on a wide range of topics. Over the last few months, only a single Twitter employee has posted here consistently, and only about the Ads API. A couple others have posted once or twice, but not recently.
-
The Definition of Senior: A Look at the expectations for Software Engineers
The truth is that answering these questions is a very subjective matter and different people or different companies might give very different answers.
In this article, I’ll try to give you my take, based on my opinion and personal experience.
-
Why Engineers Need To Write - by Ryan Peterman
I hated writing in high school. It wasn’t objective like my favorite subjects, math and science. It also didn’t help that we had to write about old, hard-to-understand literature like Shakespeare. But my perspective on writing changed once I started working full-time as a software engineer.
-
The Ambiguous Zone - Ben Northrop
On the other end is when we go rogue. We find some "requirement" that might be useful (but no one really asked for), or some new approach or technology that's interesting or "hot", and then spend the entire sprint in our coding cave joyfully building it out. Will it actually help the project? Err...maybe? Regardless though, it'll be fun, because we love nothing more than smooth sailing - not being beholden to the ideas, thoughts, or reservations of others (well, that is, until they see our 4k-line pull request!).
-
Qt Design Studio 4.0.1 Released
We are happy to announce the release of Qt Design Studio 4.0.1!
Qt Design Studio is a HMI creation tool. Users of Qt Design Studio can rapidly create and validate basic 2D and 3D user interfaces with ease. Qt Design Studio outputs the frontend part as production-quality QML source code which then is integrated into the rest of the Qt application project. -
Computing Rank Dependent Utility in R: Getting More out with RDU_Data()
In a previous blog post I discussed how we can compute rank dependent utility in R.