2 ms·
Playground wise, is Zigs wasm compiler able to compile out simd wasm in the browser? I'm trying to find the best languages that can. So far it's just assemblysc
by koolala 11mo ago
Playground wise, is Zigs wasm compiler able to compile out simd wasm in the browser? I'm trying to find the best languages that can. So far it's just assemblyscript and c/c++ and their compilers are big.
- lioeters 11mo agoI haven't dug deep but it seems Zig's Wasm target does support SIMD. > WebAssembly portable SIMD intrinsics https://codeberg.org/ziglang/zig/src/branch/master/lib/include/wasm_simd128.h https://codeberg.org/ziglang/zig/src/branch/master/lib/inclu...
- koolala 11mo agoThe issue is I think that code is based on LLVM and and I am not sure the self-hosted Zig compiler that runs well in Wasm can do it.
- lioeters 11mo agoI see, I don't know the internals of the compiler enough to find where that would be in the codebase. As an aside, their new home for the Git repo at Codeberg doesn't seem to have code search functionality. Probably simpler to clone the repo and grep through any way.