Quantcast
Channel: Paul Kuliniewicz » Coding
Browsing all 3 articles
Browse latest View live

The myth of signed arithmetic wraparound

Pop quiz time! Suppose you’re on a machine where int is 32 bits wide and thus INT_MAX, the maximum possible value for an int, is 2147483647. What is the output of the following C program? #include...

View Article



Too loco for NaNo

Having won NaNoWriMo the past three years (and another time several years before those), I think it’s safe to say that I’m capable of writing the first draft of a 50,000-word novel in the span of 30...

View Article

Reading is dangerous (if you’re writing Haskell)

In Haskell, the read function is the usual, simple way to parse a String into a value of some other type: ghci> :t read read :: Read a => String -> a read can parse anything that implements...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images