1,105,169 Community Members

Javascript.

Member Avatar
Rahul47
Posting Whiz
340 posts since Jan 2013
Reputation Points: 13 [?]
Q&As Helped to Solve: 20 [?]
Skill Endorsements: 2 [?]
 
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.

Member Avatar
stbuchok
Posting Shark
957 posts since May 2011
Reputation Points: 123 [?]
Q&As Helped to Solve: 142 [?]
Skill Endorsements: 2 [?]
 
0
 

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

Member Avatar
Rahul47
Posting Whiz
340 posts since Jan 2013
Reputation Points: 13 [?]
Q&As Helped to Solve: 20 [?]
Skill Endorsements: 2 [?]
 
0
 

Yes, Please see Limitations of Javascript.
Click Here

Member Avatar
JorgeM
IT Addict
6,391 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 957 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
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.

Member Avatar
Rahul47
Posting Whiz
340 posts since Jan 2013
Reputation Points: 13 [?]
Q&As Helped to Solve: 20 [?]
Skill Endorsements: 2 [?]
 
0
 

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

Member Avatar
JorgeM
IT Addict
6,391 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 957 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

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

Member Avatar
stbuchok
Posting Shark
957 posts since May 2011
Reputation Points: 123 [?]
Q&As Helped to Solve: 142 [?]
Skill Endorsements: 2 [?]
 
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.

Member Avatar
Rahul47
Posting Whiz
340 posts since Jan 2013
Reputation Points: 13 [?]
Q&As Helped to Solve: 20 [?]
Skill Endorsements: 2 [?]
 
0
 

That was enlightening. helped a lot.

thanx guys .

Question Answered as of 9 Months 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: