From Esolang
Jump to navigation Jump to search

Ririsu is a small, untyped and stack-based concatenative language with some more interesting features like dynamic scoping and occasional purity. The language is under active development, and some features have not been implemented yet, like concurrency.


In Ririsu everything is a pure function that takes in a Stack and Environment and returns a new Stack and Environment. Whenever a token can't be applied (either it isn't understood, or the expected parameters don't match), the token gets pushed onto the Stack.

Since there's no I/O operation in the language, the initial Stack is the contents of the STDIN, and the remaining of the Stack after running the program gets output to the STDOUT.


Compute the sum of all numbers in a list:


Find all the even numbers in a list:


Solve the 100 Doors problem:


External resources