What's Walt?
Walt is an alternative syntax for the WebAssembly text format : It's JavaScript with rules.
Walt files compile directly to WebAssembly binary format.
>>
Walt does all the chemistry
- No C/C++ or Rust required, just typed JavaScript.
- NO LLVM/binary toolkits required, zero dependencies.
- Fast compilation, integrates into webpack!
Here is a simple WALT function:
export function fibonacci(n: i32): i32 {
if (n <= 0) return 0;
if (n == 1) return 1;
return fibonacci(n - 1) + fibonacci(n - 2);
}