Programming Leftovers
-
Chad Austin ☛ Unsafe Rust Is Harder Than C
Unfortunately, none of them exactly met my needs, so I nerd-sniped myself into writing my dream channel. My previous day job (EdenFS and Watchman) was full of ad-hoc channels so I knew roughly I wanted. kanal is closest, but it is riddled with unsafe code and uses spinlocks which look great in microbenchmarks but have no place in userspace software.
-
Rlang ☛ Table It Like a Pro: Print-Ready Tables in R
One of the best things about gt is that it’s not just for the console. You can easily export your tables to different formats—like HTML for web pages or LaTeX for PDFs. Here’s how you can export the table we just created: [...]
-
Jacob Nowosad ☛ Comparison of spatial patterns in continuous raster data for arbitrary regions using R – Thinking in spatial patterns
This blog post focuses on the comparison of spatial patterns in continuous raster data for arbitrary regions. Thus, the shown methods require two continuous rasters, which may have different extents, resolutions, etc. The outcome of such comparisons is, most often, a single value, which indicates the difference/similarity between the spatial patterns of the two rasters.
Three continuous raster datasets are used in this blog post: the Normalized Difference Vegetation Index (NDVI) datasets for Tartu (Estonia) for the years 2018 and 2023, and Poznań (Poland) for the year 2023.
-
Fabian “ryg” Giesen ☛ Zero or sign extend
A while back I had to deal with a bit-packed format that contained a list of integer values encoded in one of a pre-defined sets of bit widths, where both the allowed bit widths and the signed-ness were denoted in a header elsewhere. These values never got particularly long (the largest bit width I needed to support was around 14 bits I think?) but having a mixture of different bit widths and signedness-es (is that a word?) was annoying to deal with, particularly the latter. Signed values were stored in the usual two’s complement format.
-
Remy Van Elst ☛ The Adventure of the Missing Syscall: Error 38
Sherlock Holmes tackles a modern computing dilemma involving a missing system call. In this case, a frustrated developer attempts to port an embedded device running Yocto to a newer version, only to be met with `Error 38` due to a missing syscall. Holmes and Watson delve into the intricacies of kernel versions, glibc, and system calls to uncover the truth behind the missing `syscall_397` and provide a logical solution.
-
Rlang ☛ Enhancing Time Series Analysis: RandomWalker 0.2.0 Release
In the ever-evolving landscape of R programming, packages continually refine their capabilities to meet the growing demands of data analysts and researchers.
-
Python
-
The New Stack ☛ The Top 5 Python Packages and What They Do
Have you ever wondered what the top five Python packages are?
-
The New Stack ☛ What Are Python Ternary Operators and How Do You Use Them?
A Python ternary operation (aka a conditional expression) is a means to evaluate a condition and return a value [...]
-
-
Rust
-
Rust Weekly Updates ☛ This Week In Rust: This Week in Rust 570
Hello and welcome to another issue of This Week in Rust!
-