AssemblyScript
AssemblyScript is a typescript-like language designed for compiling to WebAssembly.
export function fibonacci(n: i32): i32 {
var a = 0, b = 1
if (n > 0) {
while (--n) {
let t = a + b
a = b
b = t
}
return b
}
return a
}
Advantages
- Simple JavaScript/TypeScript inspired syntax.
- Designed specifically for WebAssembly.
- Uses NPM development tools.
Drawbacks
- Removed official support for WASI.
- Not a well known language.
- No large/established set of libraries to use.