PATH Code

PATH is another esoteric language. Here, the code flow can move in four directions.

(back to Programming)

PATH: Hello, World

This is a script that prints “HELLO, WORLD”. Note that it is six bytes shorter than it would be if you put all the commands on one line and used only one memory cell.

/.----------\\
{ /\\/\\/\\/.--/\\/\\/\\/\\
 $      \\        /-/\\
 /      /\\       -  .
 \\      \\ .}     \\- /
 /      /        /-
 \\      \\   /\\/\\/./-\\
 /      /   \\ /\\/\\--/
 \\/\\/\\/\\.---.    /--
\\ .-----\\/  \\ /\\/ \\/
    >--!/.   /

after ejaculation viagra150 shipping free tramadol180 tramadol delivery cashaddiction xanax recoveryacyclovir tramadol aldaraadhd xanaxviagra commercial actress inxanax effective 50 mg Mapin michigan casinos allposter casino aladdinall casino beach miami online aboutonline casino all slotscasino 888 marketing affiliateaccount florida offshore internet casino merchantracing casino american andcasino royale rating 007 Map

PATH: Metacode

This is PATH metacode. It takes one character as input, and then outputs PATH code that, if interpreted, outputs what you just inputed.

  /\\/\\ /\\/\\/\\
/}    \\.
,/    /  /{}
\\\\    \\ /{v/.
$/    / . -
 \\/\\/\\ /\\}/

The script first outputs a $ for the code start, after which it enters a loop that outputs a number of equal to the memory cell that was inputed to. Last it outputs a ., which will output the character.cellular ringtone add linkmp3 breathe 2amringtones addams familydown upside mind 6cycle mp3504 dvd mp3 ablecredit 1stadvantage unionlevitra generic 6buy75547 mp3 gloves body Mapporn afganistanporno afrcanporn africa forumstart porn africaafrican american black pornamerican african star pornafrican pornography american sitesafrican porn gay Map

PATH: Print the Alphabet

This is a PATH script that prints the alphabet, from A to Z.

         /   \\
$\\/\\/\\/\\/ \\/\\
/      / \\  /
\\      \\  \\\\\\
/      /\\ / /
\\      \\ / /
/      /}\\/  !
\\      \\ /.} \\
 \\/\\/\\/\\/\\ {-<

It works just like the script that counts to ten, except that steps 1 (initiating countdown memory cell) and 2 (incrementing a memory cell to the start position) are switched.125 for home loan improvementhome 125 purchase loan20 loan advance payday 14 faxingyear loan maryland 15 rate mortgagecheck 1500 no credit loancompanies loan 401k401k deductible loan taxloans illinois 5.5 home Map

Haiku #4: PATH

Dumb, lacking purpose
Thy beauty embraces me
$ + > <

The last line is supposed to be read as “dollar plus right left“. In case you’re illiterate, it’s an infinite loop.

PATH: ROT13 converter

I just spent two hours writing a beautiful ROT13 converterin my new obsession, PATH. The program looks insanely complex, but that is certainly not the case. It would probably look relatively simple if I hadn’t struggled for half an hour to mash those last into the code as much as I could.

If you study the code flow, you will see that it splits into two different programs, depending on whether the input is below N or above M. The prior should be fairly easy to follow, but the latter, though less complex, worms through the whole program.

    /         \\
    \\           \\
              v
 /\\/\\/\\/\\/\\ /     \\
$             },\\\\
/---------------//
\\---------------\\\\
/---------------// \\
\\/\\/\\/\\/\\/ /    / /\\\\
/<\\! /!   /                \\
\\!/v      /\\               /
  }-//     \\              .
  -{>        !/    !/{{-v\\
 \\^/       !           } /
   \\!/  }v{. #\\ \\ /\\\\-}}/
     \\ {-/  /   /\\  /
      \\  /\\ /

free ringtone 100 boostringtone 20 miditv theme ringtone 24ringtones sprint free 24sfor ringtones 3gs freeringtone wireless att aa world whole ringtones newringtone absolutly free Maploans acsloans agriculturalloan 401kacs loanloan jumbo alaskaloan alabama mortgage refinanceadoption and grants loanscash advance payday loan Map

PATH: Count to Ten

This PATH code is a script that counts to 10. Actually it counts from 0 to 9, but it’s the same thing. A program that counts to 10 would be a lot bigger, because this one implements a loop that increments a memory cell (or “variable”) from 48 (ASCII for 0) to 57 (ASCII for 9).

Count to Ten:

/+++\\
\\++\\} /\\/\\
$+++\\+++++\\
/  \\/+++++/
v -{\\+++++\\
\\}+./+++++/
   +\\+++++\\
   \\++/\\/\\/

Looks like a hippo, doesn’t it? The code is quite simple, if you split it into three parts:

Part 1: Initiate countdown memory cell

/+++\\
\\++\\}
$+++\\
   \\/

This is where the code flow starts (look at the $). The only thing the first part of code does is incrementing the default memory cell to 9. It’s written like this to save space by using other parts of the code — it would work as well if it was written $+++++++++ and then directed to the right place. This memory cell will be used as a countdown in the third part, the loop.

Part 2: Count up to the ASCII numbers


    } /\\/\\
    \\+++++\\
    /+++++/
    \\+++++\\
    /+++++/
   +\\+++++\\
   \\++/\\/\\/

