News for hackers. Stuff that matters.
Re:Go’s alias proposal and all my concerns of Google control... by majewsky on Monday November 07, 2016 @07:43AM (#12890583)
My favorite metric for language complexity is: How many distinct Turing-complete languages exist in this language?

On this metric, Go scores 1 (just Go itself), and C++ scores 3 (C preprocessor, C++ itself, C++ templates).

Re:Go’s alias proposal and all my concerns of Google control... by gue5t on Monday November 07, 2016 @12:23PM (#12892823)
C preprocessor alone is not turing-complete; you have to repeatedly apply the preprocessor (until you get a fixpoint or decide the program won't halt) to perform arbitrary computation.
Re:Go’s alias proposal and all my concerns of Google control... by bbatha on Monday November 07, 2016 @11:24AM (#12892242)
Go scores infinity actually. Go generate is a part of the language, which means that you can bring your own Turing-complete language to the party.

Reflection especially with plugins, are essentially another language that is even more difficult to track down than macros (or templates). Though you can at least write Reflection using go.

Re:Go’s alias proposal and all my concerns of Google control... by Vendan on Monday November 07, 2016 @02:30PM (#12894143)
but go generate isn't a part of the standard build process. If we go to that level, I can just say "most things that use C++ have a Makefile, so that's infinite too".