Posts Tagged Under: featured

Node.js event loop workflow & lifecycle in low level

A year back while describing the differences between setImmediate & process.nextTick, I wrote a bit on the low level architecture of node’s event-loop. Surprisingly, the readers of that post became more interested about the event-loop part, than the rest of the parts and I have received a lot of responses

Read More



Diving deep into JavaScript array – evolution & performance

Before starting the article I would like to state that this is not about the basic of JavaScript array. Neither about teaching syntaxes or showing usage examples. The article is more about memory representation, optimization, behavior differences over syntaxes, performance and the recent evolution. When I started using JavaScript for the

Read More



import vs require – ESM & commonJs module differences

ECMAScript Modules (ESM) are still in stage 3 (not finalized). require import Dynamic evaluation Static evaluation Throws error at runtime Throws error while parsing Non lexical Lexical As Node.js uses commonJS moduling, I will refer to the workflow of node to address the commonJS modules. And will refer the ECMAScript modules as ESM. Syntax difference CommonJS dep.js app.js ESM dep.js app.js Loading technique difference What Node.js does with

Read More