Hacker News new | ask | show | jobs
by pavanky 4839 days ago
Can someone explain to me how an interpreter written in Python works ? Has it become bootstrapped at some stage such that the entire interpreter is written in restricted Python which is now translated to C and compiled ?
2 comments

Yes, actually. Exactly that. They wrote the interpreter in RPython (running over CPython), then wrote an RPython to C compiler in RPython (again on CPython), and then compiled the interpreter using the compiler.

Someone correct me if I'm wrong, though.

The RPython compiler does not need to be written in RPython itself.
He didn't say it had to be, he said it was.

"The RPython compiler is written in RPython". "The RPython compiler had to be written in RPython". See the difference? Fucking retard.

What's with the unnecessary hostility?
Flagged. We don't need that kind of thing round here.
Well, it's not. RPython compiler is written in Python.