14 comments

  • igleria 3 hours ago
    > PURRTRAN allocates all variables to an arena called the "Litterbox". The Litterbox must be manually emptied at least once a day by the user, or Hex's cleanliness and love will decrease. The Litterbox can overflow, which will cause Hex to become very displeased and may lead to unexpected program behavior, as Hex will begin storing variables in your source code text buffer instead of the Litterbox until it's cleaned.

    I'm cackling like a madman, thank you for this op.

    • adzm 2 hours ago
      > There is no way to observe Hex's internal state directly. You must infer how he is feeling based on his behavior and the lints he provides. This makes it difficult to diagnose issues with Hex's performance or behavior.

      this is deep

  • jeberle 2 hours ago
    Cat constructed from block: Unified Canadian Aboriginal Syllabics, U+1400 to U+167F

      U+14DA  ᓚ CANADIAN SYLLABICS LA
      U+160F  ᘏ CANADIAN SYLLABICS CARRIER YO
      U+15E2  ᗢ CANADIAN SYLLABICS CARRIER TTU
    
    https://unicode.scarfboy.com/?s=%E1%93%9A%E1%98%8F%E1%97%A2
  • MisterTea 2 hours ago
    > Hex will let you know when he is bored by interrupting your work with a note in your terminal

    Cats routinely initiate attention grabbing denial of service attacks by blocking access to hardware so this needs proper emulation to increase the realism. I have a few recommendations:

    Mouse trapping - when cat pops up the mouse cursor should be limited in motion as if you turned the sensitivity down to near 0. This emulates a cat who lies directly on top of your mousing hand while using said mouse.

    Keyboard injection - after cat pops up all further typing results in cat-on-a-keyboard output. This emulates a cat sitting or walking across your keyboard.

    Screen jacking - The screen has a cat shaped blank spot that obscures most of your working environment. This can also be paired with cat-on-a-keyboard typing. Emulates cat sitting in front of monitor, likely on top of keyboard.

    Once hardware denial fails they move on to destroying your personal items:

    destruction of personal items - USB solenoids strategically placed behind any object that you either a. cherish or b. do not want spilled. "That nice book you were just admiring - now it has coffee all over it because I am need something."

    I could go on but these are a good starting point.

    • igleria 2 hours ago
      > cat sitting in front of monitor

      The famous cat-in-the-middle attack

  • agrocrag 2 hours ago
    Also, language for the youth, CURSED, https://github.com/ghuntley/cursed
  • fractalic 22 minutes ago
    >The rabbit would still be alive if you were a better programmer.

    I think that's a brand new sentence

  • bflesch 56 minutes ago
    Interesting and creative project. But I wonder if the author suffers from toxoplasmosis / toxoplasma gondii.
    • tetris11 37 minutes ago
      Or takes Cordwainer Smith novella's far too literally
  • zahlman 36 minutes ago
    I assume all variables are mewtable by default?
    • monooso 13 minutes ago
      Okay, fine, you earned the upvote.
  • tempodox 3 hours ago
    The ASCII art cats are great. I wonder whether a canonical purrtran compiler would emit those upon request?
  • marwann 31 minutes ago
    Very impurrtant work
  • echelon_musk 2 hours ago
    Is FORTRAN for FOR people?
  • ZebusJesus 48 minutes ago
    Not gonna lie this makes me want to learn Purrtran, you have to feed HEX, clean up after them and play with them or else it will misbehave or even die. Hex needs to be happy to help with code, I love it great way to make programming fun! Also pretty cool that they added print and for loop structures that are easier to use.

    "In the following example, Hex leaves you a dead baby bunny rabbit because you have unused variables in your code"

  • dankobgd 2 hours ago
    The future is here
  • hiduck 2 hours ago
    Finally, a good programming language
  • Rendello 2 days ago
    See also: LOLCODE (which has implementations, unlike Purrtran)

    https://en.wikipedia.org/wiki/LOLCODE

    • hnlmorg 4 hours ago
      I don’t understand the comparison. Purrtran isn’t an esoteric language.
      • mananaysiempre 2 hours ago
        LOLCODE isn’t much of one either? It’s fundamentally a BASIC more or less.
        • hnlmorg 9 minutes ago
          …but with intentionally weird semantics picked for its humour rather than legibility.

          It might not be a challenging language, but it is designed more for art than utility.

          This firmly makes it an esoteric language.

          Whereas Purrtran has conventional semantics. The cuteness of Purrtran is in the documentation rather than the language design. The esoteric part is really more in the story telling rather than the language semantics.