Using this example coming from wikipedia, in which DrawSquare() calls DrawLine(), (Note that this diagram h
Is a switch statement actually faster than an if statement? I ran the code below on Visual Studio 2010's
In order to mitigate against kernel or cross-process memory disclosure (the Spectre attack), the Linux kernel1
How do you run a program all by itself without an operating system running? Can you create assembly programs t
I am working on some Java code which needs to be highly optimized as it will run in hot functions that are inv
How can the theoretical peak performance of 4 floating point operations (double precision) per cycle be achiev
I wrote these two solutions for Project Euler Q14, in assembly and in C++. They implement identical brute forc
I was looking for the fastest way to popcount large arrays of data. I encountered a very weird effect: Changin
Is if (a < 901) faster than if (a <= 900)? Not exactly as in this simple example, but there are slight p
I am doing some numerical optimization on a scientific application. One thing I noticed is that GCC will optim
How can I collapse all definitions and methods within the Android Studio editor? Visual Studio has that optio
I want to edit a binary file, but I don't want to use another tool other than Visual Studio because it&ap
I often have to paste some stuff on a new line in vim. What I usually do is: o<Esc>p Which inserts a
In Eclipse, I can type Ctrl+M or click the maximize icon in the editor pane to make the editor pane take up th
I know di< will delete in an HTML tag itself. Is there an easy way to delete text in between two tags?
Does anyone know how to properly save/reuse macros recorded inside of a vim editor?
I can't find how to disable word-wrap in Xcode 4 editor. How can I do it?
I was wondering if there was any key mapping in Vim to allow me to indent certain lines of code (whether those