- 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!");
}
推薦閱讀
- Mastering ServiceStack
- 編程卓越之道(卷3):軟件工程化
- Instant Zepto.js
- PHP+MySQL網(wǎng)站開(kāi)發(fā)技術(shù)項(xiàng)目式教程(第2版)
- Learning Probabilistic Graphical Models in R
- UNIX Linux程序設(shè)計(jì)教程
- Spring MVC+MyBatis開(kāi)發(fā)從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- Getting Started with Nano Server
- Mastering VMware Horizon 7(Second Edition)
- Microsoft Dynamics GP 2013 Cookbook
- 從零開(kāi)始學(xué)算法:基于Python
- INSTANT EaselJS Starter
- Hands-On GUI Application Development in Go
- OpenCL異構(gòu)并行計(jì)算:原理、機(jī)制與優(yōu)化實(shí)踐
- vSphere High Performance Cookbook(Second Edition)