• Bubs@lemmings.world
    link
    fedilink
    arrow-up
    134
    ·
    9 months ago

    Apparently, this is the code for a Hello World program in Malbolge:

    (=<#9]~6ZY327Uv4-QsqpMn&amp;+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:H%c#DD2^WV>gY;dts76qKJImZkj

    • LostXOR@fedia.io
      link
      fedilink
      arrow-up
      116
      ·
      9 months ago

      Looks like the backticks in the program messed up the formatting a bit, here’s it with fixed formatting.

      (=&lt;`#9]~6ZY327Uv4-QsqpMn&amp;+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj
      

      Not that it’s any more intelligible. :D

        • LostXOR@fedia.io
          link
          fedilink
          arrow-up
          13
          ·
          9 months ago

          I just grabbed the original program from Wikipedia and put it in a code block.

                • mindbleach@sh.itjust.works
                  link
                  fedilink
                  arrow-up
                  2
                  arrow-down
                  1
                  ·
                  9 months ago

                  General ban by an admin being an asshat. Haven’t bothered asking nicely to get reinstated.

                  Lemmy desperately needs some default notification, because what newbie is checking a site’s modlog with any regularity? I didn’t even know it existed. I was bickering with some troll who said ‘you’re cruising for a report, mister!’ despite being far further over-the-line than me, and I said, that’s adorable, knock yourself out. And then things so thoroughly stopped working that I assumed my LW account had been straight-up deleted.

                  Meanwhile, that troll suffered no consequences whatsoever. Despite starting shit, getting personal, and being wrong. My accordingly low opinion of moderation across Lemmy has since been vindicated more often than not. This was the largest instance that didn’t demand “civility” as a constant choke-collar, and the worst problems I’ve had have still been mods flying off the handle in cases where I’ve been perfectly polite.

                  Apparently I can’t say please and thank you without people taking it as vicious sarcasm, so I don’t fuckin’ try and I don’t fuckin’ worry about it. It’s been freeing.

  • Ð Greıt Þu̇mpkin@lemm.ee
    link
    fedilink
    arrow-up
    68
    arrow-down
    1
    ·
    9 months ago

    The Base3 arithmetic alone makes me deeply upset

    Base36 is where it’s at! Super divisibility, 0-Z keyspace, and “10” is a Square that’s also the product of two squares.

    Plus you can count to “40” (144) on your hands!

    • Pogogunner@sopuli.xyz
      link
      fedilink
      arrow-up
      21
      arrow-down
      1
      ·
      9 months ago

      How do you count in base36 on your hands? I seem to only have 10 (decimal notation) fingers

        • Ð Greıt Þu̇mpkin@lemm.ee
          link
          fedilink
          arrow-up
          16
          ·
          9 months ago

          In theory yes, in practice…fingers don’t like cooperating with the combinations of bent and up that you can get by doing that

          • LazerFX@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            2
            ·
            9 months ago

            I do it regularly… I particularly like 4.

            In all seriousness, I use it when I need to time something - 32 on one hand means one minute (approximately) with two rotations. I started when trying to determine if my daughter was asleep, waiting for a minute after she’d last moved or talked, and I didn’t want a screen or light or noise to wake her (she’s always been hard to get to sleep).

            So - yeah it’s a tiny bit tricky to do some combos, but no more than touch typing.

        • Pogogunner@sopuli.xyz
          link
          fedilink
          arrow-up
          4
          arrow-down
          2
          ·
          9 months ago

          I understand this, but I didn’t know how one would count up to 36 the first time around. PhlubbaDubba is using joints in their fingers to get additional objects to increment on. If we only used our fingers, we could only get to 10

      • Ð Greıt Þu̇mpkin@lemm.ee
        link
        fedilink
        arrow-up
        7
        ·
        9 months ago

        Using your thumbs as pointers, count the joints in your fingers on one hand, that gets you to 12, use the other hand’s finger joints to count the thirds within 36, with 4 fingers on the other hand, that’s “40”

  • hades@lemm.ee
    link
    fedilink
    arrow-up
    51
    ·
    9 months ago

    Despite this design, it is possible to write useful programs.

    Interestingly, this applies to C++ too.

  • ThePyroPython@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    9 months ago

    So is there a 9th circle? Would that be a programming language where the only way to compile would be to speak op-codes out loud in the correct sequence & cadence into a microphone?

  • Sibbo@sopuli.xyz
    link
    fedilink
    arrow-up
    7
    ·
    9 months ago

    Looks interesting. Except for the fact that an instruction is modified after execution, this is quite simple in the end. Unless I missed something. But yeah, self-modifying instructions makes loops really hard.

  • MinekPo1 [it/she]@lemmygrad.ml
    link
    fedilink
    arrow-up
    2
    ·
    9 months ago

    honesty I never understood why people consider malbolge so bad . sure its difficult AF to do anything in and the complexity gets quite higher still , but IMHO its just to abstract to be painful , it feels to different to feel like something you should be able to understand .

    honesty struggling to write simple operations in some of my own esolangs was way more mind-bendingly horrid than I think malbolge could be without making a compiler to it , while still feeling like I was programming .

    to be fair I also made ArrayFuck so yeah

        • expr@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          9 months ago

          As a professional Haskell developer, I tend to agree. I loathe any and all lens code I find using a ton of operators (though I just dislike lenses in general). Operators from base are generally fine, but for the rest, just use normal functions damnit. Operators suck for code navigation too.

          • baseless_discourse@mander.xyz
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            Yeah, it is one of the problem I have about Haskell.

            The other two are lazy evaluation makes print debugging almost impossible, you will need to print the entire environment to figure out where you are.

            Finally, I feel like List.fold, state monad, lens are basically just working with mutable structure with extra steps. Although this constructs prevent newbies who are not principled enough to effectively use mutable structure from using mutable structure, but it also doesn’t help experienced user to write more effective and clean code.

            Mutuabilty are certainly not harmless either. For example in ocaml, if you construct the IntSet type twice, they will be two completely different type. But this behavior can be pretty easily avoided by an experienced user.

            What do you feel about these features/shortcomings?

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      9 months ago

      Haskell is abstract, and very different from other popular languages, but I actually find it very intuitive. At the very least, the type system makes it extremely predictable.

      • baseless_discourse@mander.xyz
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        9 months ago

        I didn’t imagine a joke would attract this many people defending Haskell. LOL.

        I personally would say I hate Haskell the least among most of the PL I know, maybe except ocaml. Haskell is probably the second if not the most popular programming language (not including proof assistant) in my field, next to Ocaml; and I have been teaching it for couple years. My work is also heavily involved with category theory, so I don’t personally mind the category theory jargon.

        But all of these doesn’t mean Haskell is without its flaws. For this post in particular, I am referring to one of the long standing debate in the haskell community of whether Haskell user and developer has a tendency to overuse exotic infix operators: https://wiki.haskell.org/Haskell_programming_tips/Discussion#Use_syntactic_sugar_wisely

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          9 months ago

          Haha, an actual category theorist! You should have gone with “we have more than one of those in Haskell” or something, then. As it is, it really just reads like someone who thinks higher-order functions are too hard of a concept, and that the whole language is therefore garbage.

          • baseless_discourse@mander.xyz
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            9 months ago

            welp, karma is not a thing here, nor do I care about them. It is great to see people loving haskell, it is a decent language <3.