Why do browsers throttle JavaScript timers?
Explains why browsers throttle JavaScript timers like setTimeout to 4ms, and explores modern alternatives like scheduler.postTask for better performance.
Explains why browsers throttle JavaScript timers like setTimeout to 4ms, and explores modern alternatives like scheduler.postTask for better performance.
An exploration of asynchronous programming in JavaScript and Node.js, explaining concepts like the event loop, callbacks, and non-blocking I/O.
A deep dive into the fragmented landscape of OS-level timer APIs across Windows, POSIX, and Unix variants, and the challenges of cross-platform development.
Debunks common myths about Node.js, revealing surprising truths about its architecture, async operations, and threading model.
Explores high-performance I/O using io_uring and kqueue, comparing them to blocking I/O and providing a practical TCP server example.
A developer explains how to use Lua coroutines to replace confusing callback patterns in asynchronous code for a more synchronous-looking interface.
A developer shares their journey of learning Lua by attempting to build a web framework and server from scratch.
The author explains their decision to separate personal 'Notes' from technical 'Articles' on their blog and reflects on online privacy.
Explains why immediately resolved Promise callbacks execute before setTimeout(callback, 0) due to JavaScript's microtask (job) queue vs. macrotask queue.
Explains how JavaScript's setTimeout function can be used to sort an array by leveraging the event loop and delay timers.
Explains how JavaScript's callback queue and event loop enable asynchronous execution, using setTimeout as a key example.
Explains the Async/Await syntax in JavaScript for handling asynchronous operations, making code more readable than traditional promise chains.
A technical deep dive into how async/await works under the hood, explaining the concept by building it from scratch in code.
A technical guide to understanding the event loop concept by building a simple implementation in code, focusing on async I/O.
Explains common JavaScript debugging interview questions, covering object comparison, scope, and the event loop with practical examples.
Explains the new Shared Memory proposal for JavaScript, covering its importance, the event loop, and moving towards practical usage.
Explains the Node.js process.nextTick() method, how it defers execution to the next event loop iteration, and compares it to setTimeout().
Explains the internal workings of Node.js, focusing on its single-threaded, non-blocking I/O architecture, the Reactor Pattern, and the role of libuv.
Explores a JavaScript technique called 'simplethreading' for handling large data sets asynchronously by batching operations to improve performance.