GNGidudu Nicholasinfreecodecamp.org·4d ago · 21 min readAdvanced Dart: Learn Asynchronous Programming with Streams, Isolates, and the Event LoopI had been writing Flutter apps for over a year before I actually understood how Dart handles concurrency. I knew how to use await. I knew FutureBuilder and StreamBuilder well enough to get things wor00
PPranavinpromises-async-await.hashnode.dev·4d ago · 11 min readJavaScript Runtime Secrets: The Call Stack, Browser APIs, and Microtask PriorityUnderstanding Asynchronous JavaScript: How JavaScript Handles Multiple Tasks Without Blocking ⏱️ Read Time: ~15 mins | 🎯 Level: Beginner to Advanced ⚡ TL;DR (Quick Summary) JavaScript is single-th00
SMS M Piyas Mahamude Alifintechopinion.hashnode.dev·5d ago · 19 min readNode.js Thread Pool Under the Hood The Secret Engine Behind libuv's Architecture, Scheduling, Optimization, and High ConcurrencyIntroduction: The Lie You Were Told Every Node.js tutorial opens with the same sentence: "Node.js is single-threaded." It is a sentence that is both true and wildly misleading at the same time. Yes,00
ASANKESH SHARMAiniamankeshsharma.hashnode.dev·Jun 17 · 3 min readPromises in JavascriptIntroduction A promise is a object that represents eventual completion (or failure) of asyncronous operations. Simple defination: A placeholder for a future value. Use of Promise: To execute asyncron00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 17 · 29 min readPart 4: Where JavaScript Actually RunsWhat no one teaches you about the JavaScript Event Loop — Part 4 of 8 A puzzle in DevTools Open any page in your browser. Open DevTools. Click the Performance tab. Hit the record button (the circle).00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 17 · 37 min readPart 3: Where Threads SleepWhat no one teaches you about the JavaScript Event Loop — Part 3 of 8 A different puzzle In Part 2 we left a question hanging. An idle browser tab uses zero CPU. Open your task manager — a tab with n00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 14 · 18 min readPart 1: The Question Tutorials SkipWhat no one teaches you about the JavaScript Event Loop — Part 1 of 8 A puzzle to start Open any page in your browser. Open DevTools, go to the console, and paste this: document.body.addEventListener00
SNSrekaravarshan N Kinsrekaravarshan.hashnode.dev·Jun 14 · 27 min readPart 2: What "Single-Threaded" Actually MeansWhat no one teaches you about the JavaScript Event Loop — Part 2 of 8 A new puzzle In Part 1, an infinite loop froze the page. The click vanished. We left with a question: what does "JavaScript is si00
NKNAWAZISH KHANinnawazish.hashnode.dev·May 19 · 6 min readThe Node.js Event Loop Explained (Without Making Your Brain Hurt)If you've been learning Node.js for a while, you've probably heard the phrase "Node.js is single-threaded but non-blocking." And you might have nodded along pretending you totally get it. Don't worry 00
AAbhinavinblog.meetabhinav.com·May 10 · 3 min readThe Node.js Event Loop ExplainedMost people hear "Node.js is single-threaded" and assume it must be slow. After all, if it can only do one thing at a time, how does it handle thousands of users at once? The secret isn't more threads00