- 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!");
}
推薦閱讀
- C# 7 and .NET Core Cookbook
- Java EE 6 企業(yè)級應(yīng)用開發(fā)教程
- 21天學(xué)通C++(第6版)
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實訓(xùn)版)
- QTP自動化測試進階
- VMware虛擬化技術(shù)
- Mastering Apache Maven 3
- Android玩家必備
- PHP與MySQL權(quán)威指南
- PHP+MySQL動態(tài)網(wǎng)站開發(fā)從入門到精通(視頻教學(xué)版)
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- Mastering SciPy
- Elasticsearch搜索引擎構(gòu)建入門與實戰(zhàn)
- 網(wǎng)絡(luò)綜合布線與組網(wǎng)實戰(zhàn)指南
- Java EE輕量級解決方案:S2SH