Thursday 21 May 2020

Camera Application in Windows 10

In Windows 10 the Camera application won't work if another application is using the camera.  You will see the error code "AllCamerasAreReserved". You can look in Task Manager to see if there are processes which may be using the camera e.g. Skype. It may also be possible that Privacy Settings prevent access to the camera from the Camera app. These can be altered by typing "Privacy Settings" in the Windows Search Bar, looking under "App Permissions" (below "Windows Permissions") and selecting Camera.

Tuesday 19 May 2020

CPU Pinning for Multicore Champions

CPU pinning is a practise also discussed under the byword of  "processor affinity".  The idea is to execute a thread or process only a designated CPU. Another less frequent term for the phenomenon is "predestination". 

The King of Microsoft Compiler Flags - /std:c++latest

Use this flag if you want to utilise the latest C++ standard features, including some not yet finalized.

Monday 18 May 2020

Concepts have come to C++ 20

Concepts are an extension to templates. They are compile-time-evaluated predicates on template parameters. Their origins lie in discussions around C++11 and are now a required part of C++20. MSVS 2019 version 16.3 supports concepts and links to their formal description. Stroustrop has also blogged on this topic.

Sunday 10 May 2020

F# on Azure

F# is being built for the cloudAzure Functions supports functions-as-a-service.

Haskell Vs Erlang

Haskell and Erlang are both functional programming languages. Erlang has multithreading built in and has been historically more industry focused with its roots in the telecoms industry. F# is another functional language that supports concurrency through the async computation expression.