We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

INT

From Esolang
Jump to navigation Jump to search
INT's logo.

INT is a golf language inspired by GolfScript. It's intended to minimise space further, allowing for maximum code per byte while still remaining readable on first glance. However, this comes with the consequence that INT is not as dense as other golfing languages. INT was made in 2026 by ASCIIguy as a golfing language meant to remain human-readable but still compact code. It is intended to be a semi-serious golfing language, with solely serious commands and syntax but not to cheat by implementing commands for every single task or idea. The name INT is a backronym of Inappreciable Numeral Talk.

Commands

INT instructions
Character Argument[s] Action
! int Logical not.
! n/a Print stack.
$ n/a Checkpoint for ^.
$ int Square root.
$ int, int log int(int).
^ int Push.
^ char Print.
^ int, int Logical xor.
^ n/a Jump back to previous $.
V int Pop.
V char Input.
. int Duplicate on stack.
* int, int Multiply.
* int Increment.
* int, block Execute n times.
* int, bool Construct an n-long array of alternating boolean values, beginning with what is marked.
* block Check if block ever terminates.
* cond, block While.
/ int, int Divide.
/ int Decrement.
/ cond, block If.
? int, int Logical and.
? int Construct array n-long of [0, 1, ..., n - 1].
? list Find length of list.
? var, int Define var as int.
? var, int (following an if statement) Equal to.
+ int, int Addition.
+ n/a NOP.
+ int Double.
+ block Else.
+ cond, block Elif.
- int, int Subtraction.
- var Remove variable.
- int Return.
~ var Define function. ( ~d.x is an example for parameters)
~ int Halve.
% var Goto function.
% var, int Modulo.
% int Digital root.
& int, bool Go back/forwards (0 = back, 1 = forwards) n instructions.
& int Square number.
& int, int Logical or.

While the language is intended to be a golfing language, and a more compact one at that, it will not be the smallest and it won't beat other languages much. That is to be remembered with INT.

Syntax

A block begins with [ and ends with ], and a list begins with ( and ends with ). Prefix notation is used, reducing the need for parenthesis. All new variables are auto-initialised to 0. To separate two numbers in an operation, use a comma. For example, +3,2. Boolean values are represented with T and F.

Examples

See INT/Examples.