Programming Leftovers
-
How to generate a hex sticker with {openai} and {cropcircles}
Every R package needs a hex sticker. Here's how you can generate one in seconds using generative AI.
-
Mike Blumenkrantz: Presenting
When perf Is Too Slow
Keen-eyed readers of the blog will have noticed over the past couple weeks an obvious omission in my furious benchmark-related handwaving.
I didn’t mention glmark2.
[...]
Yes, that glmark2.
Except my results were a bit different.
The thing about glmark2 is it’s just a CPU benchmark of drivers at this point. None of the rendering is in any way intensive, GPUs have gotten far more powerful than they were at the time the thing was written, and CPUs are now pushing tens of thousands of frames per second.
Yes, tens of thousands.
-
SciPy Stats Pearsonr
The “scipy.stats.pearsonr()” function in Python is a powerful tool for calculating the Pearson correlation coefficient between variables.
-
Numpy Array Append
The “numpy.append()” method and the “numpy.concatenate()” method of the “Numpy” module are used to append the NumPy array in Python.
-
Numpy Loadtxt
In Python, the “numpy.loadtxt()” function of the “Numpy” module is utilized to load the data from the text file and retrieve it as “ndarray”.
-
The Rust Programming Language Blog: Improved API tokens for crates.io
If you recently generated a new API token on crates.io, you might have noticed our new API token creation page and some of the new features it now supports.
Previously, when clicking the "New Token" button on https://crates.io/settings/tokens, you were only provided with the option to choose a token name, without any additional choices. We knew that we wanted to offer our users more flexibility, but in the previous user interface that would have been difficult, so our first step was to build a proper "New API Token" page.