Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What language does nodejs belong to?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly talks about "what language nodejs belongs to". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what language nodejs belongs to.

Nodejs is written in C++ language. Nodejs is a server-side language developed with C++, and the underlying layer of node is node; and nodejs is a JavaScript runtime environment based on the Chrome V8 engine, while V8 is developed using C++.

The operating environment of this tutorial: windows7 system, nodejs 12.19.0, Dell G3 computer.

Node.js is written and developed in C + +.

At the bottom of Node.js is C++ (V8 is also written by C++). The source code for node is on the GitHub website, and many files ending with the .cc suffix in the src folder of the project root directory contain the word class (C++ has class but C does not).

Nodejs is developed with C++ to run on the server-side language, can write website background programs, can do server-side application development, his syntax is JAVASCRIPT, will JS, that is, will NODEJS, different from the ordinary JS is a script running client, and NODEJS in the JS is running on the server side, so that the role of NODEJS is equivalent to PHP,ASP and other languages.

And Node.js is a JavaScript running environment based on Chrome V8 engine. Node.js uses an event-driven, non-blocking Istroke O model.

V8, on the other hand, is developed using C++ and used in Google browser. Before running JavaScript, V8 compiles it to native machine code (IA-32, x86-64, ARM, or MIPS CPUs) compared to other JavaScript engines that convert to bytecode or interpret execution, and uses methods such as inline caching (inline caching) to improve performance. With these features, JavaScript programs run as fast as binary programs under the V8 engine.

ECMA-262is specified in the ECMAScript implemented in V8, and version 3 runs on Windows XP and Vista,Mac OS X 10.5 (Snow Leopard and Linux systems use IA-32 or ARM processors.

V8 can be run independently or embedded in any C++ application. The project is hosted on Google Code, and based on the BSD protocol, any organization or individual can use its source code in its own project.

What kind of applications is Node.js suitable for development?

I am good at calculating, but not good at calculating. Because Node.js is good at task scheduling, if your business has a lot of CPU computing, which actually blocks this single thread, it is not suitable for Node development.

Node.js is a good fit when an application needs to handle a large number of concurrent Icano and there is no need for very complex processing within the application before sending a response to the client. Node.js is also very suitable for working with web socket to develop long-connected real-time interactive applications.

Node.js is not an independent language, unlike PHP, JSP, Python, Perl, Ruby, which is both a language and a platform, Node.js uses JavaScript for programming and runs on the JavaScript engine (V8).

At this point, I believe you have a deeper understanding of "what language nodejs belongs to". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report