news
Programming Leftovers
-
Sandor Dargo ☛ C++26: std::inplace_vector
C++26 is generous with new containers — we’re getting both std::hive and std::inplace_vector. In this post, we’ll look at the latter.
-
Jeroen Sangers ☛ Jeroen Sangers ◦ brain tags - Urgency, not importance, decides what gets done
Tasks that were both urgent and important got finished most often. Tasks that were only important, with no deadline pressing on them, were finished least often.
The statistics get stranger. On its own, importance had no relationship with completion at all. Once the researchers accounted for urgency, importance turned negative. Less important tasks were the ones that got done.
-
Jamie Tanna ☛ Updating dependent branches when rebasing, automagically
I'm regularly rewriting my history, often with the lens of improving my commit messages.
On the Renovate project, we use a Merge Queue with Squash Merge, which means that if I do want to have atomic commits, I need to split them across PRs, which adds a bit of noise to manage them.
Alternatively, I could bypass branch protection requirements to do a rebase merge, but that's the only way to do a rebase merge with a Merge Queue.
Now that GitHub has launched stacked PRs, it's now possible to get this behaviour as I wanted, but with the safety of the Merge Queue.
But the issue is what happens when I've amended the commit message on one of the PRs, and now need to trigger a cascading rebase?
-
R / R-Script
-
Dirk Eddelbuettel ☛ Dirk Eddelbuettel: linl 0.0.6 on CRAN: Maintenance
A new release of our linl package for writing LaTeX letters with (R)markdown is now on CRAN. linl makes it easy to write letters in markdown, with some extra bells and whistles thanks to some cleverness chiefly by Aaron.
-
Rlang ☛ On the Expectation-Maximization (EM) algorithm and regression models
Using an iterative optimization framework to rethink regression models
-
Rlang ☛ Cochran’s Q test in R, or the extension of McNemar’s test for more than two groups
In previous articles, we showed how to test whether two qualitative variables are related thanks to the Chi-square test of independence in R (and how to compute it by hand). Both articles insist on one important limitation: this test requires independent observations.
-
Stats and R ☛ Cochran's Q test in R, or the extension of McNemar's test for more than two groups
In previous articles, we showed how to test whether two qualitative variables are related thanks to the Chi-square test of independence in R (and how to compute it by hand). Both articles insist on one important limitation: this test requires independent observations. If you have dependent observations (paired samples), that is, if the measurements have been collected on the same subjects, the McNemar’s or Cochran’s Q tests should be used instead, the Cochran’s Q test being an extension of the McNemar’s test when we have more than two related measures.
-
-
Python
-
Juha-Matti Santala ☛ W is for walrus operator - Python A to Z
Often in programming we end up in a situation where we want to check for an output of a function and then do something to it if it’s truthy.
-
Juha-Matti Santala ☛ V is for visible characters - Python A to Z
I recently built a website to display my Pokédex Binder. I have a physical binder where I collect Pokémon TCG cards in a way where I aim to have one card for each Pokémon and their regional variants (and some forms when applicable).
-
Scientific Python Blog ☛ Blog - Rewriting Awkward Array's GPU kernels in Python with NVIDIA's cuda.compute
Thousands of lines of hand-written CUDA C++, now Python. Less code, and it runs faster.
A single collision event in a particle detector holds a variable number of particles, each with a variable number of measurements: [...]
-
-
Shell/Bash/Zsh/Ksh
-
University of Toronto ☛ A surprise with systemd user service units and special shells
Suppose, not hypothetically, that you operate a multi-server Linux environment where most people get to log in to some machines, such as your general purpose login servers, but not log in to others that still have to carry your full set of logins, such as your fileservers or your SLURM nodes (people submit jobs through SLURM but aren't supposed to directly SSH in). The only good way to implement this today that I know of is to modify people's shell in /etc/passwd. Although this is flawed in general, most of those flaws don't apply if what you want to do is specifically stop people SSH'ing in to some machines.
-
-
Rust
-
Rust Blog ☛ The Rust Programming Language Blog: Announcing our first Maintainers in Residence
We are very happy to announce the Rust Project's first round of Maintainers in Residence: Gen Li (@rami3l), Chris Denton (@ChrisDenton), Alejandra González (@blyxyas), León Liehr (@fmease), and Maintainer Grant recipients: Jason Newcomb (@Jarcho) and Jonas Böttiger (@joboet). These contributors will be funded for their
rust-langmaintenance activities for (at least) the following 12 months! -
Collabora ☛ Building Tyr in Rust, part 3: Managing GPU memory
Tyr’s latest Rust GPU kernel driver work puts GPU memory management in place, from VM binding and GPUVM to GEM-backed buffers and firmware boot, moving key pieces upstream before tackling synchronization next.
-
Tech Times ☛ Linux at 35: Rust Now Permanent in Kernel After Memory Bugs Drove 80 Percent of CVEs
On August 25, 1991, Linus Torvalds told a Usenet group he was building a free operating system — "just a hobby, won't be big" — and never imagined it would run anything. Yesterday the kernel he built turned 35 years old, runs on 96.3 percent of top web servers, and — in a development that will shape its next 35 years more than any other — now permanently includes Rust, a programming language specifically chosen because it makes an entire class of kernel bugs impossible to write.
-