官术网_书友最值得收藏!

  • 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!");
}
主站蜘蛛池模板: 新乡县| 出国| 宝山区| 汽车| 韶关市| 上犹县| 旅游| 柯坪县| 新源县| 武义县| 禹城市| 南郑县| 墨玉县| 任丘市| 杨浦区| 肥东县| 新田县| 福鼎市| 盱眙县| 建昌县| 安塞县| 贵定县| 蓬莱市| 疏附县| 留坝县| 余干县| 三亚市| 深州市| 绍兴市| 甘德县| 宜兴市| 文化| 界首市| 忻城县| 兴文县| 芷江| 青河县| 福清市| 乌审旗| 南京市| 海伦市|