Hello everyone! I haven't made a blog in quite a while, because I had nothing quite interesting enough, but now I do, so lets get to it. It started simply. I wanted to create a program that would tell you whether a number is off without using modulo, divide, or any similiar operator. I wanted to use eighter switch, or if else statements. I decided on a switch, because its much faster. So, I began with a simple c++ program. It simply created a file, and wrote the basic program start to it. Something that gets and parses the integer from the first argument, into the switch statement: #include #include int main(int argc, char** argv) { switch(std::stoi(argv[1])) { Even tho the std::stoi propably uses modulo operator to parse the integer, I decided not to count it. Then, it was time to implement the cases themselves. I decided to just do case X: std::cout << "Odd\n"; or "Even\n", based on the number X obviously. Now, it was time to try it. I began with about 10 000 numbers, and it worked just fine! Simply input the number as the argument, and it works. Now it was time to do it for real. I set the number to ~0U obviously, and I did a simple for loop with an int32 as the index(this will be important later). And I started the process. The cpu spiked to 100%, luckily only on one core so the system remained very usable. Then, I notices something. When tailing the finished file, the index in the program has actually overflown to -2,1Bilion, because I set it as a signed int, oh well, I guess it will support negative numbers too. The finished file was about 190GB in size, which is preety insane. When it finished, I tried to compile it, but sadly, my memory was too small for it. Tomorow, I will try writing the binary code directly, instead of trying to compile it with an external compiler, that is the point of failiure. I will also have to increase the swapsize so it actually fits.. it will be interesting. Feel free to leave me a note(at http://leavenote.ireview.games/) with a number I should try on it. Its preety insane I was even able to create a file this huge, isnt it! A couple years back we were all fighting with the 5gig size limit of fat32, and now anyone can create a file terabytes large without anybody ever caring or even knowing. 64 bits on cpus is propably enough for atleast another 30years, and this experience truly reminded me of that! See you tomorow!