Slashdot Mirror


New 'Asciidots' Programming Language Uses Ascii Art (And Python) (github.com)

An anonymous reader quotes Motherboard: If the esoteric programming language Asciidots looks like a mess, it is at least a very different-looking and even aesthetically pleasing mess. Simply, its mechanics and syntax are based on Ascii art... Asciidots is a unique sort of programming language known as a dataflow language. In this sort of language, we can imagine units of data (like our variable x) following a data go-kart track that's interrupted in different places with pit stops that change the value of the data go-kart that's following the track around. One pit stop might add 1 to the variable, while another might chop it in half. At some points, the track might even split, with the data go-kart picking one fork depending on its current value. If, say, it's greater than 2 it might go left; otherwise, it goes right...

In Asciidots, the aforementioned go-kart track is represented by lines (|,-,/,\)... Most of the other non-line symbols are mathematical operators, but there are also symbols that direct the program to request input from the user, set values, print values, and change the direction of the unit of data... Under the hood, Asciidots is a Python program. An Asciidots program is just fed into that underlying program and digested into normal Python code, which is then executed.

The article includes some examples, and argues that esoteric esolangs like Asciidots force programmers to consider fresh perspectives. And in addition, "it looks really cool."

7 of 28 comments (clear)

  1. It's been done by Smidge204 · · Score: 4, Informative

    RUBE is 20 years old...

    https://github.com/catseye/RUB...

    Though if you want something that looks like art, there's also Piet:

    http://www.dangermouse.net/eso...

    =Smidge=

    1. Re:It's been done by phantomfive · · Score: 3, Insightful

      Yeah, I thought it would be lame, but seeing how the code flows and watching it execute is kind of cool, actually. The ascii art turns into a kind of flow chart. It's like a map of the execution of the code, and you can watch the program counter travel through, like a car in a small city. It's just a toy but it gives me ideas for visualization that might work in larger, more realistic, projects.

      --
      "First they came for the slanderers and i said nothing."
    2. Re:It's been done by Anonymous Coward · · Score: 3, Interesting

      You ain't lived until you've watched your deck of punched cards get sucked through the card reader. Godspeed little cards! And pray that none of them jams.

    3. Re:It's been done by sensei+moreh · · Score: 2

      You ain't lived until you've watched your deck of punched cards get totally randomized because you dropped them on the floor. I know. I've lived.

      --
      Geology - it's not rocket science; it's rock science
  2. Befunge by pushing-robot · · Score: 4, Interesting

    Is this really so different from Befunge?

    --
    How can I believe you when you tell me what I don't want to hear?
    1. Re:Befunge by Tablizer · · Score: 4, Funny

      "Pyfuck". Reminds me of a joke:

      A little girl goes to a pet shop and asks, "Excuthe me do you have any widdle wabbits?" The shop keeper's heart melts.

      He gets down on his knees so that he is on her level and says, "Do you want a widdle white wabbit or a thoft, fwuffy, bwack wabbit, or one like that widdle bwown one over there...?"

      The little girl blushes, rocks on her heels, puts her hands on her knees, leans forward and whispers . . . "I dont weally fink my pyfon gives a fwuck."

  3. I imagine you'd write better code with Inform7 by Presence+Eternal · · Score: 4, Funny

    A variable is here. It is a number. "A positive integer between two and four." It is very dark. You are likely to be eaten by a grue.