The first knowledge of node. js

Source: Internet
Author: User
Tags joyent

In my spare time, I taught myself a bit of node. js, and now I have a personal experience: node. js, or node, is a platform that allows JavaScript to run on the server side. It can make

JavaScript is out of the browser and runs in a normal server environment, like running Python, Perl, PHP, Ruby

The same procedure. You can use node. js to easily develop server-side applications, and Python, Perl, PHP, Ruby can

node. JS can do almost anything, and it can do better.

node. JS is a platform for the development of real-time web (real-time web) applications, which has been fully developed since its inception

Consider the scalability of the architecture in real-time response and hyper-scale data requirements. This allows it to abandon the traditional platform relies on multi-line

Process to achieve high concurrency of design ideas, and the use of single-threaded, asynchronous I/O, event-driven program design model. These

Features not only bring huge performance gains, but also reduce the complexity of multi-threaded programming, which in turn increases the efficiency of development.

node. JS was originally an open source project by Ryan Dahl, which was later noticed by Joyent company. Joyent Company will

Ryan Dahl was recruited, so now node. JS is managed and maintained by Joyent company. Despite the time it was born (2009

years) is not long, but it has formed a huge ecosystem around it. node. JS has a strong and flexible guarantee

Manager (node Package Manager, NPM), currently has tens of thousands of third-party modules, including a Web development framework,

There are MySQL, PostgreSQL, MongoDB Database interface, template language parsing, CSS generation tools, mail,

Encryption, graphics, debugging support, and even a graphical user interface and operating system API tools. Established by VMware Corporation

Cloud computing platform Foundry pioneered the support for node. js. In June 2011, Microsoft announced its cooperation with Joyent,

Porting node. js to Windows, and the Windows Azure Cloud computing platform also supports node. js. node. JS currently

is still in the rapid development stage, I believe in the near future it will become a popular Web application development platform.

node. JS is not a standalone language, with PHP, Python, Perl, Ruby "both language and platform"

Different. node. JS is not a JavaScript framework, unlike CakePHP, Django, and Rails. node. JS is even less

It's a browser-side library, not comparable to JQuery or ExtJS. node. JS is the one that lets JavaScript run in the service

Development platform, it makes JavaScript a world class one citizen of the scripting language, serving PHP, Python,

Perl, Ruby equals. The Document Object Model (DOM) and the browser object model (BOM), while Mozilla points out that JavaScript is made up of 1

Composed of Core JavaScript and Client JavaScript. This divergence is due to JavaScript and browser

We will elaborate on the complex historical origins and the checkered history of their development. We

It can be argued that the so-called JavaScript in node. JS is just a Core JavaScript, or a ECMAScript
Implementation, without DOM, BOM, or Client JavaScript. This is because node. JS does not run in the browser, the 2

You do not need to use many of the features in your browser.

node. JS is a platform that lets JavaScript run outside the browser. It implements such things as file systems, modules,

The Core JavaScript, such as package, operating system API, network communication, or not. Historically, JavaScript
3
There are more than one plan to migrate to the outside of the browser, but node. JS is the best one. With the success of node. JS, various Bangs

The advent of JavaScript implementations outside the browser, resulting in the CommonJS specification. CommonJS tried to develop a set of

The complete JavaScript specification to compensate for the APIs required for a common application, such as file system access, command line, modulo

Block management, function library integration and other functions. CommonJS that many server-side JAVASCRIPT implementations follow 4

CommonJS specifications for mutual compatibility and code reuse. The partial implementation of node. JS follows the COMMONJS specification, but

Because both are at the beginning of the rapid change period, there will be inconsistencies.

node. JS's JavaScript engine is V8, from Google Chrome projects. V8 claims to be the fastest in the world now.
JavaScript engine, experienced several engine revolutions, it's JIT (Just-in-time compilation, instant compilation) 5

The execution speed is fast enough to get closer to the local code execution speed. node. JS does not run in the browser, so it does not exist

In JavaScript browser compatibility issues, you can safely use all the features of the JavaScript language. node. JS can be network-born. node. js

Can do more than just develop a Web site so simple, using node. js, you can easily develop: a website with complex logic; a large-scale social network-based

Web application; web socket server; TCP/UDP socket application. This is my first knowledge, thank you.

The first knowledge of node. js

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.