🦋 Calling C++ and Fortran functions from Raku using the NativeCall interface

Some time ago, I published an article about using NativeCall in Raku to call functions written in C. Today, let’s see how you can call simple functions written in C++ or in Fortran. There will be three examples for both languages: A function printing a message A function returning a number A function taking an … Continue reading “🦋 Calling C++ and Fortran functions from Raku using the NativeCall interface”

Implementing a stack-based language in Raku

I assume there is no need to tell what a stack is, and a stack-based programming is something that uses the stack to perform all the operation. The program flow in such a language resembles a reversed Polish notation, when you first list the operands, and then the operation: 40 2 + There are a … Continue reading “Implementing a stack-based language in Raku”

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

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

Io at a Glance — A Language a Day, Advent Calendar 2019 Day 23/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 23 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Io programming language. Table of Contents Facts about the languageInstalling and running IoVariablesFunctionsObjectsInheritanceConcurrencyGet more Facts about the language Prototype-based, object oriented Dynamically typed A homoiconic language Appeared in … Continue reading “Io at a Glance — A Language a Day, Advent Calendar 2019 Day 23/24”

Zig at a Glance — A Language a Day, Advent Calendar 2019 Day 22/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 22 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Zig programming language. Table of Contents Facts about the languageInstalling and running ZigVariables and constantsFunctionsCompile-time evaluationCatching errorsStructsGet more Facts about the language Some facts about the Zig programming … Continue reading “Zig at a Glance — A Language a Day, Advent Calendar 2019 Day 22/24”

D at a Glance — A Language a Day, Advent Calendar 2019 Day 21/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 21 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the D programming language. Table of Contents Facts about the languageInstalling and running DVariablesFunctionsA word on functional programmingUnicode supportClassesConcurrencyMessagesGet more Facts about the language Some facts about the D … Continue reading “D at a Glance — A Language a Day, Advent Calendar 2019 Day 21/24”

Mercury at a Glance — A Language a Day, Advent Calendar 2019 Day 20/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 20 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Mercury programming language. Table of Contents Facts about the languageInstalling and running MercuryWhat all those :- and . are aboutVariablesFunctions and predicatesWhat unification isGet more Facts about the … Continue reading “Mercury at a Glance — A Language a Day, Advent Calendar 2019 Day 20/24”

Red at a Glance — A Language a Day, Advent Calendar 2019 Day 19/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 19 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Red programming language. Table of Contents Facts about the languageInstalling and running Redprint and prinWordsVariablesPrecedence and execution orderFunctionsRefinementsObjectsInheritanceGet more Facts about the language Some facts about the Red … Continue reading “Red at a Glance — A Language a Day, Advent Calendar 2019 Day 19/24”

Hy at a Glance — A Language a Day, Advent Calendar 2019 Day 18/24

About this ‘A Language a Day’ Advent Calendar 2019 Welcome to Day 18 of this year’s A Language a Day Advent Calendar. Today’s topic is introduction to the Hy programming language. Table of Contents Facts about the languageInstalling and running HyLooking at the Python codeVariablesFunctionsCalling a methodClassesUsing modulesResourses Facts about the language A dialect of List … Continue reading “Hy at a Glance — A Language a Day, Advent Calendar 2019 Day 18/24”