Lecture 1
Lecture 1
CS/CE 224/272
Nadia Nasir
• Syllabus
• Course expectations
• Hello world!
Syllabus
Why C++
• C++ is more performant
• In the context of ML, most engines are written in C++ with Python used to
make calls to backend engine
• Classes
• Inheritance
• Reusability
• A C++ must always have a ‘main’ function. This is the entry point of
the code
The disadvantage of interpreted languages is that they are slow since the
translation is done at the each time the instructions are executed. Python,
and MATLAB are examples of interpreted languages.
Here is a simplified representation of the interpretation process
Another way to handle the translation is to compile the source into
machine readable programs once and save the machine language
instructions in a separate executable file.
When the executable file is run, the translation step is skipped and the
program runs much faster than if it were written using a interpreted
language.