News for hackers. Stuff that matters.
Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM) by Others on Saturday April 24, 2021 @09:32PM (#26929610)
I worked on one as an undergrad: https://github.com/gwsystems/aWsm

Full AoT compilation, C programs run within 10% of native

Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM) by heavyset_go on Saturday April 24, 2021 @10:25PM (#26929862)
10% difference from native, or 10% of native performance?
Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM) by Others on Sunday April 25, 2021 @09:47PM (#26938456)
10% worse performance. Not 10x worse :D
Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM) by moonchild on Sunday April 25, 2021 @12:57AM (#26930433)
Since it compiles using llvm, what's the reason for the discrepancy?

Lost information about e.g. aliasing?

Re:Wasm3 compiles itself (using LLVM/Clang compiled to WASM) by Others on Sunday April 25, 2021 @09:49PM (#26938467)
Bounds checking, dynamic dispatch is more expensive, wasm semantics have no undefined behavior to exploit for optimizations. And there is bloat in the process. I’m sure losing information effects things as well