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.

Paltacate

From Esolang
Jump to navigation Jump to search

Paltacate is a programming language heavily inspired by Brainfuck in terms of having similar instructions, but not necesarily similar syntaxis, and making use of one single character (being "πŸ₯‘").

source code available on it's official repository

Rules

Paltacate runs under a few rules to consider:

  • Instructions are written using "πŸ₯‘".
  • Any non "πŸ₯‘" character is ignored.
  • Invalid instructions are notified and ignored.
  • Instructions are chosen based on how many "πŸ₯‘" are there in a line.
  • First line is used to allocate memory.
  • Memory slots wraps around.
  • Memory slots are all 32 bits integers.
  • Loops stops when the selected memory slot is less than 0.

Program structure

Memory Allocation

A functional program only requires one thing to work: set a valid amount of memory to work with, you chose how much memory slots you want based on how many "πŸ₯‘" you write on the first line.

Running the program

All instructions are being read from top to bottom, only exception are loops which can go up on demand.

Instructions

Paltacate only has 7 instructions:

Num Instruction Definition
1 πŸ₯‘ Adds how many "πŸ₯‘" are there in the next line to the selected memory slot, and jumps to the next line.
2 πŸ₯‘πŸ₯‘ Substracts how many "πŸ₯‘" are there in the next line to the selected memory slot, and jumps to the next line.
3 πŸ₯‘πŸ₯‘πŸ₯‘ Moves memory pointer 1 slot to the right.
4 πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘ Moves memory pointer 1 slot to the left.
5 πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘ Prints selected memory slot value as a character.
6 πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘ Loop start, will jump to Loop end if the selected memory slot is less than 1.
7 πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘ Loop end, Jumps to Loop Start if it's condition requieres a loop.
8 πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘ Asks for a character and stores it in the selected memory slot.

Examples

Print all ASCII characters

πŸ₯‘πŸ₯‘ Allocate 2 slots

====== Printing all characters in an ascii table =======

Explaination:
	1. use a loop to multiply 17*11 to get up to 255 (limit of an ascii table)
	2. move to that slot with value 255
	3. print, substract 1, repeat.
	4. eventually, the slot value will be under 1 and the loop will end.



now the program itself:


add 17 to slot 1:
πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘


πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘    loop start

	πŸ₯‘πŸ₯‘πŸ₯‘          move forward to slot 2

	add 15:
	πŸ₯‘
	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘

	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘        move backward to slot 1

	πŸ₯‘πŸ₯‘           substract 1
	πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘  loop end


πŸ₯‘πŸ₯‘πŸ₯‘         move forward to slot 2


πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘   loop start

	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘     print character

	πŸ₯‘πŸ₯‘          substract 1
	πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘ loop end

Hello World

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘ 

πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘  add 12 to slot 1

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘      loop start

	πŸ₯‘πŸ₯‘πŸ₯‘          move to slot 2

	πŸ₯‘              add 6
	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘

	πŸ₯‘πŸ₯‘πŸ₯‘          move to slot 3

	πŸ₯‘              add 7
	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘

	πŸ₯‘πŸ₯‘πŸ₯‘          move to slot 4

	πŸ₯‘              add 3
	πŸ₯‘πŸ₯‘πŸ₯‘


	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘        move to slot 3
	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘        move to slot 2
	πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘        move to slot 1

	πŸ₯‘πŸ₯‘            substract 1
	πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘     loop end

πŸ₯‘πŸ₯‘πŸ₯‘              slot 2

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          H

πŸ₯‘πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          E

πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          L

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          L

πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          O

πŸ₯‘πŸ₯‘πŸ₯‘              slot 3
πŸ₯‘πŸ₯‘πŸ₯‘              slot 4

πŸ₯‘πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          Space
 
πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘            slot 3

πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          W

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘            slot 2

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          O

πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          R

πŸ₯‘πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          L

πŸ₯‘πŸ₯‘
πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘          D

πŸ₯‘πŸ₯‘πŸ₯‘              slot 3
πŸ₯‘πŸ₯‘πŸ₯‘              slot 4

πŸ₯‘
πŸ₯‘

πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘πŸ₯‘         !