- 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!");
}
推薦閱讀
- Getting Started with Citrix XenApp? 7.6
- UML和模式應(yīng)用(原書第3版)
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)習(xí)題解答與上機(jī)指導(dǎo)
- Drupal 8 Configuration Management
- Jupyter數(shù)據(jù)科學(xué)實(shí)戰(zhàn)
- Highcharts Cookbook
- R大數(shù)據(jù)分析實(shí)用指南
- Hands-On Functional Programming with TypeScript
- Instant Nancy Web Development
- Mastering C++ Multithreading
- Arduino可穿戴設(shè)備開發(fā)
- Python+Office:輕松實(shí)現(xiàn)Python辦公自動(dòng)化
- INSTANT JQuery Flot Visual Data Analysis
- 計(jì)算語言學(xué)導(dǎo)論
- 3D Printing Designs:The Sun Puzzle