I’m currently working on a project interfacing a BeagleBone Black to a drive control unit, which communicates using MODBUS ASCII over RS-232. The biggest challenge with the communication protocol is …
Asynchronous, Event-Driven UART in C++ for BeagleBone Black
I just posted the first iteration of Serialzzz, a C++ library which provides asynchronous, event-driven I/O for interacting with UART devices on BeagleBone Black. Today’s code drop is just the …
Monty Hall Problem
I read a very interesting article on the NY Times today, linked from this /. article, about the Monty Hall Problem. The problem has apparently caused much embarrassment among mathematicians, …
C++ const Correctness
Here’s a very thorough article that supplements my recent const rant very nicely. I received a number of emails back arguing against my point that const is important and influential. …
C++ const Keyword Usage
Just as a follow up to my last post, here’s a quick overview of the const keyword 1. const int x = 5; 2. const int * px; 3. int …
C++ const Keyword
const is, in my opinion, the most influential and least frequeuently used keyword in the C++ programming language. This may seem like a very bold statement, but having recently started …
Fast CPUs Make for Dissapointing Optimizations
As a follow up to yesterday’s post about using intermediate datastructures, I wanted to add some concrete numbers to my Big-Oh runtime statements. I came in to work this morning …
Data Structures in C++: A How Not To
It never ceases to amaze me the drastic impact our choice of datastructures has on application performance, and how little thought many developers seem to give it. I was charged …
C++ Expression Evaluation
I recently posted a link to Bjorne Stroustrup’s C++ FAQ, in which he points out that the value of: is undefined. I decided to throw together a couple little sample …
Bjarne Stroustrup’s C++ FAQ
That’s right, a C++ FAQ by Bjarne Stroustrup himself. I ran across this faq this morning while googling for the forgotten name of the famed designer of C++. This is …