Is there any way to achieve compiling Node.js scripts as native code, like Hip-Hop does for PHP?
I’m not talking about libraries/apis.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t really need to pre-compile on your own. IIRC, in node, V8 compiles your js before it even runs a single line. So, where with PHP you’re code is constantly being interpreted (unless you have some opcode caching in place), with node, you’re code is compiled once when you start your application, and (if you’re running a server) users that connect will invoke that same code that was already compiled when the server started.