Server-side javascript on Apache server

L

Luiz

Hi people,

Please, does anybody know which is, nowadays, the best choice to run
server-side javascript on Apache server?

Thanks in advance!

Luiz
 
B

Ben Crowell

Luiz said:
Hi people,

Please, does anybody know which is, nowadays, the best choice to run
server-side javascript on Apache server?

Is there any alternative to rhino? I'm not very impressed with rhino.
I only played with it for a short time before I found an example where
its parser went into an endless loop. Also, rhino is written in java, so
you have to start up a java vm every time you execute a script using
rhino. If you have a persistent java vm process, I guess you can invoke
scripts without the performance hit.
 
T

Thomas 'PointedEars' Lahn

Luiz said:
Please, does anybody know which is, nowadays, the best choice to run
server-side javascript on Apache server?

Probably yes. As for the choices you have, Google is your friend. [psf 6.1]


PointedEars
 
B

Ben Crowell

some examples:
http://en.wikipedia.org/wiki/Server-side_JavaScript

It looks like the three most commonly used with apache are
spidermonkey, rhino, and ejscript.
http://en.wikipedia.org/wiki/Rhino_(JavaScript_engine)
http://www.ejscript.org/index.html
http://en.wikipedia.org/wiki/SpiderMonkey_(Javascript_engine)

If I'm understanding correctly, rhino actually compiles js to java
bytecode. So although invoking it via a shell has the performance
overhead associated with starting up a java vm, it might actually
be faster than spidermonkey if your java vm is persistent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,781
Messages
2,569,616
Members
45,305
Latest member
KetoMeltsupplement

Latest Threads

Top