In the previous post, I briefly mentioned an overview of how the cling interpreter works, so if you haven’t checked that post out, I encourage you to go and have a look at it.

Setting Cling Up:


Cling is built on top of Clang, hence it, unfortunately, works only on the platforms where clang feels at home, which is not windows.

You need a Unix-like operating system.

you can however still use Cling on WSL (Windows Subsystem for Linux), which is available with Window 10 64 bit.

How to install Windows Subsystem for Linux (WSL) — Windows 10

Installing Cling:

Manual Install:

Method 1:

Open up the bash terminal…

I learned Python as my first language, and have been learning C++ for a couple of months now, and the major thing I miss from Python is the command-line interpreter, may it be IPython or the built-in one, you can just test the code on the fly.

On the contrary in C++, I have to create a new file, type all the starter code, (even more ordeal in Visual Studio) …. then I forget what I was going to do! So frustrating right?

I am loving the language, but when I am working on a project, and I have to…

I am a first-year computer science student, recently I learned about Hamming Codes and Error correction. I was impressed by the elegance of it, add to it the overwhelming explanation of 3Blue1Brown.

The video makes Hamming codes and error correction as discoverable as possible (which a lot of explanations lack), the instructor realizes the mathematics behind with stellar animations. In the end, we get a precious Aha moment, and trust me! nothing is more satisfying than that!

By the end of part 2, he also tries to implement a python code to do the same repetitive (yet not menial)…

If you type something like this in a Python interpreter,

0.1 + 0.1 + 0.1 == 0.3

Surprisingly it outputs False.

Kaustubh Narkhede

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store