Category Archives: Programming

Debugging With Print

Álvaro Ramírez has a guilty secret: he sometimes debugs code by inserting print statements into it. I was really happy to see his post because it’s a guilty secret that we share. Debuggers and similar tools are great and really … Continue reading

Posted in Programming | Tagged | Leave a comment

Generating Documents Directly From Elisp

I’ve had this in my blog queue since April but it’s too good to let it fall into the bit bucket. Álvaro Ramírez has a problem with his chatgpt-shell package. He has some documentation in the form of tables, which … Continue reading

Posted in Programming | Tagged , | Leave a comment

Checking A Word List

Daniel Lemire has a post that poses an interesting challenge. Suppose you have a list of words—Lemire uses “ftp”, “file”, “http”, “https”, “ws”, “wss”—and want to check if some other word is in the list. Unless you believe in Zawinski’s … Continue reading

Posted in Programming | Tagged | Leave a comment

IDEs

Renato Athaydes has an interesting post about his use of IDEs and how they are resource hogs and have a hard time operating on any but the most high powered machines. Most of you know by now that I’m not … Continue reading

Posted in Programming | Tagged | Leave a comment

Use Closed/Open Intervals For Programming

In Mathematics, especially Real Analysis and Topology, the use of open and closed intervals is endemic. The open interval \((a,b)\) is the interval \(a < x < b\) while the closed interval \([a,b]\) includes the endpoints: \(a \le x \le … Continue reading

Posted in Programming | Leave a comment

A Conversation with Mickey

Syntopikon has an interesting interview with Mickey Petersen, the proprietor of Mastering Emacs and all around Emacs expert and expositor. He’s no stranger to Irreal readers so it’s always nice to see him discuss matters. The last time I remember … Continue reading

Posted in Programming | Tagged | Leave a comment

Modulo Bias

A common operation in software is to reduce a larger number to a smaller one by the modulo operation. As a toy example, suppose we have random numbers in the range 0–7 but need to reduce those values to the … Continue reading

Posted in Programming | Tagged | Leave a comment

Additional Emphasis Markers in Org Mode

I really love the Org-mode markup language. It allows me to compose just about any document that I would actually want to write. That means that I can typeset bold, italics, underline, monofont, and even strikethrough. But some people have … Continue reading

Posted in Programming | Tagged , | Leave a comment

Pointers

One of the hardest things to learn in C—indeed, many say it’s the acid test for a good C programmer—is pointers. Here’s an amusing cartoon (via Karl Voit) that explains it as well as any other explanation I’ve seen. Pointers … Continue reading

Posted in Programming | Tagged | Leave a comment

Hints For Writing Unix Tools

Marius Eriksen has a useful post for those not afraid to leave the comfort of the GUI for the command line. It’s long been noted that the ability of Unix to compose tools into pipelines is extraordinarily powerful and makes … Continue reading

Posted in Programming | Tagged , | Leave a comment