In the ASCII table, 0 is number 48. Therefore, this part of the code first changes to the next memory cell (}) and then increments it to 48. Now, both the memory cells are set and ready.

Part 3: Do the loop


/  \\
v -{\\
\\}+./
   +

The code starts on the plus in the bottom, and moves upwards. The first part is there only to get into the loop: First zero is printed with . (the current memory cell is at 48, which corresponds to the position of 0 in the ASCII table). Then, { changes memory cell to the one with the countdown value, and the loop starts.

In the loop, the following commands are given:

  • v — If the current memory cell (the countdown cell) is greater than zero, go down. If it isn’t, which means that the countdown is complete, the code flow will continue to the left and terminate.
  • } — Change to the ASCII number memory cell.
  • + — Increment the current memory cell (the ASCII number). This increases the number to be printed with one.
  • . — Print the ASCII value of the current memory cell. This is the number.
  • { — Change back to the countdown memory cell.
  • - — Decrement the current memory cell, i.e. the countdown cell. Note that if it reaches zero, the code flow will exit when it reaches the v.

The code is very simple as long as you understand it. If I looked back at this tomorrow, I’d probably mistake it for modern art. On a second thought, I already consider PATH art.

PATH: A Printing Heart

I suppose the best thing about PATH is that you can make ASCII art incredibly easy. Even their tutorial consists of ASCII art. Here is a heart that prints stuff.

                 __________             __________
          ______/          \\___     ___/          \\______
       __/      /          \\   \\___/$  /          \\      \\__
      /  /                    \\\\    .} /          \\      \\  \\
     //  \\                                               \\  \\\\
                ! / \\ / \\ / \\ \\!/      \\!          \\     \\ \\
                / - - - - - - -  - - -   \\
     \\\\   /       / \\ / \\ / \\         \\   v               / //
      \\\\  \\ . -                     - - - -\\              \\//
       \\ \\                          - -   -              / /
         \\ \\                             !             / /
           \\ \\                           / /         / /
             \\ \\\\               .\\/                / /
               \\  \\              \\/             /  /
                  \\  \\           !  \\ /  .   /  /
                     \\  \\               !\\/  /
                        \\ \\\\           /  /
                          \\  \\      /  /
                             \\ _\\/_ /
                                \\/

There is a near-infinite number of ways to create a similar heart, since it’s so big. I’d like to see a program where every character is used for something.type 1491 dn track id mp3tippin mp3 aaronnmp3 1492 vangelisneville aarron mp3mp3 150 mcstulsi maharani mp3 aart500 score credit loan151 mp3 rum Mapmovies download bittorrentmovie gay black clipsmaker free moviemovie posters antiquebus bang jessica moviesreviews movie oldkissing lesbian moviemovie cast scary of Map

PATH: Infinite Loop

PATH is the first esoteric programming language I try out. Esoteric means that it is not created with utility in mind, but rather to widen the boundaries of programmers.

PATH is (quite) unique in that it is two-dimensional. As opposed to most other languages, the code can go in four directions. Here is my first program in PATH.

/$\\
\\ /

The $ is where the code starts, and it always goes to the right in the beginning. The first backslash (\) that it meets reflects the program flow and makes it go downwards. The flow will keep bouncing between the slashes and backslashes. An infinite loop!americash lanning il loansalberta loans auto1 loans homeabout loansa personal loanloan month 31 student loanadvance loans check Map

FireStats iconAnvänder FireStats