Def. Like I said, it's just an example of a language being applied.

-- 
Anatoly Geyfman
http://www.geyfman.net


On Saturday, August 20, 2011 at 10:36 PM, Andrew Hedges wrote:

> Actually, JavaScript on the server can do a lot more than just serve web 
> requests. E.g., we use it as a build tool.
> 
> [email protected] (mailto:[email protected]) / http://andrew.hedges.name/
> 
> On Aug 20, 2011, at 10:02 PM, Anatoly Geyfman <[email protected] 
> (mailto:[email protected])> wrote:
> 
> > server-side javascript is when the application written in Javascript is run 
> > as a server handling requests. 
> > 
> > Javascript is a language, and as such can be used to do a lot of things - 
> > you can make a drawing application w/ javascript on the client, and you can 
> > also make a program that receives web requests, processes them, and returns 
> > a response back to the requester. 
> > 
> > The javascript engine is what executes the javascript code. So, you need an 
> > engine to run the program written in javascript. Without something to run 
> > javascript, javascript is just a weird looking text file.
> > 
> > So, the popular framework node.js uses the V8 Javascript engine as its 
> > runtime. Think of it as the JVM - Oracle's JVM is akin to Google's V8 
> > Javascipt Engine.
> > 
> > So:
> > Javascript Engine (like V8) ~ Oracle's JVM
> > node.js ~ Java SE or EE (framework w/ lots of libraries + plugins)
> > 
> > Express for node.js ~ grails, Spring MVC
> > socket.io (http://socket.io) ~ netty, spring WS, Servlet 3.0
> > 
> > I hope that helps. 
> > 
> > -- 
> > Anatoly Geyfman
> > http://www.geyfman.net
> > 
> > 
> > On Saturday, August 20, 2011 at 9:08 PM, Rahul wrote:
> > 
> > > Ok , now i understood that Javascript engine is used in browser to
> > > execute loaded javascript faster.
> > > 
> > > But than what does Server-side javascript mean ? and how it has to do
> > > any thing with Javascript engine ?
> > > 
> > > On Aug 21, 4:52 am, Laurie Harper <[email protected] (http://web.net)> 
> > > wrote:
> > > > Oops; appologies to the list for such a Node-centric reply.
> > > > 
> > > > To be clear: Node is by no means the only server-side Javascript 
> > > > platform; there are others. I assume the reference to "Node: Up and 
> > > > Running" is an indication that that's what the OP is looking at though 
> > > > ;-)
> > > > 
> > > > L.
> > > > 
> > > > On 2011-08-20, at 7:50 PM, Laurie Harper wrote:
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > > Specifically, in your frame of reference: the Javascript Engine is 
> > > > > roughly equivalent to the Java Virtual Machine (JVM) -- i.e. the 
> > > > > component that handles compiling/evaluating your code.
> > > > 
> > > > > Tomcat is an application written in Java which implements the Servlet 
> > > > > API. For web application development in Javascript using Node, the 
> > > > > Express framework [1] is probably the most popular. It isn't a direct 
> > > > > equivalent to the Servlet API (the approach is quite different) but 
> > > > > it lives at the same level in the application stack.
> > > > 
> > > > > Server-side Javascript doesn't, in and of itself, give you anything 
> > > > > specific to auto-updating web pages; that's something you have to 
> > > > > implement on top of HTTP, same as with any other server-side 
> > > > > technology. However, socket.io (http://socket.io) [2] is a very 
> > > > > popular project which makes it particularly easy to accomplish such 
> > > > > things with Node.
> > > > 
> > > > > Finally, note that Node is a more platform than just a web server. 
> > > > > You can use it to accomplish any programming task, but it 
> > > > > particularly excels at anything requiring a lot of concurrent IO.
> > > > 
> > > > > I haven't read the book you referenced, but I'm sure it would be a 
> > > > > great way to improve your understanding of what Node is and how you 
> > > > > might use it.
> > > > 
> > > > > L.
> > > > 
> > > > > On 2011-08-20, at 1:58 PM, Amit Agarwal wrote:
> > > > 
> > > > > > Javascript engine is the part of a browser which is responsible for 
> > > > > > executing loaded Javascript code. Better your JS engine executes JS 
> > > > > > faster.
> > > > 
> > > > > > Details?
> > > > > > http://en.wikipedia.org/wiki/JavaScript_engine
> > > > 
> > > > > > Example?
> > > > > > http://www.youtube.com/watch?v=KTkTBKSnqbA
> > > > 
> > > > > > On Sat, Aug 20, 2011 at 6:59 PM, Rahul <[email protected] 
> > > > > > (http://gmail.com)> wrote:
> > > > > > I searched on Wikipeidia , but i didn't understood the explanation.
> > > > 
> > > > > > Many article says that Javascript engine is used for "Javascript Web
> > > > > > server",
> > > > 
> > > > > > But how come web server ?
> > > > 
> > > > > > I have worked on Tomcat server and having knowledge of J2EE 
> > > > > > framwork,
> > > > > > here a browser send request using a url, now this request hits the 
> > > > > > web
> > > > > > container(Tomcat),
> > > > > > now webcontainer creates req. and res. object and passes it to
> > > > > > servlets deployed in webcontainer.
> > > > 
> > > > > > Now from my above knowledge of Webcontainer can you please explain 
> > > > > > how
> > > > > > come javascript be
> > > > > > a web container, and how does it helps us in client-side javascript
> > > > 
> > > > > > Does javascript engine has anything to do with auto-refresh of
> > > > > > webpages, like live scores of sports or stock prices listing ,
> > > > > > something like this sort.
> > > > 
> > > > > > Can you please suggest some books on javascript engine or Javascript
> > > > > > webserver,
> > > > 
> > > > > > Can O'really's Node: Up and running will be helpfull reading,
> > > > 
> > > > > > Wating for a reply
> > > > 
> > > > > > --
> > > > > > To view archived discussions from the original JSMentors Mailman 
> > > > > > list: http://www.mail-archive.com/[email protected]/
> > > > 
> > > > > > To search via a non-Google archive, visit 
> > > > > > here:http://www.mail-archive.com/[email protected]/
> > > > 
> > > > > > To unsubscribe from this group, send email to
> > > > > > [email protected] 
> > > > > > (mailto:[email protected])
> > > > 
> > > > > > --
> > > > > > To view archived discussions from the original JSMentors Mailman 
> > > > > > list: http://www.mail-archive.com/[email protected]/
> > > > 
> > > > > > To search via a non-Google archive, visit 
> > > > > > here:http://www.mail-archive.com/[email protected]/
> > > > 
> > > > > > To unsubscribe from this group, send email to
> > > > > > [email protected] 
> > > > > > (mailto:[email protected])
> > > > 
> > > > > --
> > > > > Laurie Harper
> > > > > http://laurie.holoweb.net/
> > > > 
> > > > > --
> > > > > To view archived discussions from the original JSMentors Mailman 
> > > > > list: http://www.mail-archive.com/[email protected]/
> > > > 
> > > > > To search via a non-Google archive, visit 
> > > > > here:http://www.mail-archive.com/[email protected]/
> > > > 
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected] 
> > > > > (mailto:[email protected])
> > > > 
> > > > --
> > > > Laurie Harperhttp://laurie.holoweb.net (http://web.net)/
> > > 
> > > -- 
> > > To view archived discussions from the original JSMentors Mailman list: 
> > > http://www.mail-archive.com/[email protected]/
> > > 
> > > To search via a non-Google archive, visit here: 
> > > http://www.mail-archive.com/[email protected]/
> > > 
> > > To unsubscribe from this group, send email to
> > > [email protected] 
> > > (mailto:[email protected])
> > 
> >  -- 
> >  To view archived discussions from the original JSMentors Mailman list: 
> > http://www.mail-archive.com/[email protected]/
> > 
> >  To search via a non-Google archive, visit here: 
> > http://www.mail-archive.com/[email protected]/
> > 
> >  To unsubscribe from this group, send email to
> > [email protected] 
> > (mailto:[email protected])
>  -- 
>  To view archived discussions from the original JSMentors Mailman list: 
> http://www.mail-archive.com/[email protected]/
> 
>  To search via a non-Google archive, visit here: 
> http://www.mail-archive.com/[email protected]/
> 
>  To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[email protected])

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to