🦋 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. Facts about the language Some facts about the Factor programming language: A concatenative stack-based language Dynamically typed Appeared in 2003 Website: factorcode.org Installing and running … 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. Facts about the language Prototype-based, object oriented Dynamically typed A homoiconic language Appeared in 2002 Website: iolanguage.com Installing and running Io To install Io, download … 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. Facts about the language Some facts about the Zig programming language: Aims for creating reliable and robust software (e. g., no hidden memory allocations) Re-thinking … 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. Facts about the language Some facts about the D programming language: Re-thinking of C++ Static typing and type inference Allows imperative, object-oriented, and functional programming … 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. Facts about the language Some facts about Mercury: Based on Prolog Declarative programming Compiled language (unlike Prolog) Appeared in 1995 Website: www.mercurylang.org Installing and running … 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. Facts about the language Some facts about the Red programming language: Based on Rebol Can be used for low-level programming (via Red/System) and as a … 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. Facts about the language A dialect of List Basically, it is Python written with the syntax of Lisp Appeared in 2013 Website: hylang.org Installing and … Continue reading “Hy at a Glance — A Language a Day, Advent Calendar 2019 Day 18/24”