Programming Leftovers
-
Rlang ☛ tisthemachinelearner: A Lightweight interface to scikit-learn with 2 classes, Classifier and Regressor (in Python and R)
-
Jakub Jarosz ☛ Why Test-First Development Is So Damn Hard
I wrote my first program when I was a kid—many, many years ago—not on a computer but on a piece of paper. How did I know if it was correct? I didn’t until my father’s buddy, an experienced programmer, read it. He interpreted my program in his head and gave me back my paper. It was littered with red colour.
This was the first time I saw a human brain working as an interpreter and compiler. This was first time I’ve seen how testing works. Testing? Yes, thinking. Deep thinking actually!
-
Yossi Kreinin ☛ 0+0 > 0: C++ thread-local storage performance
We'll discuss how to make sure that your access to TLS (thread-local storage) is fast. If you’re interested strictly in TLS performance guidelines and don't care about the details, skip right to the end — but be aware that you’ll be missing out on assembly listings of profound emotional depth, which can shake even a cynical, battle-hardened programmer. If you don’t want to miss out on that — and who would?! — read on, and you shall learn the computer-scientific insight behind the intriguing inequality 0+0 > 0.
-
Shell/Bash/Zsh/Ksh
-
University of Toronto ☛ Why I have a little C program to filter a $PATH (more or less)
I use a non-standard shell and have for a long time, which means that I have to write and maintain my own set of dotfiles (which sometimes has advantages). In the long ago days when I started doing this, I had a bunch of accounts on different Unixes around the university (as was the fashion at the time, especially if you were a sysadmin). So I decided that I was going to simplify my life by having one set of dotfiles for rc that I used on all of my accounts, across a wide variety of Unixes and Unix environments. That way, when I made an improvement in a shell function I used, I could get it everywhere by just pushing out a new version of my dotfiles.
-