Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Alma

< >

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

#1182on PLDB 10Years Old
Download source code:
git clone https://github.com/masak/alma
HomepageSource Code

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));

- Build the next great programming language Add About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v144.0.0