Categories
C++Programming

Requires clause for overload resolution – real-world example

Intro This is the third (and probably last) article of my small mini series about maybe not so well known C++ features / pattern / programming techniques for which I found a practical usage during programming on my private projects. This time the topic is about the requires clause for overload resolution. The requires clause […]

Categories
C++Programming

An unevil const_cast – real-world example

Intro This is the second article of my small mini series about maybe not so well known C++ features / pattern / programming techniques for which I found a practical usage during programming on my private projects. This time the topic is about const_cast<T&>. const_cast is considered evil It is more or less indisputable, that […]

Categories
C++Programming

Ref-qualified overloads – real-world example

Intro This article is the first one of a small mini series of C++ related articles where I will show and explain some C++ features, which might be a little uncommon in its usage at least for some (or even many?) of C++ programmers – probably because the practical usage of these features is not […]

Categories
TeaScript

Why array support is postponed

In the release article of the last TeaScript release I mentioned that the next release will add support for arrays as container. I postponed the array support and the next release (right around the corner) will not contain it. In this article I explain why. First a short recap. The ValueObject version is most flexible […]

Categories
C++Programming TeaScript

Script Language comparison for embed in C++

Intro Sometimes you need to extend your C++ Application dynamically during runtime with something what is not known at compile time yet. For easy things you can provide config files which may be changed prior before the application is started. The Application reads the config files on startup and use the contained settings accordingly. But […]

Categories
TeaScript

TeaScript VS ChaiScript Fibonacci Benchmark

I created a benchmark in C++ for testing and comparing TeaScript and its competitor ChaiScript by computing the Fibonacci number of 25 recursively. As a reference I did the same also in C++. The complete source code of the benchmark is available below. The result is pretty amazing, since with the used pre-release 0.8.0 of […]

Categories
C++Programming

TOP 5 most astounding C++20 Syntax

❆ Welcome πŸ‘‹ to my πŸŽ„πŸŽ…πŸŽ Christmas πŸŽ„πŸŽ…πŸŽβœ¨ Special✨ β†β˜ƒ! Today I present you my personal TOP 5 most astounding C++20 syntax constructs. Hope you will enjoy and maybe will see something new and/or interesting. Here it goes: No. 5: This line creates an empty lambda and directly executes it. Effectively, you can consider it […]

Categories
TeaScript

Release of TeaScript 0.8.0 (for πŸ€FREEπŸ€)

πŸ”₯πŸ”₯πŸ”₯ Available NOW!!! πŸ”₯πŸ”₯πŸ”₯ Proudly😎 and happily😊 I am hereby announcing the first Release of the πŸš€TeaScript 0.8.0πŸš€ Host Application (Standard version) available for πŸ€FREEπŸ€! β˜›β˜›β˜› Try and download it here! ☚☚☚ NO INSTALLATION REQUIRED – Just download, unpack and use it! It was a long journey since my first ideas in March until the […]

Categories
C++Programming

Unions are almost always a bad idea.

This post was viewed [wpstatistics stat=pagevisits time=total id=748] times. To use a classical union from C is almost always a bad idea in C++ and you should use std::variant instead. I show you why. And I also will show you in which big(!) trap I ran into myself with a union. We start with a […]

Categories
C++Programming

Quick and easy way to share Visual Studio settings in Git.

For rapid prototyping you don’t need to deal with cmake at all for can work in small groups or on different machines – the Visual Studio Property Sheets explained!