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

When was nodejs released?

2025-04-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces when nodejs was released, the article is very detailed, has a certain reference value, interested friends must read it!

Nodejs was born in May 2009. it is a JavaScript runtime environment based on Chrome V8 engine developed by Ryan Dahl; it uses an event-driven, non-blocking iUnip O model, which allows JavaScript to run on the server-side development platform.

This tutorial operating environment: windows7 system, nodejs version 12.19.0, DELL G3 computer.

Nodejs, which was born in May 2009, is a JavaScript runtime environment based on Chrome V8 engine developed by Ryan Dahl.

Ryan's job was to write servers in C++, and he later summed up the experience that a high-performance server should satisfy the "event-driven, non-blocking" model. C++ is troublesome to develop, so Ryan wants to find a more advanced language for rapid development. It can be said that there are two points that contributed to the birth of Nodejs.

The reason and background of node's birth

Ryan Dahl has a strange experience. He is not a professional developer. In 2004, he was studying for a PhD in mathematics at the University of Rochester in New York. During that time, he studied some fractals, classifications and p-adic analysis, which had nothing to do with open source and programming.

In 2006, he had the idea of "the world is so big, I want to see it", made the decision to drop out of school, started some research through the cloud to carry out his work, using Ruby on Rails to develop a website for snowboard companies is the beginning of his formal programming career. )

Until Chrome was released in 2008, and the V8 JavaScript interpreter was released at the same time. This is a great operating environment. After the release of V8, Ryan Dahl began to analyze it, it looked charming and clean, and very quickly, suddenly Ryan Dahl thought: JavaScript is single-threaded and has implemented non-blocking, but in web browsers people have implemented non-blocking requests when using AJAX requests and events, which is a bit ironic.

Ryan Dahl thinks that JavaScript combined with asynchronous IO, combined with some HTTP server events, will be a very cool thing, so he has been doing this for the next four years.

In February 2009, with a new idea, he submitted the first line of code for the project, which was eventually named "node".

Ryan Dahl gave a speech on Node.js at the JSConf EU conference in Berlin, and Node.js became more and more popular around the world.

So Ryan Dahl joined Joyent in 2010 as a full-time developer of the Node.js project. At this point, the Node.js project entered the second stage of its life: from a personal project to a project organized by a company.

His idea for node is to do everything in a non-blocking way so that many of the problems encountered in programming can be solved, for example, we can do our work without shutting down threads at all, using only process abstraction and serialization communication. And in the process, fully asynchronous can handle a lot of requests, which makes him firmly believe that this is a good way (long after Ryan Dahl met Go, he changed his mind because Go has the right green threads and easy-to-use abstraction, because the interfaces between Go and the operating system are green threads, and it is also non-blocking Ihand O. However, the interface they give to the user is blocked, which is very friendly to the consumer, such as handling event A, waiting for a response or an error, handling event B, waiting for a response, the error obviously knows what to do and what to encounter. But in Node, this becomes more difficult because you have to jump to another function call multiple callback operation, although the development of the node community has done a good solution to handling this way, but it is essentially different from Go)

The above is all the contents of the article "when was nodejs released?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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