- 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!");
}
推薦閱讀
- 造個小程序:與微信一起干件正經事兒
- 面向STEM的Scratch創新課程
- C++程序設計基礎教程
- QTP自動化測試進階
- Learning Data Mining with R
- 微信小程序項目開發實戰
- Spring快速入門
- C#應用程序設計教程
- Instant Lucene.NET
- Bootstrap 4 Cookbook
- ElasticSearch Cookbook(Second Edition)
- Hands-On Neural Network Programming with C#
- Java 9 Programming By Example
- Java EE 7 with GlassFish 4 Application Server
- 零基礎學Java(第5版)