This is the second post in a series of posts where we will learn how to build a cross-platform C++ library which can be seamlessly called from .NET Core applications using P/Invoke on all supported platforms. In the previous post we created a C++ library which exports a simple function. We then compiled this library under Windows, Linux and MacOs. In this post we will create a .NET Core console application which will bundle all native binaries and seamlessly call our exported function in a uniform way.

All source code is available at my GitHub repo: https://github.com/olegtarasov/CrossplatformNativeTest. You can easily…


This is the first post in a series of posts where we will learn how to build a cross-platform C++ library which can be seamlessly called from .NET Core applications using P/Invoke on all supported platforms. We will gradually build a library which will take us from a simple “Hello world” to more complex tasks like string and structure manipulations.

All source code is available at my GitHub repo: https://github.com/olegtarasov/CrossplatformNativeTest. You can easily inspect the code for each post using tags. For this post the tag is 1_hello_world.

In this post will set up the environment and cover basic things…


In this post we will learn how to build the latest version of fastText Python wrapper under Windows. We will use Anaconda to create a separate environment, but this should work under any environment manager or with no environment at all.

This will be a step-by-step guide, so feel free to skip some basic stuff like Anaconda installation.

Step 1. Install Anaconda.

This is simple. Just go to https://www.anaconda.com/download/ and download the latest version of Anaconda for Windows. I’m using Python 3.x and didn’t test this with 2.7.

Install Anaconda with default settings, adding it to your PATH.

Step 2. Install Visual Studio Community Edition.

This step is not obvious, but…

Oleg Tarasov

I am the head of Machine Learning team at the IT department of MTS — the larget telecom operator in Russia.

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