1.11M Members

Javascript.

 
0
 

I was reading through Javascript overview on a webiste that stated following:

1) JavaScript can not be used for Networking applications because there is no such support available.

2) JavaScript doesn't have any multithreading or multiprocess capabilities.

My Questions:

1) Which kind of 'Networking Applications' are we talking about?

2) What is multithreading and multiprocessing capabilities author is talking about ?

Thanx.

 
0
 

Can you include a link to the article?
Also, #2 is no longer true as there are WebWorkers.

 
0
 

Yes, Please see Limitations of Javascript.
Click Here

 
0
 

1) Which kind of 'Networking Applications' are we talking about?

Unlike JavaScript, server side code can do things like connect to a remote host over the network. Such as send an ICMP request, perform a DNS lookup, query a SQL server, etc.. This is a limitation of JavaScript.

 
0
 

@JorgeM: I got it . . . What about multithreading and multiprocessing ?

 
0
 

As mentioned above webworkers mitigates the single threaded nature of javascript.

 
0
 

Come to think of it, #1 should be able to be done through websockets, no (to a limited extent that is)?

Actually, all three points from that page are no longer valid.

http://www.html5rocks.com/en/features/connectivity
http://www.html5rocks.com/en/features/file_access
http://www.html5rocks.com/en/tutorials/workers/basics/

Obviously there are still limitations as to what browser supports what, but this technically is possible today.

 
0
 

That was enlightening. helped a lot.

thanx guys .

Question Answered as of 1 Year Ago by stbuchok and JorgeM
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: