If you wish, you can download it and test it yourself. I guarantee nothing!
- Install Pyrex (
sudo easy_install pyrex)
- Install Python-SpiderMonkey ( SVN checkout and
sudo python setup.py install
- Copy the jsrocks folder to your htdocs. Keep in mind you need
mod_rewriteand .htaccess files enabled.
- Just visit /jsrocks/ and /jsrocks/test (which call index.js and test.js)
NOTE! This is just a hack to prove it could be possible. Using an interpreted script to call another interpreter is not the best idea. Oh, and through CGI even less plausible (fastCGI is more admissible though). I believe that something like mod_js is a better approach (although last time I checked it lacked File IO and Database connections). Google (Steve Yegge) apparently likes the idea of using Rhino, which I don’t like that much.