Trith
'''Trith''' is an experimental stack-based, concatenative programming language by Arto Bendiken. It is dynamically typed and has a homoiconic program representation. The implementation currently consists of a virtual machine, interpreter, and compiler toolchain written in Ruby and an in-the-works runtime targeting the JVM.
Trith programs are simply nested lists of operators and operands, with the operators identified by URIs. This means that Trith code can be straightforwardly represented externally either as S-expressions or as Linked Data in the form of RDF triples.
Trith is inspired and influenced by the author's experience with Forth, Lisp and Scheme in general, and the concatenative languages Joy, XY, Factor and Cat in particular.
Tasks
- Array concatenation
- Averages/Arithmetic mean
- Boolean values
- Character codes
- Conditional structures
- Copy a string
- Empty program
- Flatten a list
- Generic swap
- Greatest element of a list
- Hello world!
- Hello world/Text
- Higher-order functions
- Infinity
- Loops/Downward for
- Loops/Foreach
- Loops/Infinite
- Loops/While
- Singly-linked list/Traversal
- String length
- Sum and product of an array
- Sum of squares