- Learn WebAssembly
- Mike Rourke
- 111字
- 2021-08-13 15:38:49
Rust
C and C++ were intended to be the primary languages used for WebAssembly, but Rust is a perfectly suitable substitute. Rust is a systems programming language that is syntactically similar to C++. It was designed with memory safety in mind, but still retains the performance advantages of C and C++. The current nightly build of Rust's compiler can generate .wasm files from Rust source code, so if you prefer Rust and are familiar with C++, you should be able to use Rust for most of the examples in this book.
The following snippet demonstrates how to print Hello World! to the console using Rust:
fn main() {
println!("Hello World!");
}
推薦閱讀
- JBoss Weld CDI for Java Platform
- Python數據分析入門與實戰
- 編程卓越之道(卷3):軟件工程化
- C++面向對象程序設計(微課版)
- MATLAB圖像處理超級學習手冊
- NativeScript for Angular Mobile Development
- Java虛擬機字節碼:從入門到實戰
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- Python機器學習經典實例
- MATLAB 2020從入門到精通
- Instant Debian:Build a Web Server
- DevOps 精要:業務視角
- Python數據預處理技術與實踐
- R語言與網站分析
- 秒懂算法:用常識解讀數據結構與算法