C++ Interpreter: cling¶
Cling is an interactive C++ interpreter, developed by CERN for the ROOT project and built on the top of LLVM and clang libraries. Its advantages over the standard interpreters are:
- It has command line prompt and read-eval-print-loop (REPL).
- Uses just-in-time (JIT) compiler for compilation.
Jupyter Kernel: Xeus¶
Jupyter kernels are programming language specific process that run independently and they’re usually based on either IPython or Xeus.
Xeus is a C++ library that facilitates the implementation of kernels for Jupyter and provides a number of kernels such as Xeus-Cling (C++), Xeus-Sql (SQL) and many more.
Xeus-Cling¶
Xeus-Cling is a Jupyter kernel for (C++) based on cling as the (C++) interpreter and the native implementation of the Jupyter protocol Xeus.
We use Xeus-Cling throughout this book to work with our (C++) codes interactively. So, let’s get started to work with it.