Crystal at a Glance — A Language a Day, Advent Calendar 2019 Day 6/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 6 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Crystal programming language. Table of Contents Facts about the languageInstalling and running CrystalVariablesFunctionsProcClassesGetters and settersClass variablesInheritanceConcurrent computationGet more Facts about the language Some facts about Crystal Based on … Continue reading “Crystal at a Glance — A Language a Day, Advent Calendar 2019 Day 6/24”

Modern C++ at a Glance — A Language a Day, Advent Calendar 2019 Day 5/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 5 of this year’s A Language a Day Advent Calendar. Today’s topic is an overview of the very-well updated C++ programming language. C++ feels like a new languageB. Straustrup, A Tour of C++ You may reasonably ask what’s up with C++? It appeared about … Continue reading “Modern C++ at a Glance — A Language a Day, Advent Calendar 2019 Day 5/24”

Kotlin at a Glance — A Language a Day, Advent Calendar 2019 Day 4/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 4 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Kotlin programming language. Table of Contents Facts about the languageInstalling and running KotlinVariablesFunctionsLambdasClassesObjectsGetters and settersInheritanceCoroutinesGet more Facts about the language Some facts about the Kotlin programming language: It … Continue reading “Kotlin at a Glance — A Language a Day, Advent Calendar 2019 Day 4/24”

Julia at a Glance — A Language a Day, Advent Calendar 2019 Day 3/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 3 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Julia programming language. Table of Contents Facts about the languageInstalling and running JuliaVariablesIdentifiersA note about numbersFunctionsType annotationLambdasMultiple dispatchFunctions changing their argumentsComposite typesConcurrency and parallelismChannelsGet more Facts about the … Continue reading “Julia at a Glance — A Language a Day, Advent Calendar 2019 Day 3/24”

Rust at a Glance — A Language a Day, Advent Calendar 2019 Day 2/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 2 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Rust programming language. Table of Contents Facts about the languageInstalling and Running RustVariablesFunctionsMacrosObject-oriented featuresError handlingFile not foundConcurrencyGet more Facts about the language Some facts about Rust: Syntactically close … Continue reading “Rust at a Glance — A Language a Day, Advent Calendar 2019 Day 2/24”

TypeScript at a Glance — A Language a Day, Advent Calendar 2019 Day 1/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 1 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the TypeScript programming language. Table of Contents Facts about the languageInstalling and running TypeScriptVariablesFunctionsOptional and defaults parametersLambdasClassesInterfacesError handlingAsynchronous computingGet more Facts about the language Some facts about TypeScript: TypeScript … Continue reading “TypeScript at a Glance — A Language a Day, Advent Calendar 2019 Day 1/24”

‘A Language a Day’ — Advent Calendar 2019

Welcome to my Advent Calendar 2019. Last year, I was publishing daily articles about one-liners in Raku. This year, I decided to spend time on filling the gap in other areas and try as many other languages as possible. During the last decade or so, a lot of programming languages appeared. Some of them are … Continue reading “‘A Language a Day’ — Advent Calendar 2019”

The Raku stand at FOSDEM 2020

A few weeks ago, I submitted a booth request for promoting the Raku programming language at the next year’s FOSDEM in Brussels (1–2 February 2020). Just got a confirmation that the stand is accepted. More details of whether it is a 2-day stand or it is only there on Saturday or on Sunday, and where … Continue reading “The Raku stand at FOSDEM 2020”

Initializer lists in C++

Initializer lists, or if you prefer, initialiser lists, are a great addition of C++ 11, which allows you to 1) initialize your list-like classes and 2) uniform the initialisation of such objects comparing to what you can do with the built-in types. Let us demonstrate it on the following example, which uses a simple array … Continue reading “Initializer lists in C++”

Avoiding naked new in modern C++

The old-days way of acquiring memory resources is to have a pair of malloc and free calls. The C++’s addition, the new and delete keywords simplified the syntax, but did not eliminate the problem of proper memory management. The Problem Here is a typical approach: you create some place for your data, get a pointer, … Continue reading “Avoiding naked new in modern C++”