More details in the compete post: https://www.tumblr.com/lavenderhorns/705277666010464256/every-now-and-then-i-remember-that-malbolge-exists?source=share
This is peak programming. That’s it. It’s done. We can pack up and go home now.
In the soap opera General Hospital, Colonel Sanders of KFC makes a guest appearance because someone is trying to kill him to obtain the secret recipe of 11 herbs and spices. He knows Malbolge and is able to disarm the destruct sequence.
… I… what?
I thought you were kidding.
That soap opera apparently has 15000 episodes and has been airing since 1963…
Despite this design, it is possible to write useful programs.
Interestingly, this applies to C++ too.
Apparently, this is the code for a Hello World program in Malbolge:
(=<
#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:
H%c#DD2^WV>gY;dts76qKJImZkjLooks like the backticks in the program messed up the formatting a bit, here’s it with fixed formatting.
(=<`#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj
Not that it’s any more intelligible. :D
What steps did you take to fix the formatting?
(Save me the Unicode identifier / dive into console :) )
The document icon below each comment is “view source.”
(Also where’s your comment on Lemmy.world!)
… where are your vote icons, in general?
Mom, put down the phone, I’m using the modem!
And I’ve heard it took years until someone managed to do it
deleted by creator
Biblically correct hello world
Idiomatically nonsensical, as all things should be.
Holy cow.
Huh. Looks just like Perl.
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!
How do you count in base36 on your hands? I seem to only have 10 (decimal notation) fingers
You can count up to 1023 in base 2 using your fingers to represent 0s and 1s.
In theory yes, in practice…fingers don’t like cooperating with the combinations of bent and up that you can get by doing that
Each hand is one base-6 digit.
deleted by creator
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?
oh my god don’t give them any ideas for tonal programming languages
Too late, take a look at teletext and RDS for radio, and also literally the very first cable free TV remote controls
There’s a conlang introducing phonemic hats, so why the hell not?
“counter-intuitive crazy operation” meh, we already have that, it is called Haskell.
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.
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
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.