News for hackers. Stuff that matters.
Re:Makefile Assignments are Turing-Complete by d33 on Tuesday May 03, 2016 @05:40AM (#11619115)
I would say that this is a good argument against using such a complicated spec. This kind of constructs should be explicit - if in a build system at all. I hate Make because of all the crazy "build systems" that should have been written in a more readable language, but ended up as a Make kludge.
Re:Makefile Assignments are Turing-Complete by Sharlin on Tuesday May 03, 2016 @05:57AM (#11619183)
The point is that, as mentioned in the article, the POSIX make spec is positively barren! Indeed, this is another example of very simple substitution systems turning out to be emergently Turing complete.
Re:Makefile Assignments are Turing-Complete by d33 on Tuesday May 03, 2016 @06:18AM (#11619267)
So you'd say that it's a good thing? How is hidden complexity good?
Re:Makefile Assignments are Turing-Complete by Sharlin on Tuesday May 03, 2016 @06:49AM (#11619428)
It's not necessarily a good thing. It's definitely interesting, though. It's difficult to come up with systems that are simultaneously useful and don't have emergent complexity - and it's not clear to me if it's worth the effort to even try in the general case!

For what it's worth, in my opinion build systems should definitely be intentionally, not accidentally, Turing complete.

Re:Makefile Assignments are Turing-Complete by Avshalom on Tuesday May 03, 2016 @08:44AM (#11620045)
Eh, you pretty much have to specifically design systems to avoid turing completeness. It's a hilariously low bar to clear.
Re:Makefile Assignments are Turing-Complete by pyrale on Tuesday May 03, 2016 @06:13AM (#11619241)
Welcome to the Turing tar-pit in which everything is possible but nothing of interest is easy.
Re:Makefile Assignments are Turing-Complete by dozzie on Tuesday May 03, 2016 @07:38AM (#11619645)
Junkyard full of random Python, Ruby, or Scala is not any better.

Build rules are code, and thus should be treated like one. Not treating them like code is the main reason many non-trivial makefiles (or rakefiles, or SCons rules, or whatever) look like sh&t.