Talk:Mmmm()

From Esolang
Jump to navigation Jump to search

Well done on the example program, BCompton. SuperJedi224 (talk) 22:56, 2 December 2014 (UTC)

Thanks, it was a lot of fun to write. Working on a Truth-machine and a Factorial as well. Incidentally, I suspect your language is Turing Complete, but I don't yet have a proof.BCompton (talk) 23:01, 2 December 2014 (UTC)
It looks like output only happens when the program halts, making a Truth Machine less than satisfying. Still, here you go:
Mmmm=m[m[m.m()].m(m.m())].m();mmm.m();Mmm=mmm.m();mmm.m();Mmmmm=m[mmm.m()].m();Mmmmmm=mmm.m();m[mm].m(mmmm);
<m[mmmmm].m(mmmm);m[mm].m(mmmm);>m[mmmmm].m(mmmm);
BCompton (talk) 23:26, 2 December 2014 (UTC)
The interpreter is definitely TC, my problem is seeing the line between the interpreter and the true language definition.
For example the page here describes a repeat..while style loop, the interpreter uses a plain while loop.
The interpreter is written with a simple RE filter to exclude obvious javascript, but I can make myself an array with Mmmm=[];
That's just the start of the nasty things you can do with javascript
So how much am I allowed to use ? Rdebath (talk) 09:28, 3 December 2014 (UTC)
The interpreter's implementation of the loop was correct. Thank you for pointing out that discrepancy, I just fixed it in the page. Also, thank you for pointing out the other problems, I just corrected some of those in the interpreter. Also, the interpreter already disallowed "!", "+" ,"{", and "}".SuperJedi224 (talk) 13:15, 3 December 2014 (UTC)