Is that possible to develop a ACM ONLINE JUDGE system using NODE.JS(or PYTHON)?
To accomplish the sandbox, it would be fairly easy to do this by simply running your code inside of a closure that reassigns all of the worrisome calls to NaN
for instance, if the code executes inside a closure where eval=NaN
I'm a newer and if the question is so easy I apologize for that.
Assume I want to dev a classical online judge system, obviously the core part is

get users' code to a file
compile it on server
run it on server (with some sandbox things to prevent damage)

the program exit itself, then check the answer.
or get the signal of program collapsing.


I wonder if it's possible to do all the things using Node.js, how to do the sandbox things. Is there any example for compile-sandbox-run-abort-check thing?
additional:
is it more convenient to dev a such system using PYTHON?
thanks in advance.