While it takes a turing complete language to create any imaginable program, is it possible to compute most "useful" programs with a non-turing complete dynamically typed language? For example, is there a non-turing complete language capable of solving the Project Euler problems?
Asked
Active
Viewed 135 times
dc(it doesn't really have types), but the solution for problem 15 for a 4x4 grid is[d1-d1<F*]dsF8lFx4lFxd*/p– Aug 04 '13 at 00:16dcis a beautiful, terse, stack based language with macros (that one happens to be recursive). It may be turing complete, though I didn't begin to tap into that level of power in the language if it is. That was intentionally 'what'ed (I took out some whitespace that might otherwise enhance some of the readability and make the general solution more obvious), though it is a rather nice elegant solution. – Aug 04 '13 at 00:54dcis a standard program on unix computers. (wikipedia page. – Aug 04 '13 at 01:02