Hello again, lets continue C++ roadmap. ChatGPT Hello again! Of course, I’d be happy to continue with the C++ roadmap. Let’s pick up where we left off. If you have any specific topics or questions you’d like to discuss, please let me know, and I’ll be glad to assist you. OK, I came up withContinue reading “Continuing gradient_descent with ChatGPT”
Tag Archives: C++
About C++ Programming, with ChatGPT.
Hello, if I asked you to teach me C++ from A to Z, how would you proceed? ChatGPT: Sure, I’d be glad to help you learn C++! Learning a programming language like C++ is a multi-step process that involves understanding the basics of the language, practicing coding, and building projects to apply your skills. Here’sContinue reading “About C++ Programming, with ChatGPT.”
Writing custom Random Number Generators and performance Comparisions
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”
C++ Binary Serializer
Binary Serialization can be sort of scary, maybe, to some people. Fortunately, it is super simple, straight forward, and even elegant, in C++. Binary data is the raw representation of information on the computer, and there are easy ways to work with it in C++. The benefits of using Binary are that it can saveContinue reading “C++ Binary Serializer”
My AI study so far
I have been studying neural networks for some time, and recently during a YSU hackthon, I managed to make interesting progress. After about a year long break, I return to this code and make large amounts of progress and a number of topics have presented in C++ software. I’m going to describe some of myContinue reading “My AI study so far”
Introduction to Data Oriented Design
Object oriented programming is the typical go-to method of programming, and it is super useful, especially in a program’s “sculpting”/exploration or design phase. The problem with it, however, is that modern computer hardware has evolved and typical OOP practices have not. The main issues are that hardware is getting more parallelized and cache-centric. What thisContinue reading “Introduction to Data Oriented Design”
Super Simple Lambda Thread Pool
I wanted to quickly create a thread pooler that could be passed lamdas. Turns out it’s super simple. Here are the main things I wanted to accomplish: pass lamdas as tasks to be executed asap. be able to wait for all tasks to execute create a bunch of threads at initialization and them have thenContinue reading “Super Simple Lambda Thread Pool”
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”
C++ lambda and how the world is different now
So, there was the world of C++ before the lambda. And now there’s the world of C++ since the lambda – and I’ve got to say, if you aren’t using lamdas, then your’e probably still in the C++ stone age. This post is going to be all about lamdas and how rad they are. DoContinue reading “C++ lambda and how the world is different now”
SOA sorting
So in my current project, I’m using a library which uses a programming methodology called, SOA, or structure of arrays, which is different than OOP ( object-oriented-programming). Basically, in SOA, instead of having an object with 10 properties, and a vector of those objects, you have a structure with 10 vectors each containing one property.Continue reading “SOA sorting”