Hacker News new | past | comments | ask | show | jobs | submit login

Most static language compilers include an interpreter for constant expressions at a minimum, because otherwise statically allocating things like arrays is a bit tricky. Handily, this interpreter can be reused for constant folding.

C++ compilers nowadays necessarily include a Turing complete interpreter.




C has one in the preprocessor, to do platform-independent conditionals.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: