Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ I really like this one, but I'm not sure I can accept a .o output, since I did say ELF/.exe/etc. (and compiling this fully optimises it all out!). Still, +1 (and confirmed) \$\endgroup\$ Commented Jan 12, 2016 at 23:01
  • 4
    \$\begingroup\$ Update: As Ben Voigt points out on his answer, GCC on Linux does generate ELF files as .o output, and I've been able to confirm the <3,14> variant with it, so yup - this is valid. \$\endgroup\$ Commented Jan 13, 2016 at 0:34
  • 24
    \$\begingroup\$ I was expecting something absurd to come out of C++ templates. I wasn't expecting the Ackermann function. \$\endgroup\$ Commented Jan 13, 2016 at 9:42
  • \$\begingroup\$ won't Fibonacci give you a smaller code and better output size control? \$\endgroup\$ Commented Jan 14, 2016 at 21:45
  • 1
    \$\begingroup\$ But we want bigger code! Fibonacci gives almost the same size as pure linear code (but longer compile time that the linear). You could certainly have fun with a static array of size A+B in each class, now I think of it... \$\endgroup\$ Commented Jan 15, 2016 at 13:40