WebAssembly Today ✍️ #3
Updates & commentaries on WebAssembly related technologies, including Rust, serverless, cloud, blockchain, and AI. Focus on the server-side.
Do you think of the future of web apps is WebAssembly? 🤓
If WASM+WASI existed in 2008, we wouldn't have needed to created Docker. That's how important it is. Webassembly on the server is the future of computing. A standardized system interface was the missing link. Let's hope WASI is up to the task!
Will WebAssembly virtual machine replace Docker and become the dominant runtime for the web? What do you think?
The past week sees a lot of exciting WebAssembly news from the decentralized web and blockchain tech.
Polkadot is live. Polkadot is the most anticipated public blockchain in the past 2 years. It is built from the ground up with Rust and WebAssembly technologies. Parity Technologies, the company that made the Polkadot Network, is believed to be the largest Rust dev employer in the world.
Ethereum Devcon6 is going to be held in Bogotá Colombia in 2021. Why should we care? Because WebAssembly is slated to become the virtual machine to run smart contracts in the next-generation Ethereum. It will be a big event for WebAssembly outside of the browser!
👉 Use WebAssembly to run Rust functions in Deno
👉 Use the Deno feat native extension (similar to node.js NAPI)
Also, how to run Deno functions (in TypeScript) in serverless environments:
Read a FAQ with Deno, Rust, and WebAssembly.
Microsoft makes it easier for Rust developers to write Windows applications and component libraries 👩💻
Rust/WinRT developed by Microsoft is available for preview now. It is a language projection for the Windows Runtime that enables calling Windows APIs in a natural and idiomatic way. Learn more at its GitHub repo.
A new book, Zero To Production, by Luca Palmieri, chronicles how to create and deploy cloud-native applications in Rust as a team.
Rust is again the most beloved language among the professional developers StackOverflow surveyed. That's 5 years in a row!
Here are two articles explaining why Rust is on the rise.
Why Rust? This article discusses the benefits of Rust in several use case scenarios.
It aims to solve the following problems with existing online card games with centralized game servers.
the requirement for creating accounts
difficulty in figuring out how to use
Its technology stack is as follows.
Backend (game server): Rust with the Rocket server framework
One of the key reasons for using Rust is its high performance. Rust delivers performance similar to C but without the memory bugs that cause 80% of computer program crashes. It sounds like a really good deal. But it gets better.
As a fast-rising programming language, a lot of innovations are happening in the Rust compiler. It can often generate native code that is far more optimized than hand-tuned C code. The case in point is SIMD compilers for new CPU architectures. The article shows that the slowest Rust compiler setting produces code that is similar to C. But simple tweaks in Rust code and compiler settings could product code that outperforms C by as much as 30%.
Turns out that Rust’s zero-cost abstraction is better than free!
StackOverFlow explores the benefits of serverless architecture. Serverless enables developers to build and deploy applications quickly. Once those applications become popular, serverless allows them to scale up efficiently.
During the COVID-2019 pandemic, Khan Academy saw its usage grow 2.5 times in March compared to the same time last year. An engineer of Khan Academy shared how Khan Academy handled the traffic growth with serverless.
Enjoyed reading this newsletter? Please subscribe to make sure that you do not miss a future issue. ❤️
This newsletter is a collaborative effort. Don’t forget to leave comments! Suggest topics or projects you would like to see we cover next week. Thanks!