Janet

Janet is a functional (and imperative) cross-platform interpreted (and compiled) lisp-inspired language with batteries-included api that makes a good system scripting language, or a language to embed in other programs.

The entire language (core library, interpreter, compiler, assembler, PEG) is less than 1MB.

Resources

Official Site

Notes

Very Basics

Starting off with minimum required to do anything

Data Types:

Comments start with a #

Data Structures:

Bindings:

anything with paren tuple (...) is “called” (conventionally called “forms”)

Conditionals:

Loops:

OPINION: Avoiding mutable loops and stick to functional paradigm

Arithmetic (<op> <expr> <expr2>) and Comparisons (<cmp> <expr> <expr2>) work as usual: