A WebAssembly compiler in 192 bytes

January 31, 2025 By Mark Otto Off

JavaScript: The Hard Parts — Take your knowledge to the next level with the most loved JavaScript course in the industry. Deepen your understanding of the most important aspects of JavaScript. This highly rated video course goes under the hood, looking at callbacks, higher-order functions, object-oriented JS, and more.

Frontend Masters

A WebAssembly Compiler That Fits in a Tweet — Or 192 bytes, if you prefer. This is a look into a fantastic little bit of JavaScript hacking that can compile arithmetic expressions into WebAssembly you can run very easily. You can learn a lot in so little time here.

Mariano Guerra and Patrick Dubroy

Announcing TypeScript 5.8 Beta — It’s that time again. What’s new? Support for using require() for ES modules in Node 22+, checked returns for conditional and indexed access types, startup and building optimizations & more. While not a huge release overall, it’s particularly good for Node devs.

Daniel Rosenwasser

💡 One neat 5.8 feature is --erasableSyntaxOnly, a way to ensure that ‘type stripping’ techniques still result in runnable code by disallowing TypeScript-exclusive features like enums.

📒 Articles & Tutorials

The Modern Way to Write JavaScript Servers — The irony is that while Node popularized JavaScript on the server (though Netscape was doing it in the 90s) this modern, standardized cross-runtime approach doesn’t work on Node …yet 😉

Marvin Hagemeister

Introducing Mentoss: The fetch Mocker — A new approach to mocking global fetch() calls (in both browsers and server-side runtimes) inspired by previous attempts like Nock and MSW.

Nicholas C. Zakas

📄 Computing with Tuples in TypeScript – A way to bring objects of different types together but in a lighter way than keyed objects. Dr. Axel Rauschmayer

📄 How Long is a Second in JavaScript? – What may seem like a straightforward query is actually one of surprising complexity. Iago Lastra

📄 Adding Maps to Your Pages with Leaflet.js – Quick, easy, and open source to boot. Raymond Camden

📄 How to Use Node’s fs in the Browser for Custom Playgrounds Ivan Chebykin

📄 Building a QR Code HTML Web Component Scott Jehl

📄 How to Build a CMS with React Admin Thibault Barrat

🛠 Code & Tools

📊 Plotly 3.0: A JavaScript Graphing Library — A high-level, declarative charting library, built on top of D3 and stack.gl, with over 40 chart types, including 3D charts, statistical graphs, and SVG maps. v3 is largely to remove deprecations, fix bugs, and a switch to esbuild.

Plotly, Inc.

Ruck 9.0: A React Webapp Framework for Deno — A lean React-based way to build modern React apps with Deno using features like ESM, dynamic imports, HTTP imports, and import maps with no transpilation or bundling.

Jayden Seric