Tagged “nodejs”
-
Node.js threads
Node.js is often mistakenly thought of as a single-threaded JavaScript engine. However, this is not accurate. Experienced Node.js engineers are aware of the separate libuv thread pool used for delegating synchronous a file system and a DNS utility operations out of the main thread. But, in reality, the actual number of threads is much larger. If you start Node.js you will see 10 threads alongside with main thread. -
Node.js for utility scripts
From time to time I need to write at work or for my pet-project different automation scripts and every time I face a grand dilemma: what language I should use. One option is an entangled bash with dozens of constructions, which are impossible to remember. Another one is Python: quite lightweight, but some things take getting used to.
See all tags.