Product, Monetization, and CUDA – Arnon’s blog

  • Windows 8.1 adds new language after every restart

    Up until recently, after every reset, I’d get a new language added to my language bar. And it was a strange one, Upper Sorbian. It would always appear in my bar, but never in the language settings pane I had a workaround that would remove the language until the next restart. It required manually adding…

  • I’ve managed to compile GHC-7.8.3 on an Nvidia Tegra (Jetson K1) and Adapteva Parallella-16!

    I’ve managed to compile GHC-7.8.3 on an Nvidia Tegra (Jetson K1) and Adapteva Parallella-16!

    It took a while, but I’ve finally managed to compile and run GHC-7.8.3 on an Nvidia Jetson K1 board. The Jetson K1 board has a 32-bit Nvidia Tegra processor (essentially a quad-core ARM Cortex A15), and an integrated 192 core Nvidia GPU. Mine came with a standard Ubuntu 14.04 distribution and nothing more really. After…

  • Overheard (3)

    A: Pfft. Someone used Int32 here instead of Int64. I didn’t make those kinds of mistakes since I was in 3rd grade B: You knew what an Int64 was in 3rd grade? A: No. That’s why I didn’t make those kinds of mistakes.

  • Which architecture should I compile for with GCC?

    Which architecture should I compile for with GCC?

    Last week I wrote about strange assembler messages on new PCs and I mentioned there could be performance issues when you don’t use -march=native. -march=native is very good if you only plan to run your code on a specific computer, or you allow people to compile it themselves from source. So what happens if you…

  • Overheard (2)

    I wish they’d have sent this PDF in plaintext so that I could open it in emacs

  • Overheard (1)

    All of these STDs are going to kill someone in the end std::vector

  • Upgraded to a new computer and getting assembler messages?

    We recently upgraded some of our workstations to the new i7 Haswell series, but when compiling we suddenly got strange messages when compiling the Boost package: Assembler messages: Error: no such instruction: `shlx … Naturally, The error repeated itself with more instructions introduced in the new BMI2 specification BZHI, MULX, PDEP, PEXT, RORX, SARX, SHRX,…

  • Rot13 implementation in Haskell

    Rot13 is a simple Caeser-cypher where letters are replaced by shifting them by 13 places. > import Data.Maybe (fromMaybe) > rot13 :: String -> String > rot13 s = map rotchar s > where we’ll first look in the lowercase letters > rotchar c = case (lookup c $ transp lc) of > Just x…