JavaScript Articles
-
Introducing sphinx-js, a better way to document large JavaScript projects
Go beyond the flat, alphabetical lists of JSDoc, and document your JavaScript libraries in a way that’s easier to learn. As a bonus, keep your old JSDoc syntax.
-
A crash course in memory management
This is the first article in a 3-part series of code cartoons that explore SharedArrayBuffers in JavaScript and how they are used. To understand why ArrayBuffer and SharedArrayBuffer were added to JavaScript, you need to understand a bit about memory management.
-
A cartoon intro to ArrayBuffers and SharedArrayBuffers
This is the second article in a 3-part series of code cartoons that explore SharedArrayBuffers in JavaScript and how they are used.
-
Avoiding race conditions in SharedArrayBuffers with Atomics
This is the third article in a 3-part series of code cartoons that explore SharedArrayBuffers in JavaScript and how they are used.
-
Debugger.html Call Stack Improvements
Debugger.html is an open source project, built on top of React and Redux, that functions as a standalone debugger for Firefox, Chrome and Node. The debugger is also being integrated into the Firefox Developer Tools offering. Currently it is available in the Firefox 53 release behind the devtools.debugger.new-debugger-frontend preference.
-
Fathom: a framework for understanding web pages
Meet Fathom, a mini-language for writing semantic extractors, that you can use client- or server-side to extract meaning from the content of a web page. Scoop up all those ideas you threw away because they required too much understanding by the browser. We can do that now.
-
Internationalize your keyboard controls
Recently I came across two lovely new graphical demos, and in both cases, the controls would not work on my French AZERTY keyboard. There was the wonderful WebGL 2 technological demo After The Flood, and the very cute Alpaca Peck. Shaw was nice enough to fix the latter when I told him about the issue. […]
-
A crash course in just-in-time (JIT) compilers
This is the second part in a series on WebAssembly and what makes it fast. If you haven’t read the others, we recommend starting from the beginning. JavaScript started out slow, but then got faster thanks to something called the JIT. This article is about how the JIT works.
-
A crash course in assembly
To understand how WebAssembly works, it helps to understand what assembly is and how compilers produce it. Third part in a series on WebAssembly and what makes it fast. We recommend starting from the beginning.
-
Creating and working with WebAssembly modules
WebAssembly is a way to run programming languages other than JavaScript on web pages. In the past when you wanted to run code in the browser to interact with the different parts of the web page, your only option was JavaScript. So when people talk about WebAssembly being fast, the apples to apples comparison is to JavaScript. Fourth in a series on WebAssembly.