Programming Leftovers
-
R
-
Rlang ☛ teal 0.16.0 is released!
We are excited to announce that teal 0.16.0 is now available on CRAN!
-
Rlang ☛ A Bayesian proportional hazards model with a penalized spline
In my previous post, I outlined a Bayesian approach to proportional hazards modeling. This post serves as an addendum, providing code to incorporate a spline to model a time-varying hazard ratio non linearly.
-
-
Productivity Software/LibreOffice
-
Document Foundation ☛ LibreOffice is in the Surveillance Giant Google Summer of Code 2025!
Everyone loves having shiny new features in LibreOffice. But how do we get them? Many are developed by volunteers and people in the ecosystem. But another great source of new features is the Surveillance Giant Google Summer of Code (GSoC), a global, online program focused on bringing new contributors into open source software development.
-
-
Python
-
The Fiefdom of Files ☛ A Map of Python
PyPi, the Python Software Foundation's package repo, counts over half a million open source projects. Since I use many of these every day, it seemed appropriate to get to know this set of packages better, and show some appreciation. The index website provides nice search and filtering, which is good when looking for something specific. Here though, we want to take a look at every package at once, to construct a visualization, and perhaps even discover some cool new packages.
-
LWN ☛ Python interpreter adds tail calls
The Faster CPython project has been working to speed up the Python interpreter for the past several years. Now, Ken Jin, a member of the project, has merged a new set of changes that have been benchmarked as improving performance by 10% for some architectures. The only change is switching from using computed goto statements to using tail calls as part of the implementation of Python's bytecode interpreter — but that change allows modern compilers to generate significantly better code.
-
LWN ☛ Multi-host testing with the pytest-mh framework
The pytest-mh project is a plugin that provides a multi-host test framework for the popular pytest unit-testing framework and test runner. Work on pytest-mh started in 2023 to solve a multitude of issues that cropped up for developers and testers when testing the SSSD project, which is a client for enterprise identity management. I was not happy with the state of testing of the SSSD project and wanted to create something that would increase test readability, remove duplication, eliminate errors, and provide multi-host testing capabilities, while having the flexibility to build a new API around it. Finally, I also wanted something that can be used by anyone to test their projects as well.
The pytest-mh plugin is licensed under the GPLv3. (The pytest framework is under the MIT license.) It provides building blocks to build a test framework around a project, and tools that connect the tests to one or more hosts. Developers can write tests in Python that execute commands on remote systems as well as implement complex automated setup and teardown to ensure that each test starts with a well-defined environment.
-
-
Shell/Bash/Zsh/Ksh
-
Paweł Grzybek ☛ Vi keybindings in fish shell
Some time ago, Stefan shared a great tip on how to edit a long shell command using the default editor in bash and zsh. I chipped in and added a recipe for fish. I was blown away today when I learned that I can use vim keybindings directly in the fish shell, without ever opening vim. Absolutely killer productivity tip!
-
Evan Hahn ☛ Why "alias" is my last resort for aliases
I used to define these aliases with alias. After all…I’m defining an alias!
But over time, I think I discovered a better way: a script in my $PATH.
-
-
Java
-
FatSquirrel ☛ NetBSD on a JavaStation
Hard as it may be to imagine, there was a time when Java was brand new and exciting. Long before it became the vast clunky back-end leviathan it is today, it was going to be the ubiquitous graphical platform that would be used on everything from cell phones to supercomputers: write once, run anywhere.
-