- 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!");
}
推薦閱讀
- PostgreSQL for Data Architects
- Leap Motion Development Essentials
- 深入淺出PostgreSQL
- Mastering Apache Maven 3
- Java EE 7 Performance Tuning and Optimization
- Building RESTful Python Web Services
- Nginx Lua開發(fā)實(shí)戰(zhàn)
- 軟件項(xiàng)目管理實(shí)用教程
- Julia 1.0 Programming Complete Reference Guide
- Illustrator CS6設(shè)計與應(yīng)用任務(wù)教程
- C++ Application Development with Code:Blocks
- 區(qū)塊鏈架構(gòu)之美:從比特幣、以太坊、超級賬本看區(qū)塊鏈架構(gòu)設(shè)計
- Python Projects for Kids
- Get Your Hands Dirty on Clean Architecture
- 零基礎(chǔ)學(xué)編程系列(全5冊)