Talk:Malbolge

From Esolang

Jump to: navigation, search

[edit] Some pretty interesting paper

I happened to find out that the creator of the famous "99 bottles of beer" program in Malbolge, Hisashi Iizawa, has published a paper called "Programming Method in Obfuscated Language Malbolge" with some other people.

I'd be extremely interested reading the paper, in case it's available in English (if not, hopefully someone can translate it).

Here's a short abstract:

Malbolge is an obfuscated (esoteric) programming language, which is designed to be difficult to program in. In this paper, we propose a guide for programming in Malbolge for the purpose of the application for obfuscation in software protection.

A bit longer abstract (featuring a lot more interesting stuff) can be found here: http://www.is.nagoya-u.ac.jp/thesis/M2005/i/M350402019e.pdf

They have designed some method for translating a C-like language into Malbolge.. Would love to hear more about this. "... Using these solutions, we finally present a compiler from C like programs to codes in Malbolge."

The japanese paper is here: http://www.sakabe.i.is.nagoya-u.ac.jp/~nishida/DB/pdf/iizawa05ss2005-22.pdf
Not too helpful (unless you speak japanese), but it contains some C code which might be of interest --Rune 20:26, 1 Jun 2006 (UTC)
On second glance, the C code is obviously just a Malbolge interpreter, so I guess there's not really anything useful to get from it (unless we can get it translated). --Rune 21:12, 1 Jun 2006 (UTC)
Big thanks! Yeah, too bad I can't understand anything.. And, have people known about this for a long time already and I have just missed the news when I was away from #esoteric for a while and didn't read its logs..? Hmmm, the parts I linked mentioned there'd be some interesting stuff.. I guess there's no way to get it translated. --Keymaker 21:18, 1 Jun 2006 (UTC)
The only place I've heard of this is on this talk page. I found the japanese article by googling. Anyway, I have posted a comment on the 99 bottles of beer website, asking if there is an english translation. Mr. Iizawa has posted there before, so if we're lucky he'll respond. --Rune 21:23, 1 Jun 2006 (UTC)

[edit] About the computational class

From the Computational Class section:

The difficulty in showing Malbolge to be isomorphic to even a finite-state automaton, though, is not one of lack of features, but one of predictability. The code pointer can be readjusted with the i operation; the problem is in being able to execute it arbitrarily.

I planned to write a section about practical Malbolge programming to show that that's not a problem actually. Note that i operations (jumps) are immutable because the execution order is:

  1. Fetch and decrypt the instruction.
  2. Execute the instruction.
  3. Encrypt the byte at [C]
  4. Increment C

When a jump is executed, i.e. C = [D], the third step encrypts the destination address rather than the jump itself.

This, and the fact that short (length 2) cycles exist in step 3 for all instructions, is the base for making Malbolge coding practical. The BIG trouble is that the source code can't hold arbitrary numbers, just the allowed instructions which are 8 possibilities per address, making it necessary to add an execute-once initialization routine that sets data to the desired values. In the sample "cat" program that's the code below the "j" that is alone in a line.

--pgimeno 00:07, 13 Jun 2005 (GMT)

Sounds good to me... that section is exactly what would have to be referenced by a proof (of equivalency with an FSA), to show that it's possible to execute chosen instructions at will. --Chris Pressey 04:39, 13 Jun 2005 (GMT)

[edit] Trinary vs. ternary

This page uses the word "trinary" extensively, although "ternary" is, AFAIK, the correct word. I've added a small mention of it, but I'm wondering if it would be better to rewrite it using only ternary, but with a sentence near the first mention, bad example: "Ben used the word trinary..." so that the reader knows that trinary is often used as well? --Calamari 01:44, 13 Jun 2005 (GMT)

The proposed change sounds fine. The usage of trinary seems to originate in being able to use the abbreviation "trit", but yes, ternary is more widely used. --pgimeno 12:13, 13 Jun 2005 (GMT)
My recollection is that Foldoc (which seems to be down at the mo) states that both words are equally valid. On Wikipedia, "trinary" redirects to Ternary numeral system, and the article mentions both terms in the intro but otherwise doesn't comment on this aspect of the terminology. As for the question of which is more widely used, I know that "ternary" is the usual term in other contexts (ternary operators, ternary musical forms) but what evidence is there of one being more common when talking about the number base? -- Smjg 16:30, 25 August 2008 (UTC)
Personal tools