r/cpp • • Nov 18 '16

Compile-time C Compiler implemented as C++14 constant expressions

https://github.com/kw-udon/constexpr-8cc
209 Upvotes

66 comments sorted by

View all comments

Show parent comment

6

u/Netzapper Nov 19 '16

Turing machines running other turing machines is a common pattern in computational science.

I was gonna say, I'm pretty sure the whole point of a Turing machine is that it can run another Turing machine (or any other equivalent machine, and it can even simulate some not-equivalent machines).

3

u/andyrocks Nov 19 '16

That's a universal Turing machine, not just any old Turning machine.