Comment by koolala

Comment by koolala 3 days ago

3 replies

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 3 days ago

I 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/inclu...

  • koolala 3 days ago

    The 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 2 days ago

      I 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.