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.

BackroomsTDP

From Esolang
Jump to navigation Jump to search

BackroomsTDP is a programming langauge created by User:Miui. TDP stands for "ternary digit pointer" and "Backrooms" is a reference to the way programs seem to no-clip through a wall.

Ternary Digit Pointer

This table more or less describes the digital map/code scheme.

ternary digit pointer
Ternary representation brainfuck pattern Morse code
00 + (!:/) ⋅ - - - -
01 - (\1) ..---
02 , (2 ) ..--- -----.
10 . S ⋅ ⋅ ⋅
11 < (O) - - -
12 > ("SOS") ⋅ ⋅ ⋅ - - - ⋅ ⋅ ⋅
20 [ (!  ! !) dot
21 ] (!  ! ! ) dash
22 << (!  ! !!) intra-letter
100 [] (") end-of-letter

TDP Register

There is a TDP register which Gödel-encodes the input string via taernary. By exploiting the ternary logic encoded in our standard character sets we use mod 20, 21, 22 (user_space, !, ") and generate the hexadecimal expression. This yields BackroomsTDP "M" codes.

BackroomsTDP registry model
Basis pseudocode
Basis(3(6(18(base3 + "hex" + 10bcd))) (ternary_digit_pointer = [int(d) for d in format(int(M,16),"08b")])
Python(tdp[I](Backrooms[P](["M",T]))) binary_seed = [int(b) for b in format(int(hex_repr, 16), "08b")]


!:/"!!!!!!!!!!!!!" / "!!!"\"           !""!!!!""!!!!!" / "!!!!!"\"  !""!"!!!!!!!
!!!!!!""          !""!!!!!!!!!!!!""!!!!!"\/
\/
11284E6C09F70C4A4B6EB01A477E97C7B94EE877D559E7
!!!!!!!!!!!!!!!!!!!!!!!! !!! !! ! !!!! !!   !!  !
!!!!!!!!!!!!!!!!!!!!!!!!  !!  !    !!!  ! !! ! !  !
!!!!!!!!!!!!!!!!!!!!!!!! ! ! !  !!! !! !   !     !
!!!!!!!!!!!!!!!!!!!!!!!!       ! !!  !   !!  !!!!
!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!   ! !  !! ! ! !!! !
!!!!!!!!!!!!!!!!!!!!!!!!  !!!!! !!    ! !      !!
!!!!!!!!!!!!!!!!!!!!!!!! ! !!!!  ! !!!    !!!!! ! !
!!!!!!!!!!!!!!!!!!!!!!!!    !!! !   !! !!! !!!!
!!!!!!!!!!!!!!!!!!!!!!!! !!! !!   !! !  !!  !!! !!!
!!!!!!!!!!!!!!!!!!!!!!!!  !!  ! !! !   ! ! ! !!  !!
!!!!!!!!!!!!!!!!!!!!!!!! ! ! !   !   !!       ! ! !
!!!!!!!!!!!!!!!!!!!!!!!!       !!  !! ! !!!!!!

where 11284E6C09F70C4A4B6EB01A477E97C7B94EE877D559E7 is the "M" code for input

!:/"!!!!!!!!!!!!!" / "!!!"\"           !""!!!!""!!!!!" / "!!!!!"\"  !""!"!!!!!!!
!!!!!!""          !""!!!!!!!!!!!!""!!!!!"\/
\/

examples

input is associated with :/ string and output is formatted by \ i.e. Slashalash

Morse-code SOS

example type: (pulsed)
This type of code (denoted by sequential quotation marks) is a pulsed program.
This code would generally output either a quine of brainfuck code for SOS (or actually step through bf execution and combine the signal.)

!:/"!  ! !!  !  ! !!  !  ! !!""!  ! ! !  !  ! !  !  ! !""!  ! !!  !  ! !!  !  ! !!"
\/

example type: (stream)
This type of code steps through Soh_supplementary_private_use_area-b_u+10fffe execution, but the signal is already combined and is considered "private" so it only outputs a quine.

!:/ !!!""!""!!!""!
\/

"Hello, World!"

example type: (stream)
This type of code is capable of streaming an encoded message.
ASCII.

!:/"!!"!!"!!""""!""""!  ""   !"!""!"!"""""!  """!""""!"! !"!! ! "
\/

TernLSB

!:/"!!!!!!!!!!  !       !          !  !     ""  "" !       ""  ! ""               ""  """"""""   "" "
\/

interpreter

minimal python SOS via �􏿾

PRIVATE = {
    "S": "1>-?|<-p->+1+?|<1+->>T<-D-1?|>1+>>1-?S<-R>+?-W--1-V-U?--<+T1O->1-->1--+<<->1-?|>-T>1111111111111􏿾", #prints S
    "O": "1-1<111111􏿾", # literally prints @
    "SOS": "1>>>>>>-?|<---><->1?|<--1+->><>>?|>->->>T<--1?|>1>>1-<->?<1--?<<>--<1O>1-->1--<<>1-?|>􏿾" #literally prints @.@
}

#20(!  ! !)
#21(!  ! ! )
#22(!  ! !!)
#100(")
input("!:/")
def private_mode_from_morse(morse_letters):
    code = "".join(SOS_PRIVATE[ch] for ch in morse_letters if ch in SOS_PRIVATE)
    return soh_supplementary_private_use_area_b_u_plus_10fffe(code)