- 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!");
}
推薦閱讀
- Java逍遙游記
- ClickHouse性能之巔:從架構設計解讀性能之謎
- 深入理解Bootstrap
- MySQL 8從入門到精通(視頻教學版)
- Vue.js前端開發基礎與項目實戰
- Scala Design Patterns
- 實用防銹油配方與制備200例
- Learning Elixir
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Drupal 8 Module Development
- Python全棧數據工程師養成攻略(視頻講解版)
- Microsoft Dynamics AX 2012 R3 Financial Management
- Learning Unreal Engine Android Game Development
- Test-Driven JavaScript Development
- Struts 2.x權威指南