There is a popular mathematical result which says that the sum of all natural numbers is -1/12. I have discussed it in detail here. This looks very unintuitive to a first time observer. In fact, most people would say that this is some kind of mathematical trickery. How can a bunch of positive numbers sum … Continue reading What Is Zeta Function Regularization?
How To Setup Nginx For Load Balancing?
Let's say that you have a nice idea for a website and you want to host it somewhere to make it available to the users. To do this, you put your website on a server somewhere on the cloud. Then, you purchase a domain name and you redirect all the requests to this server. But … Continue reading How To Setup Nginx For Load Balancing?
What Is Relative Entropy?
In this blog post, we will be using a bit of background from my previous blog post. If you are familiar with the basics of entropy coding, you should be fine. If not, you may want to quickly read through my previous blog post. So coming to the topic at hand, let's continue our discussion … Continue reading What Is Relative Entropy?
What Is Entropy Coding?
Entropy Coding appears everywhere in modern digital systems. It is a fundamental building block of data compression, and data compression is pretty much needed everywhere, especially for internet, video, audio, communication, etc. Let's consider the following scenario. You have a stream of English alphabets coming in and you want to store them in the best … Continue reading What Is Entropy Coding?
HTTP vs HTTPS: Latency Comparison
I recently came across the issue of latency differences between HTTP and HTTPS. It got me curious and I started looking into it. To give a quick introduction to those who are new to this, HTTP stands for Hypertext Transfer Protocol and it's a protocol for communication over the internet. Whenever somebody types something into … Continue reading HTTP vs HTTPS: Latency Comparison
The Cost Of Abstraction In Python
People who have been coding for years will tell you that abstraction is always a good thing. It makes the system more robust and tolerant to future changes. Recently, I've been working on some Python libraries that wrap C extensions. While working on those libraries, a couple of interesting things came up.This blog post is … Continue reading The Cost Of Abstraction In Python
Homomorphism vs Homeomorphism
Did you get the joke in the picture to the left? If not, you will do so in a few minutes. I was recently reading an article and I came across the terms mentioned in the title. From the looks of it, they are very close to each other, right? In many fields within mathematics, we talk … Continue reading Homomorphism vs Homeomorphism
Why Is Python Slow?
When people talk about speed in the world of programming languages, they usually center the discussion around compiled vs interpreted languages. In this post, we will discuss two of the most famous languages on this planet, Python and C. I was recently playing around with this and I made a few pleasant discoveries. So I … Continue reading Why Is Python Slow?
Functors In C++
When you look at the word “functor”, the first thing that comes to mind is that it looks very similar to “function”. The word actually comes from a field called category theory, which is an abstract branch of mathematics. A category basically consists of objects that are linked to each other in certain ways. This … Continue reading Functors In C++
A Beginner’s Look At Lambda Calculus
Back in school, you must remember studying differential and integral calculus. Now what on earth is lambda calculus? Well, lambda calculus is basically a simple notation for functions and applications in mathematics and computer science. It has a significant impact in the field of programming language theory. It forms the basis for all the modern functional … Continue reading A Beginner’s Look At Lambda Calculus