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.

0bIN

From Esolang
Jump to navigation Jump to search

0bIN is a programming language that uses only binary (You need to convert the symbols into binary).

The name came from 0b and the file extension .bin

Language overview

The Unbined How to
+ Add 1 to selected item
- Subtract
( Loop based on number (e.g. 1())
) End loop
[ Move pointer
] Move pointer
String to item
Input
~ Escape loop

Convert the symbols to binary, then put them together into one single line.

Command Description
0b Start a line, can begin with a letter or number because function
_ Do function (e.g. 1_)
= Output the selected item
. Reset the pointer back to 0
$ Begin program
; End program
{ Start the “normalized” 0bIN code
} End the normal cod
: Separate
# Comments

Examples

XKCD Random Number:

$
0b00101011001010110010101100101011
=
;

Better looking xkcd:

$
{++++}
=
;

Cat:

$
0b001100000110001000110000001100010011000100110000001100010011000000110000001100010011000000110001001100010011000000110001001100010011000100110000001100000011000100110001001100000011000000110001001100010011000000110000001100000011000100110000001100010011000000110000001100000011000100110001001100010011000000110000001100000011000100110000001100010011000000110000001100000011000000110000001100000011000000110001001100000011000000110001001100010011000000110000001100000011000000110001001100010011000100110001001100010011000100110000001100000011000000110001001100000011000100110000001100000011000100001010001111010000101000101110
;

Better looking version:

$
{{inf(‘~)}=}
;

Hello, World!:

$
{“Hello, World!”}
=
;

One line Hello World:

$:{“Hello, World!”}:=:; #Pretty Short