Python becomes more and more popular. It has lots of libraries one can use. But if you need to do complex calculations it’s not very effective. Better approach would be create CPU consuming part in[…]
Tag: C++
WebAssembly, part II
In the previous post we setup a tool chain to build WebAssembly code and created our first Hello World application. In this step we will learn how to call WebAssembly from JavaScript and how call[…]
WebAssembly 101
WebAssembly is a low level code (similar to assembly), which could be written in C/C++ or Rust, compiled (to .wasm file), and run in a browser together with JavaScript. To create WebAssembly binaries we will[…]
Visual Studio Code for C++ on Linux
To be a productive developer good editor/IDE is essential. On Windows nothing could beat Microsoft Visual Studio (in my opinion). On Linux I don’t have enough experience to make decision yet. For small projects Microsoft[…]
GoogleTest, Unit Test for C++
There are several unit test frameworks for C/C++ but we will take a look at Google Test. First you will need to download and build it. It’s available here. Follow the instructions how to build[…]
makefiles, part II
Like I said with just one file it doesn’t make sense to create a makefile. Let’s create something more complex. Let’s create four files: main.cpp, class1.cpp, class1.h and common.h // common.h #pragma once enum class[…]
makefiles, part I
got tired of remembering all compiler and linker switches? I got a good news for you – you can setup everything once and forget about it. One way is to user some studio and create[…]
Hello, World on C/C++ on Windows, part II
This time we are going to use Windows SDK. We are going to write a program which would accept file name as command line parameter and would print out content of that file. This could[…]
Hello, World on C/C++ on Windows
On to Windows. And we will continue using command line only, no Studio yet. The are two options in my opinion: Cygwin which is Linux stimulations and Build Tools for Visual Studio 2019 (scroll down[…]
Hello, World on C/C++ on Linux, part II
Last time we wrote C application, this time let’s do a C++. Our Hello, World could look like this: #include <iostream> int main() { []{ std::cout