Archiv des Autors: oliverfunke

Tuples in C# 7 (ValueTuple)

Within this article I want to give a short overview over the new Tuple features in C# 7. So far, we already had a Tuple class in C#.  But with the new one some technical details have changed and some … Weiterlesen

Veröffentlicht unter C# | Kommentar hinterlassen

Software Transactional Memory

One of the main challenges in multithreading applications is the access to shared memory. In case you have several software-components which want to read and write to shared memory you must synchronize these data access. The concept of Software Transactional … Weiterlesen

Veröffentlicht unter C++ | Kommentar hinterlassen

std::atomic

Within multithreading applications even trivial functions like reading and writing values may create issues. The std::atomic template can be used in such situations. Within this article I want to give a short introduction into this topic.   Atomic operations Let’s … Weiterlesen

Veröffentlicht unter C++ | Kommentar hinterlassen

Deconstruction in C# 7

C# 7 introduces a nice syntax to deconstruct a class and access all members. If you want to support deconstruction for an object you just must write a “Deconstruct” method which contains one or more out parameter which are used … Weiterlesen

Veröffentlicht unter C# | 1 Kommentar

Local or nested functions in C# 7

With C# 7.0 it is possible to create functions nested within other functions. This feature is called “local functions”. The following source code shows an according example.   The function “Calc” is nested within the function “DoSomething”. As a result, … Weiterlesen

Veröffentlicht unter C# | Kommentar hinterlassen

The Visitor Pattern – part 9: summary

This article is one part of a series about the Visitor pattern. Please read the previous articles to get an overview about the pattern and to get the needed basics to understand this article. As this article is the last … Weiterlesen

Veröffentlicht unter C++ | Kommentar hinterlassen

The Visitor Pattern – part 8: over engineering

This article is one part of a series about the Visitor pattern. Please read the previous articles to get an overview about the pattern and to get the needed basics to understand this article.   Motivation Normally, I would like … Weiterlesen

Veröffentlicht unter C++ | Kommentar hinterlassen