r/programming • • Aug 10 '12

Write any javascript code with just these characters: ()[]{}+!

http://patriciopalladino.com/blog/2012/08/09/non-alphanumeric-javascript.html
1.3k Upvotes

288 comments sorted by

View all comments

Show parent comments

1

u/SgtSausage Aug 11 '12

and there's the crux: ”most” != ”any”

... and you're still quite confused on where Turing Completeness fits in here.

0

u/dont_press_ctrl-W Aug 11 '12 edited Aug 11 '12

In this case, "most" does mean "any". Just add more memory (like for any programming language). I said most in the sense that if you give it a certain amount of memory, it won't use it as efficiently as another type of programming, so it won't so all the algorithms with the same amount of memory, but most of them.

And what are you talking about if not Turing completeness. Look at your downvotes, I'm not the only one who thinks you're the confused one: you obviously didn't expressed yourself clearly. Like I said, I tried to guess what you meant.

Anyway, a single-instruction program does function with finite memory, contrarily to what you initially claimed. Whatever you actually meant, the bottom line is you're wrong.