Measures Concepts
GitHub icon

Alma

Alma - Programming language

< >

Alma is a programming language created in 2014 by Carl M盲sak.

Source code:
git clone https://github.com/masak/alma
#1329on PLDB 10Years Old

Alma is a small language created as a testbed for Raku macros.


Example from the web:
macro swap(a, b) { return quasi { my t = {{{a}}}; {{{a}}} = {{{b}}}; {{{b}}} = t; }; } func gcd(a, b) { if b { return gcd(b, a % b); } return a.abs(); } my bigger = +prompt("Enter the bigger integer: "); my smaller = +prompt("Enter the smaller integer: "); if bigger < smaller { swap(bigger, smaller); } say(); say("Greatest common denominator: ", gcd(bigger, smaller));

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout