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

  • 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!");
}
主站蜘蛛池模板: 界首市| 砀山县| 彭泽县| 万宁市| 广丰县| 文化| 新建县| 湘潭市| 麟游县| 潞城市| 青海省| 凤城市| 卓资县| 扎囊县| 永德县| 武胜县| 武鸣县| 厦门市| 睢宁县| 宁河县| 饶阳县| 崇信县| 竹溪县| 宁河县| 灌南县| 十堰市| 洱源县| 闽侯县| 合水县| 榆树市| 玛曲县| 建湖县| 礼泉县| 环江| 牙克石市| 濉溪县| 阿克| 绵阳市| 当涂县| 甘谷县| 雷州市|