If you were reading news about developments in graphics in the 1990s, you might have followed Jim Blinn's column in IEEE Computer Graphics & Applications, "Jim Blinn's corner." In the summer of 1997 you would have opened your issue to a column called "Floating-Point Tricks".
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Steve Summit
Why should I always enable compiler warnings?
C is, famously, a rather low-level language as HLLs go. C++, though it might seem to be a considerably higher-level language than C, still shares a number of its traits. And one of those traits is that the languages were designed by programmers, for programmers -- and, specifically, programmers who knew what they were doing. [For the rest of this answer I'm going to focus on C. Most of what I'll say also applies to C++, though perhaps not as strongly.
Why is printf with a single argument (without conversion specifiers) deprecated?
This is misguided advice. Yes, if you have a run-time string to print, is quite dangerous, and you should always use instead, because in general you can never know whether might contain a sign.
Why does a=(b++) have the same behavior as a=b++?
Parentheses can be tricky to think about. But they do not mean, "make sure that everything inside happens first". The higher precedence of multiplication over addition tells us that the compiler will arrange to multiply c by d, and then add the result to b. If we want the other interpretation, we can use parentheses: But suppose that we have some function calls thrown into the mix.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Steve
Contact Steve, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack