- 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!");
}
推薦閱讀
- Instant Node Package Manager
- Boost程序庫完全開發指南:深入C++”準”標準庫(第5版)
- Learning Spring 5.0
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- Rake Task Management Essentials
- Mastering LibGDX Game Development
- Web Application Development with MEAN
- Modern JavaScript Applications
- Django 3.0應用開發詳解
- Lift Application Development Cookbook
- JavaScript程序設計:基礎·PHP·XML
- HTML+CSS+JavaScript網頁制作:從入門到精通(第4版)
- OpenCV 3.0 Computer Vision with Java
- Python程序員面試算法寶典
- C語言進階:重點、難點與疑點解析