Monday, November 15, 2021

JavaScript + Rust, Go, WASM

 Rust Is The Future of JavaScript Infrastructure – Lee Robinson

Rust is a fast, reliable, and memory-efficient programming language. It's been voted the most loved programming language six years in a row (survey). Created by Mozilla, it's now used at FacebookAppleAmazonMicrosoft, and Google for systems infrastructure, encryption, virtualization, and more low-level programming.

Rust helps developers write fast software that's memory-efficient. It's a modern replacement for languages like C++ or C with a focus on code safety and concise syntax.


Deno, created in 2018, is a simple, modern, and secure runtime for JavaScript and TypeScript that uses V8 and is built with Rust. It's an attempt to replace Node.js, written by the original creators of Node.js. 

esbuild, created in January 2020, is a JavaScript bundler and minifier 10-100x faster than existing tools written in Go.

The Rust version probably could be made to work at an equivalent speed with enough effort. But at a high level, Go was much more enjoyable to work with. This is a side project and it has to be fun for me to work on it. – Evan, Creator of esbuild (Source)

Rome, created in August 2020, is a linter, compiler, bundler, test runner, and more, for JavaScript, TypeScript, HTML, JSON, Markdown, and CSS. They aim to replace and unify the entire frontend development toolchain. It's created by Sebastian, who also created Babel.

Rome is currently written in TypeScript and runs on Node.js. But they're now working on rewriting in Rust.

No comments: