5 ms·
> MediaWiki is basically a turing-complete applications platform. Perhaps MediaWiki should figure out how to use a weaker form of computation?
by eru 12y ago
> MediaWiki is basically a turing-complete applications platform.
Perhaps MediaWiki should figure out how to use a weaker form of computation?
- ttflee 12y agoI am afraid that the way those mark-ups have been used is the way they have encouraged.
- TazeTSchnitzel 12y agoOh, the turing-completeness is new, it wasn't in the past. Using Lua was to improve template performance.
- davidgerard 12y agoActually, it's been around for years - it was accidental. ParserFunctions is a good example of a DSL accidentally achieving Turing-completeness, at which point people start doing awful, awful things in it because they can. So they went to Lua because a proper programming language is superior in every way to an accidental one.
- eru 12y agoYou actually have to be really careful to design a language that's both useful and not Turing-complete. Regular expressions are one example of such a language, but they are not strong enough for templating.
- davidgerard 12y agoYeah. It wasn't actually intended to be Turing-complete, but then some excessively creative goddamn lunatic came up with a way to beat MediaWiki syntax with ParserFunctions into yielding a truly hideously inefficient "if" statement. Soooo they gave up and codified that so the CPUs wouldn't melt.