For some reason, I became concerned about the amount of time being spent by random number generators, so I took a look into them. I wrote a program which compares the speed of std::mt19937 ( mersenne twister ), a custom “twister loop”, a custom “pcg”, and custom “xorshift” generators. The standard twister was the slowest,Continue reading “Writing custom Random Number Generators and performance Comparisions”
Tag Archives: Programming
Division By Zero
So we all know that dividing by zero is an error in programming, but do you know why? It turns out that it not really an error as much as a math problem, and not so much a problem as much as a thing. Here’s how it goes according to my understanding: A function y=Continue reading “Division By Zero”
Programming Basics with C++ explained in Assembly
What the basics of c++ are actually doing under the hood.
Spot C++
I feel like when it comes to C++ there is a lot of misunderstanding of what it is, what it can be and how it should be. The average programmer just doesn’t know C++ very well, even though they may use it a lot. C++ is huge and old, has legacy stuff and brand newContinue reading “Spot C++”