Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You're talking about translating from one high-level language to another, and expecting the interpreter for the latter to care anything about the rules of the former.

Actually, no, you aren't. The compiler cares about the rules of the language being compiled. The interpreter of the target language doesn't have to care, because code that violates the rules isn't output by the compiler. There's nothing special about high-level languages as a target, its exactly the same situation as any compiler for any general purpose machine (the only thing that might be different is a compiler for a language-specialized VM, but even for those generally many rules of the language aren't present in the VM and exist only in the compiler.)



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

Search: